How to update only tab title in p:tabView /p:accordion or similar component?

前端 未结 2 1409
萌比男神i
萌比男神i 2021-01-23 15:26

I am trying to make the title of some tabs underlined if some specific content is shown on that tabs using ajax update (just titles, nothing else). Currently it works only if I

2条回答
  •  隐瞒了意图╮
    2021-01-23 15:42

    Thanks to Kukeltje and Geinmachi!

    The right way is really to use a facet (but with CSS style separately because if you use CSS inline, the tags will be shown as is and text won't be underlined):

    
      
        
      
    ...
    
    

    and (in managed bean if necessary):

    documentsHeaderInline = "text-decoration: underline;";
    

提交回复
热议问题