0 Replies Latest reply on Nov 10, 2012 1:12 PM by Sergey Morenets

    rich:tabPanel and rich:validator issue

    Sergey Morenets Novice

      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"





                                            <rich:messages errorClass="errors" />
      <h:outputText value="#{msg['profile.login']}" />
      <h:inputText value="#{account.username}"
      <f:validateRequired />