3 Replies Latest reply on Aug 10, 2010 4:53 AM by Martin J

    ModalPanel and Form

    Martin J Newbie

      Hello

       

      i have a modal panel

       

      X.xhtml

       

      <a4j:commandButton id="btnL" value="#" onclick="return false;"
                                                     rendered="#{lastEditable}"
                                                     image="#{imagesLocationOnly}/add.png">
                                      <rich:componentControl for="panel" attachTo="btnL" operation="show"
                                                             event="onclick"/>
      </a4j:commandButton>
      <rich:modalPanel id="panel" width="450" height="150" shadowDepth="50">
                              <f:facet name="header">
                                  <h:panelGroup>
                                      <h:outputText
                                              value="#{msgs['personaddress.title']}"/>
                                  </h:panelGroup>
                              </f:facet>
                              <f:facet name="controls">
                                  <h:panelGroup>
                                      <h:graphicImage value="#{imagesLocationOnly}/popupclose.gif"
                                                      styleClass="hidelink" id="hidelink"/>
                                      <rich:componentControl for="panel" attachTo="hidelink" operation="hide"
                                                             event="onclick"/>
                                  </h:panelGroup>
                              </f:facet>
                           
                              <a4j:include viewId="single.xhtml"/>
      </rich:modalPanel>
      single.xhtml
      <h:panelGrid>
                  <h:outputText id="column2" value="#{msgs['psadIdPostaddress.address']}"/>
                  <h:inputText id="postaddressaddresst"
                               value="#{ptaddressModel.posdress.address}"/>
                  <h:outputText id="column3" value="#{msgs['psadIdPostaddress.postCode']}"/>
                  <h:inputText id="psspostalCodet"
                               value="#{ptaddressModel.posdress.postCode}"/>
      <a4j:commandButton action="#{test.Add}" value="X" />
      </h:panelGrid> 

       

      when i submit form with command button , my bean is null ! no value set to my object.

       

      i have parent form in my main form.

       

       

      how must i do to submit form?