问题
i am trying to use p:commandButton
inside c:forEach
tag but this commandButton not invoked:
<c:forEach items="#{carnetOrdreBean.selectedOrdreList}" var="ordre">
<p:commandButton action="#{carnetOrdreBean.annulerOrdreChoisi}" value="Annuler" rendered="#{ordre.voirAnnulerOuNon}">
<f:setPropertyActionListener value="#{ordre}" target="#{carnetOrdreBean.selectedOrdre}"/>
</p:commandButton>
</c:forEach>
回答1:
Just as he said Andry in the comment, the solution is change c:forEach
to ui:repeat
来源:https://stackoverflow.com/questions/17983378/pcommandbutton-not-working-inside-cforeach