I have a a4j:commandButton in a conditionally rendered section. The conditionally rendered section is gets rerendered by another a4j:commandButton. The a4j:commandButton makes a call to the server, but does not invoke the specified action.
After pressing myButton in the example below the button myButton2 is rendered (since testBean.show is true).
How can this be solved? I am using RichFaces 3.3.1 with MyFaces 1.2.7.
<f:view> <a4j:form> <h:panelGrid id="myPanel"> <h:inputText id="myInput" value="#{testBean.value}" /> </h:panelGrid> <h:panelGrid id="myPanel2"> <h:panelGrid rendered="#{testBean.show}"> <a4j:commandButton id="myButton2" action="#{testBean.process2}" value="myButton2" /> </h:panelGrid> </h:panelGrid> <a4j:commandButton id="myButton" action="#{testBean.process}" value="myButton" reRender="myPanel,myPanel2" /> </a4j:form> </f:view>
Does "testBean" has request scope?