i am trying to migrate a jsf 1.x richfaces 3.x app to jsf2.x and richfaces 4.x. i have a richpopupPanel inside a form which has a form and two a4j:commandButtons. i am not able to invoke action on the secondbutton to submit the form.
the code goes as follows.
<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>
The detailsForm renders succesfully on the click of the firstButton, but when make some changes in the content and try to submit by clicking on secondButton the action on the secondButton is not invoked. the form to be submitted is the detailsForm.