Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jsf-2/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jsf 2 a4j:commandButton不调用操作_Jsf 2_Richfaces_Jboss6.x - Fatal编程技术网

Jsf 2 a4j:commandButton不调用操作

Jsf 2 a4j:commandButton不调用操作,jsf-2,richfaces,jboss6.x,Jsf 2,Richfaces,Jboss6.x,我正在尝试将JSF1.xRichFaces3.x应用程序迁移到jsf2.x和RichFaces4.x。我有一个richpopupPanel在一个表单中,它有一个表单和两个a4j:commandButtons。我无法调用secondbutton上的操作来提交表单 代码如下 <h:form id="outsideform"> <rich:popupPanel id="details" domElementAttachment="form"> <f:

我正在尝试将JSF1.xRichFaces3.x应用程序迁移到jsf2.x和RichFaces4.x。我有一个richpopupPanel在一个表单中,它有一个表单和两个a4j:commandButtons。我无法调用secondbutton上的操作来提交表单

代码如下

<h:form id="outsideform">
     <rich:popupPanel id="details" domElementAttachment="form">
      <f:facet name="header">
            <h:outputText value="PopuPTitle" style="text-align: center;" styleClass="center"/>
        </f:facet> 
       <a4j:commandButton id="firstButton" render = "detailsform" action="#{mybean.getDetails()}"/> 

         <h:form id="detailsForm>

           content to be submitted

        <a4j:commandButton id ="secondButton" action ="#{mybean.action()}"  render="addContent"/>

        </h:form>
        </rich:popupPanel>


不要使用嵌套的
h:form
s。将“详细信息”popupPanel移到“outsideform”表单之外。

删除@BalusC in所说的
。当您管理分层或相关数据时,您不必构建分层表单结构。@lametaweb感谢您的回答,您能告诉我如何解决这个问题吗,因为我必须走这条路,因为我在弹出窗口外有rich:tabPanel,它需要一个围绕它的表单。它也是seam应用程序,seam 2.3是将popupPanel放置在模板外的版本。实际上,支持bean也有一个问题,所以并没有解决,现在一切都解决了。非常感谢您的时间和帮助。@Vinay G B您必须接受另一个答案,Vasil Lukach答案,而不是我的答案。我使用
a4j:region
组件找到了另一个可能的解决方案。查看RichFaces展示网站。第32行并在示例源代码中转发。是的,我做了一些类似的事情,现在它工作了,再次感谢。您的回答工作了,并且支持bean也有问题,现在一切都解决了,感谢您的时间和帮助。