当面板可见时,不会调用Primefaces commandButton

时间:2013-08-11 18:37:18

标签: jsf primefaces commandbutton

我在primefaces中调用commandButton时遇到了一些问题

这是我的代码

<h:form>
    <some component...>
         <p:ajax update="tipe" oncomplete="PF('tipePanel').show()"/>
    </some component...>
    <p:panel id="tipe" visible="false" rendered="true" widgetVar="tipePanel">                   
          <p:commandButton value="Add" 
                   actionListener="#{soal.addDetailForm()}" 
                   rendered="true" />  
    </p:panel>
</h:form>

问题是当显示面板时无法调用按钮,但如果我从开始放置面板visible="true",则可以调用该按钮。知道为什么吗?

当显示面板时,我应该如何使按钮工作。感谢

0 个答案:

没有答案
相关问题