Hello,
I'm trying to use an action in the togglePanel component like this:
<h:form id="checkout_paymentAddress"> <rich:togglePanel id="paymentAddress" value="paymentEdit" switchType="server" stateOrder="paymentEdit,paymentRead"> <f:facet name="paymentEdit"> <h:panelGrid columns="2"> <h:outputText value="#{bundle.address_lastname}"/> <h:inputText value="#{JSFAddressBean.lastName}" type="text"/> <f:facet name="footer"> <rich:toggleControl for="paymentAddress" action="#{JSFAddressBean.paymentStateToRead}" value="save address"/> </f:facet> </h:panelGrid> </f:facet> <f:facet name="paymentRead"> <h:panelGrid columns="2"> <h:outputText value="#{bundle.address_lastname}"/> <h:inputText value="#{JSFAddressBean.lastName}" disabled=false" type="text"/> <f:facet name="footer"> <rich:toggleControl for="paymentAddress" value="update address"/> </f:facet> </h:panelGrid> </f:facet> </rich:togglePanel> </h:form>
I think it sounds like classic case of "local input value". You can try this:
http://ishabalov.blogspot.com/2007/08/sad-story-about-uiinput.html