Hi, all
I have the following page: tabPanel with several tabs and editable fields inside tabs.
The validation is standard and displays validator messages upon error.
I have encountered the following issues or inconsistent behavior:
If validation fails for the first tab and switchType = "client" then error message is displayed on
all the tabs where rich:messages component is also present. I tried to avoid that and change switchType
to ajax(or server). However I cannot switch to other tab after that. Moreover the standard JSF validation message
is displayed(not the one I specified in h:inputText).
What is the desired solution here?
<rich:tabPanel switchType="client" | |||||
activeItem="#{accountBean.selectedTab}"> |
<rich:tab> | |||||
..... | |||||
</rich:tab> |
</rich:tabPanel>
<rich:messages errorClass="errors" /> | ||||||||
<rich:validator> | ||||||||
<h:outputText value="#{msg['profile.login']}" /> | ||||||||
<h:inputText value="#{account.username}" | ||||||||
validatorMessage="#{msg['profile.login.required']}"> | ||||||||
<f:validateRequired /> | ||||||||
</h:inputText> |