4 Replies Latest reply on Apr 24, 2007 11:04 AM by Tiago Alves

    rich:tab get exception in switchType=client

    Tiago Alves Newbie


      Hi all,

      I´m having problems with rich:tab. When i choose switchType=client the tabs switch as expected, but when i click on a h:button outside rich:tab i get an exception.

      But when i change the switchtype to 'ajax' or 'server', the h:button works as expected.

      Am i missing something ?

      My jsp is :

      <rich:tabPanel width="100%" height="300px" switchType="client">
      <rich:tab label="tab01">
      ...
      </rich:tab>

      <rich:tab label="tab02">
      ...
      </rich:tab>

      <rich:tab label="tab03">
      ...
      </rich:tab>

      </rich:tabPanel>

      <t:htmlTag value="br" />

      <h:commandButton action="#{BC06001.doVisualizar}" value="Visualizar" />


      and the exception:


      2007-04-16 10:21:44,503 [http-8080-Processor22] ERROR - org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:253) - Servlet.service() for servlet Faces Servlet threw exception
      java.lang.NullPointerException
      at javax.faces.event.FacesEvent.queue(FacesEvent.java:54)
      at org.richfaces.renderkit.TabPanelRendererBase.doDecode(TabPanelRendererBase.java:94)
      at org.ajax4jsf.framework.renderer.RendererBase.decode(RendererBase.java:76)
      at javax.faces.component.UIComponentBase.decode(UIComponentBase.java:500)
      at javax.faces.component.UIInput.decode(UIInput.java:223)
      at org.richfaces.component.UISwitchablePanel.processDecodes(UISwitchablePanel.java:158)
      at javax.faces.component.UIForm.processDecodes(UIForm.java:53)
      at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:602)
      at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:602)
      at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:602)
      at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:135)
      at org.ajax4jsf.framework.ajax.AjaxViewRoot.access$001(AjaxViewRoot.java:53)
      at org.ajax4jsf.framework.ajax.AjaxViewRoot$1.invokeRoot(AjaxViewRoot.java:254)
      at org.ajax4jsf.framework.ajax.JsfOneOneInvoker.invokeOnRegionOrRoot(JsfOneOneInvoker.java:54)
      at org.ajax4jsf.framework.ajax.AjaxContext.invokeOnRegionOrRoot(AjaxContext.java:176)
      at org.ajax4jsf.framework.ajax.AjaxViewRoot.processDecodes(AjaxViewRoot.java:267)
      at org.apache.myfaces.lifecycle.LifecycleImpl.applyRequestValues(LifecycleImpl.java:219)
      at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:71)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:96)
      at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:220)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
      at java.lang.Thread.run(Thread.java:595)