]
Ilya Shaikovsky resolved RF-1628.
---------------------------------
Resolution: Rejected
Just works fine for me..
<rich:tabPanel switchType="ajax" selectedTab="#{bean.tabName}"
valueChangeListener="#{bean.valueChanged}">
<rich:tab>
<f:facet name="label">
<h:graphicImage
value="/pages/tennessee.gif"></h:graphicImage>
</f:facet>
<a4j:support event="ontableave"></a4j:support>
<ui:include src="/pages/greeting1.xhtml" />
<h:outputText value="1"></h:outputText>
<h:inputText value="#{bean.property1}" required="true" />
</rich:tab>
<rich:tab label="Sample 2" name="tab2">
<a4j:support event="ontabenter"></a4j:support>
<h:outputText value="2"></h:outputText>
<h:inputText value="#{bean.property1}"></h:inputText>
<ui:include src="/pages/greeting1.xhtml" />
</rich:tab>
</rich:tabPanel>
and
private String tabName="tab2";
public String getTabName() {
return tabName;
}
3.1.3 rc3 and 3.2.0 snapshot.
Please provide sample war to reproduce.
tabPanel errors after the Richfaces upgradation from 3.0 to 3.1
---------------------------------------------------------------
Key: RF-1628
URL:
http://jira.jboss.com/jira/browse/RF-1628
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.0
Environment: Windows Xp/sp2,Eclipse Euroda3.3,Richfaces3.1.0
Reporter: sk shaik
Assigned To: Ilya Shaikovsky
Fix For: 3.2.0
As per the Ajax4JSf Forum ,I follwed the following steps to upgrade Richfaces3.0 to
Richfaces3.1 API(To use calendar control)
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 CDS 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 errors for the other pages
after the above steps
<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)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: