4 Replies Latest reply on Dec 3, 2007 7:08 AM by Ilya Shaikovsky

    tabpanel valuechange problem

    Steven De Groote Newbie

      Hi,

      first of all, I'm using
      JSF 1.2_06 RI
      Richfaces 3.1.x (doesn't matter which one, happens in all versions)
      Facelets 1.1.13

      Now, my rich:tabpanel causes problems that the valueChangeListener is not working as it should. When I change tabs I get the following error:

      29-nov-2007 11:20:40 com.sun.faces.lifecycle.UpdateModelValuesPhase execute
      WARNING: /quote/input.jsp @26,81 valueChangeListener="#{quoteInput.changeTab}": Method not found: be.sofico.web.mgbean.quote.Input@1535a58.changeTab()


      My page looks like this:

      <html xmlns="http://www.w3.org/1999/xhtml"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:a4j="http://richfaces.org/a4j"
       xmlns:rich="http://richfaces.org/rich">
      <head></head>
      <body>
      <ui:composition template="${path.static}/template/template.jsp">
      
       <ui:define name="title">
       Create quote
       </ui:define>
      
       <ui:define name="body">
       <h1>Create quote</h1>
       <h:form>
       <rich:tabPanel switchType="ajax" valueChangeListener="#{quoteInput.changeTab}">
       <rich:tab id="vehicletab" label="#{msg.quote_tab_vehicle}">
       </rich:tab>
       <rich:tab id="optionstab" label="#{msg.quote_tab_options}">
       </rich:tab>
       <rich:tab id="financetab" binding="#{quoteInput.financeTab}" label="#{msg.quote_tab_finance}">
       </rich:tab>
       </rich:tabPanel>
       </h:form>
       </ui:define>
      </ui:composition>
      </body>
      </html>
      


      I am however sure that this method exists and it did work as long as we didn't use facelets. :( In fact the method signature is as follows:
      public void changeTab(ValueChangeEvent event) throws MWSException

      Did anyone have similar problems or something and could this be a bug?