p:commandButton在c:forEach中不起作用 [英] p:commandButton not working inside c:forEach

查看:138
本文介绍了p:commandButton在c:forEach中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在 c:forEach 标签内使用 p:commandButton 但是没有调用此commandButton:

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>


推荐答案

正如他在评论中所说的安德里一样,解决方案是变更 c:forEach ui:重复

Just as he said Andry in the comment, the solution is change c:forEach to ui:repeat

这篇关于p:commandButton在c:forEach中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆