1 Reply Latest reply on Dec 14, 2007 8:21 AM by Ilya Shaikovsky

    tabPanel Problem in Richfaces3.1 API

    sk shaik Newbie

      HI All,

      I have upgraded the Richfaces version from 3.0 to 3.1(To use calendar control) by following steps

      Jars Up gradation(mandatory)
      1. Delete ajax4jsf-1.1.1.jar and richfaces-3.0.1.jar from Web-Inf/lib directory
      2. Copy the new richfaces3.1 jars to the project Web-Inf/lib directory. (Richfaces-ui-3.1.0, richfaces-impl-3.1.0 and richfaces-api-3.1.0).

      Taglib changes for the all Jsp pages(mandatory only if we use calnedar control)

      1. Find the following JSP taglib for a4j

      <%@ taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j" %>
      And replace with
      <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>

      2. Find the following JSP taglib for richfaces
      <%@ taglib uri="http://richfaces.ajax4jsf.org/rich" prefix="vcp" %>
      And replace with
      <%@ taglib uri="http://richfaces.org/rich" prefix="vcp" %>


      Calendar working fine.But now I am running following tabPanel problems for other jsp pages after the above steps

      org.apache.jasper.JasperException: Exception in JSP: /pages/maintabbedpane.jsp:46

      43: <h:commandLink value="Logout" action="#{authenticationBeanSes.logout}" />
      44: </h:panelGrid>
      45:
      46: <vcp:tabPanel selectedTab="#{mainTabbedPaneBeanSes.selectedControlTab}"
      47: value="#{mainTabbedPaneBeanSes.selectedControlTab}"
      48: height="1"
      49: width="100%"


      Stacktrace:
      org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:451)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
      com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
      org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
      org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216)
      com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
      com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
      com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
      org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
      org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)


      root cause

      java.lang.NullPointerException
      org.richfaces.taglib.TabPanelTagBase.logValueDeprecation(TabPanelTagBase.java:44)
      org.richfaces.taglib.TabPanelTagBase.setValue(TabPanelTagBase.java:63)
      org.apache.jsp.pages.maintabbedpane_jsp._jspx_meth_vcp_005ftabPanel_005f0(maintabbedpane_jsp.java:743)
      org.apache.jsp.pages.maintabbedpane_jsp._jspx_meth_h_005fform_005f0(maintabbedpane_jsp.java:245)
      org.apache.jsp.pages.maintabbedpane_jsp._jspx_meth_f_005fview_005f0(maintabbedpane_jsp.java:194)
      org.apache.jsp.pages.maintabbedpane_jsp._jspService(maintabbedpane_jsp.java:138)
      org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
      com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
      org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
      org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216)
      com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
      com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
      com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
      org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
      org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)


      Please help me.
      Thanks
      Isma