p:commandButton not working inside c:forEach [duplicate]

烂漫一生 提交于 2019-12-29 08:17:05

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!