jsf 2 - Primefaces facet header button -


i have datatable in primefaces:

    <p:datatable var="feedback" value="#{actiondetailsview.action.feedback}">                 <f:facet name="header">                     feedback                 </f:facet>                  <p:column headertext="date">                     ...                 </p:column> 

now want have button (add feedback) inside header on right hand side. somehow possible?

yes, is. may define button child of f:facet tag.

<p:datatable>     <f:facet name="header">         <p:commandbutton /> <!-- either here -->     </f:facet>      <p:column>         <f:facet name="header">             <p:commandbutton /> <!-- or here -->         </f:facet>     </p:column> </p:datatable> 

Comments

Popular posts from this blog

ruby on rails - ActiveRecord order not working -

javascript - How do you prevent nested queries/catches in sequelize? -

java - ConcurrentModificationException upon committing transaction with Hibernate -