0

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"、最初からパネルを配置すると、ボタンを呼び出すことができます。理由はありますか?

また、パネルが表示されているときにボタンを機能させるにはどうすればよいですか。ありがとう

4

0 に答える 0