8 Replies Latest reply on Jan 12, 2010 9:45 AM by Ilya Shaikovsky

    richfaces tabs + form submit

    sv kap Newbie

      Hi all.


      I have a problem with submitting forms inside richfaces tab panel. When the form is outside the tab panel it works fine. When I add it to some tab #{testeBean.testForm} is not executed. However it makes a new request and the tab panel switches to the first tab.


          <rich:tabPanel id="pnlTestTbSet" switchType="server"

                      <rich:tab id="testtab1id" rendered="true" label="test 1"
                          title="test 1">       
                      <h:form id="someOtherForm">   
                          <h:outputText value="test 1" />                   

                      <rich:tab rendered="#{testBean.renderEditProfile}"
                          id="test2TabId" label="test 2" title="test 2">

                              <h:form id="testForm">
                                  <h:panelGrid columns="3"
                                      columnClasses="pnlGrdClass, pnlGrdClass, pnlGrdClassLong">

                                      <h:outputLabel for="TxtTest" value="Test:"
                                          style="line-height:200%" />
                                      <h:inputText id="TxtTest" size="30" maxlength="30"
                                          value="#{testBean.name}" required="true">
                                          <f:validateLength minimum="3" maximum="40" />
                                          <rich:ajaxValidator event="onblur" />
                                      <rich:message id="testMsg" for="TxtTest"
                                          errorClass="errorMessage" />

                                  <h:commandButton id="btnTestSubmit"
                                      style="float: right; border: 0;" />


                      <rich:tab id="calendarTabId"
                          rendered="#{testBean.renderEditProfile}" label="tab3"
                          title="tab3" name="tab3">
                          <h:outputText value="tab3" />



      Have anyone had similar problems?