4 Replies Latest reply on May 14, 2008 9:24 AM by ns76

    ontabchange attribute for TabPanel

    ns76

      I have been trying to use the tabpanel ontabchange attribute with Rich Faces 3.2.0 GA and jstl 1.1.2 - i get an error message "Attribute ontabchange invalid for tag tabPanel according to TLD" - this was the same problem that i had with 3.1.4 but switching to 3.2 does not seem to do the trick.

      If any one's experienced this snag before, please post if you were able to resolve it.

      Thanks,
      NS

        • 1. Re: ontabchange attribute for TabPanel
          ilya_shaikovsky

          paste the snippet please.

          • 2. Re: ontabchange attribute for TabPanel
            ns76

            Here's the code,
            Thanks,
            NS

            <f:view>






            <jsp:include page="leftNav.jsp"></jsp:include>


            <rich:tabPanel rendered="#{navigationBean.registerPageEnabled}" ontabchange="submit()">
            <rich:tab label="Registration Page">
            <jsp:include page="registration.jsp"/>
            </rich:tab>
            <rich:tab label="Business Contact">
            <jsp:include page="contact.jsp"/>
            </rich:tab>
            <rich:tab label="CCTV">
            <jsp:include page="cctv.jsp"/>
            </rich:tab>
            </rich:tabPanel>
            <rich:tabPanel rendered="#{navigationBean.listPageEnabled}">
            <rich:tab>
            <jsp:include page="listPages.jsp"></jsp:include>
            </rich:tab>
            </rich:tabPanel>






            </f:view>

            • 3. Re: ontabchange attribute for TabPanel
              tkuprevich

              Hi ns76,

              I have just tried and it works. I am using 3.2.1.CR4. Try this way:

              ontabchange="alert('tabCahnge')"

              And you should see alert message.

              • 4. Re: ontabchange attribute for TabPanel
                ns76

                Thank you for checking this out for me. It looks like i need to switch to 3.2.1 then.