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

前端 未结 2 1411
萌比男神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

    You cannot update individual tabs since they do not have renderers in PrimeFaces. What you can try is to move the title to a f:facet name="title"..., put an h:outputText id="tabIdTitle"... and update that outputText when required. This is supported since PF 3.2. So something like

    
      
        
          
        
      
      
        
           
        
        
          
        
      
      
        
          
        
      
      
        
          
        
        
          
        
      
    
    

提交回复
热议问题