struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Corallo <cora...@link.it>
Subject Struts2 - JSF Plugin - Richfaces
Date Fri, 16 Jul 2010 13:27:13 GMT
Hi all,

i'm trying to use richfaces with struts2 and jsf-plugin...but it doesn't
work ... someone can help?


I've added this to my web.xml:

<servlet>
    	<servlet-name>faces</servlet-name>
	    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    	<load-on-startup>1</load-on-startup>
  	</servlet>
  	 
  	<servlet>
    	<servlet-name>JspSupportServlet</servlet-name>

<servlet-class>org.apache.struts2.views.JspSupportServlet</servlet-class>
    	<load-on-startup>1</load-on-startup>
  	</servlet>

  	<context-param>
	    <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
	    <param-value>com.sun.facelets.FaceletViewHandler</param-value>
	</context-param>
  	
  	<context-param>
	  <param-name>com.sun.faces.serializationProvider</param-name>

<param-value>org.jboss.web.jsf.integration.serialization.JBossSerializationProvider</param-value>
	 </context-param>
	 
	 <context-param>
	  <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
	  <param-value>.xhtml</param-value>
	</context-param>
<!-- RichFaces -->
	<context-param>
	  <param-name>org.richfaces.CONTROL_SKINNING</param-name>
	  <param-value>enable</param-value>
	 </context-param>
	
	<context-param>
	  <param-name>org.richfaces.SKIN</param-name>
	  <param-value>blueSky</param-value>
	</context-param>
	<context-param>
	    <param-name>org.richfaces.LoadStyleStrategy</param-name>
	    <param-value>ALL</param-value>
	</context-param>
	<context-param>
	    <param-name>org.richfaces.LoadScriptStrategy</param-name>
	    <param-value>ALL</param-value>
	</context-param>
	<filter>
	  <display-name>RichFaces Filter</display-name>
	  <filter-name>richfaces</filter-name>
	  <filter-class>org.ajax4jsf.Filter</filter-class>
	</filter>
	 
	 <filter-mapping>
	  <filter-name>richfaces</filter-name>
	  <servlet-name>faces</servlet-name>
	  <dispatcher>INCLUDE</dispatcher>
	  <dispatcher>REQUEST</dispatcher>
	  <dispatcher>FORWARD</dispatcher>
	 </filter-mapping>
  	<!-- JavaServer Faces Servlet Mapping, not called directly -->
    <servlet-mapping>
        <servlet-name>faces</servlet-name>
        <url-pattern>*.action</url-pattern>
  	</servlet-mapping>

I can see the generated markup but without the graphics because it seems
that the css and the js are not loaded. 

Any suggestions?


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message