1 Reply Latest reply on Oct 20, 2009 7:05 AM by Ilya Shaikovsky

    rich:page and one form

    Florian Duehring Newbie

      Hi,

      I have a question regarding the rich:page tag:

      I have a facet for the sidebar (<f:facet name="sidebar">) the content of the page:

       <f:facet name="sidebar">
       <a4j:form>
       <rich:panel>
       <f:facet name="header">
       <h:outputText value="Options" />
       </f:facet>
       <ui:insert name="sidebar" />
       </rich:panel>
       </a4j:form>
       </f:facet>
       <a4j:form>
       <ui:insert name="content" />
       </a4j:form>
      


      The following code is inserted into sidebar:
       <ui:define name="sidebar">
       <a4j:commandLink value="Save List" action="#{listAdmin.saveList}" reRender="listAdminContent"/>
       </ui:define>
      


      Moreover, I have a textbox in the content.

      When I click the save link now, the content of the text box is not saved (because it is in a different form, therefore logical). How can I achieve that the content of the text box is saved when I click the button?

      I tried to surround everything with one form tag, but than the layout is destroyed.

      Does anybody know how to solve this?

      Thanks