I want to display a button according to the value of a string !!
I have two type of button:
button value = "Add" button value = "Update"
<p:column>
<f:facet name="header">
Result
</f:facet>
<h:outputText value="#{LigneXL.resultat}" />
<p:commandButton value="ADD NEW" rendered="#{LigneXL.resultat eq 'Not exist'}"></p:commandButton>
<p:commandButton value="MAJ" rendered="#{LigneXL.resultat eq 'Is FMD'}"></p:commandButton>
</p:column>
<p:column>
is there another way to make it works !!I think my methode is wrong because every time there is a button created !! thank you in advance