voyent
JSF-Spring and Icefaces  XML
Forum Index -> General Help
Author Message
chrimp

Joined: 02/Mar/2007 00:00:00
Messages: 4
Offline


Hello folks,

First of all, I am an Icefaces Newbie ;)
But I think it's a really cool framework so i tried to integrate it together with JSF-Spring for nice-URLs.
I just added the Icefaces Viewhandler to the faces-config, but I don't know exactly how to implement Icefaces in the web.xml.

This is my JSF-Spring Mapping:
Code:
	<servlet>
 		<servlet-name>faces-spring</servlet-name>
 		<servlet-class>
 			de.mindmatters.faces.spring.context.servlet.FacesDispatcherServlet
 		</servlet-class>
 	</servlet>
 	<servlet-mapping>
 		<servlet-name>faces-spring</servlet-name>
 		<url-pattern>*.test</url-pattern>
 	</servlet-mapping>


but if I now add something like this:
Code:
	<servlet-name>Persistent Faces Servlet</servlet-name>
 		<servlet-class>
 			com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet
 		</servlet-class>
 		<load-on-startup>1</load-on-startup>
 	</servlet>
 	<servlet>
 	<servlet-mapping>
 		<servlet-name>Persistent Faces Servlet</servlet-name>
 		<url-pattern>*.test</url-pattern>
 	</servlet-mapping>

nothing works any more and I get a white page.
Anyone a solution for this problem?
Or how can I add more frameworks to Icefaces?

thanks a lot

greets chrimp
philip.breau


Joined: 08/May/2006 00:00:00
Messages: 2989
Offline


Hi Chrimp,

You can't have two different servlets handle the same request, which is what you're trying to do here with mapping both servlets to the same url. The first mapping will always be invoked and ICEfaces won't be initialized properly. There are probably a lot of other fundamental issues with mixing these two frameworks though. I'm not familiar with JSF-Spring, but I assume it invokes the JSF lifecycle itself, which is what ICEfaces needs to do.

If you need better bookmarkability and RESTful urls, take a look at Seam's page parameters.

Thanks,
Philip

.
chrimp

Joined: 02/Mar/2007 00:00:00
Messages: 4
Offline


Thanks for your answer, I expected something like that.
I think I'll have a look at JSF in-house means, perhaps it can make niceURLs itsself.

cheers

chrimp
 
Forum Index -> General Help
Go to:   
Powered by JForum 2.1.7ice © JForum Team