n00b seeking for help...
dablackgoku1234 Aug 16, 2007 12:31 PMHi all,
I'm kinda new to Richfaces. I've read the developer's guide and followed some of the steps to get things in place, however, I am not having any luck on getting the desired widget on the screen.
Here is the situation: I currently have an app running on Spring/MyFaces/Tomahawk/Shale. All the URLs look like xxx.faces.
1) I added the taglib <%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
2) I added the following jars to WEB-INF\lib
richfaces-api-3.1.0-rc2.jar
richfaces-impl-3.1.0-rc2.jar
richfaces-ui-3.1.0-rc2.jar
xalan.jar
3) Inside web.xml, I added the following lines:
<filter> <display-name>Ajax4jsf Filter</display-name> <filter-name>ajax4jsf</filter-name> <filter-class>org.ajax4jsf.Filter</filter-class> </filter> <filter-mapping> <filter-name>ajax4jsf</filter-name> <servlet-name>Faces Servlet</servlet-name> <dispatcher>REQUEST</dispatcher> <dispatcher>FORWARD</dispatcher> <dispatcher>INCLUDE</dispatcher> </filter-mapping> <servlet> <servlet-name>Faces Servlet</servlet-name> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>Faces Servlet</servlet-name> <url-pattern>*.faces</url-pattern> </servlet-mapping>
4) in my jsp, I added <rich:inputNumberSlider value="50"/>
That's it according to the guide. I am getting 2 errors...
1) a null pointer on the first url hit with a .faces extension
ERROR [http-8800-Processor25] PhaseListenerManager.informPhaseListenersAfter(94) | Exception in PhaseListener RENDER_RESPONSE(6) afterPhase java.lang.NullPointerException at org.apache.myfaces.custom.redirectTracker.RedirectTrackerManager.getInstance(RedirectTrackerManager.java:168) at org.apache.myfaces.custom.redirectTracker.RedirectTrackerVariableResolver.resolveVariable(RedirectTrackerVariableResolver.java:47) at org.apache.myfaces.custom.security.SecurityContextVariableResolver.resolveVariable(SecurityContextVariableResolver.java:45) at org.ajax4jsf.context.AjaxContext.getCurrentInstance(AjaxContext.java:97) at org.ajax4jsf.event.AjaxPhaseListener.afterPhase(AjaxPhaseListener.java:75)
2) javascript error when I hit the jsp with the rich:inputNumberSlider tag. It seems that it did not included the required js files in the header
I know i'm probably missing something along the way, however, I pretty much followed the installation/dev guide step by step. Any help would be greatly appreciated!
Thanks
John