jsf - Dynamic table headers in html -


i need display headers inside tag based upon condition.

<th class="header"><h:outputtext value="#{supplierscorecard.treeitemlist[1].m1.header}" /> </th> 

this current code. requirement need display particular header if value present kind of javascript validation.

note: not using jsf datatable here table header separately printed.

ive put tags inside a4j:outputpanel rendered condition , worked fine.

<a4j:outputpanel rendered="#{supplierscorecard.treeitemlist[1].m4.header ne null}">                                                 <th class="header  treetableothers fixed"><h:outputtext value="#{supplierscorecard.treeitemlist[1].m4.header}" /> </th>                                                 </a4j:outputpanel> 

thanks update #erencan


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -