richfaces tabs + form submit
svkap Jan 6, 2010 2:00 AMHi 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"
selectedTab="#{testBean.selectedTab}"
valueChangeListener="#{testBean.tabPanelSwitched}">
<rich:tab id="testtab1id" rendered="true" label="test 1"
title="test 1">
<h:form id="someOtherForm">
<h:outputText value="test 1" />
</h:form>
</rich:tab>
<rich:tab rendered="#{testBean.renderEditProfile}"
id="test2TabId" label="test 2" title="test 2">
<f:view>
<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" />
</h:inputText>
<rich:message id="testMsg" for="TxtTest"
errorClass="errorMessage" />
</h:panelGrid>
<h:commandButton id="btnTestSubmit"
image="/img/button-submit.gif"
action="#{testeBean.testForm}"
style="float: right; border: 0;" />
</h:form>
</f:view>
</rich:tab>
<rich:tab id="calendarTabId"
rendered="#{testBean.renderEditProfile}" label="tab3"
title="tab3" name="tab3">
<h:outputText value="tab3" />
</rich:tab>
</rich:tabPanel>
Have anyone had similar problems?