0

1 つの xhtml ページに a4j コマンド ボタンがあり、別のページにポップアップ パネルがあります。最初のページでコマンドボタンをクリックしてポップアップを開きたい。コマンドボタン

auth.xhtml

<a4j:commandButton id="Add" value="Add New" type="submit"
   action="#{controller.add}"
   render=":addPopupForm:addPopupOp">
     <a4j:param value="true" assignTo="#{controller.ind}" ></a4j:param>
</a4j:commandButton>

addPopup.xhtml

<h:form id="addPopupForm">
    <a4j:outputPanel id="addPopupOp" ajaxRendered="true">
       <rich:popupPanel id="addPopup" domElementAttachment="parent" show="true"
          rendered="true" height="600" width="1000" >
            Row is added
       </rich:popupPanel>
   </rich:outputPanel>
</h:form>
4

2 に答える 2