voyent
How to integrate icefaces and richfaces  XML
Forum Index -> JBoss Seam Integration
Author Message
thiagu

Joined: 17/May/2007 00:00:00
Messages: 4
Offline


Hai everyone

i create a project in jboss-seam-1.2.1.GA, it supports richfaces-3.0.1-SNAPSHOT and i am use JBoss-4.0.5.GA server and my ant version -1.6.1.

in my project i need to configure icefaces 1.6.DR5. so i download ICEfaces-Eclipse-IDE-v2.0.1 and configure with my eclipse 3.3. then i Add ICEfaces capabilities to my project by follow plugin document readme file.

then i build my project it gives following exception

Code:
 
 18:32:12,703 ERROR [StartupServletContextListener] Error initializing ServletContext
 java.lang.IllegalArgumentException: Class org.ajax4jsf.framework.ajax.AjaxStateManager is no javax.faces.application.StateManager
 	at org.apache.myfaces.config.FacesConfigurator.getApplicationObject(FacesConfigurator.java:536)
 	at org.apache.myfaces.config.FacesConfigurator.configureApplication(FacesConfigurator.java:462)
 	at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:141)
 	at org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:69)
 	at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:52)
 	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
 	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
 	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
 	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
 
 


i try it another way

download the ICEfaces-Seam-Gen-1.6.0 then i rename the folder as "seam-gen" and put it into jboss-seam-1.2.1.GA and the crate a seam project with ICEfaces capabilities. then i follow the richfaces-usersguide

1. i put "richfaces-3.0.1-SNAPSHOT.jar" file into the lib folder of my application.
2. and i put "ajax4jsf-1.1.1-SNAPSHOT.jar" and "oscache2.3.2.jar" files into the lib folder of my application.
3. i insert this filter setting into the web.xml file for the application:
Code:
 <context-param>
 <param-name>org.ajax4jsf.SKIN</param-name>
 <param-value>blueSky</param-value>
 </context-param>
 
 <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>
 
 


then i build my project it gives following exception

Code:
 
 18:43:02,703 ERROR [[/mypart]] Exception starting filter ajax4jsf
 java.lang.ClassNotFoundException: org.ajax4jsf.Filter
 	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1355)
 	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1201)
 	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:209)
 	at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304)
 	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:77)
 	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3634)
 	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4217)
 
 


How to integrate icefaces 1.6.DR5 and Jboss richfaces-3.0.1-SNAPSHOT
Please any one help me

By
Thiagu.M
judy.guglielmin

Joined: 20/Feb/2007 00:00:00
Messages: 1388
Offline


Since ICEfaces has it's own components, it does not require richfaces. Also, jboss-seam with ajax4jsf filter, requires the filter to use these components and that is not compatible with our custom facelet view handler (which allows the partial submit/demand and interval renderers, etc).

It's a choice as to which ajax approach to use. Even without using the ICEfaces components, you get the Direct-to-DOM rendering. Check out the developer's guide at the following link, if you haven't already.

documentation & resources
kharalanova

Joined: 04/Aug/2008 00:00:00
Messages: 4
Offline


I don't understand why any help is being refused in order to integrate Rich Faces with IceFaces. I am not planning to rewrite a whole application already written with RichFaces in order to use couple of cool IceFaces components.

Is there any problem in using both IceFaces and RichFaces together?
lightguard


Joined: 11/May/2007 00:00:00
Messages: 165
Offline


kharalanova wrote:
Is there any problem in using both IceFaces and RichFaces together? 


It's not that help is being refused, it simply is not possible to use them both together. As Judy explained above RichFaces uses a Servlet Filter to achieve some (all? don't remember) of it's AJAX functionality. ICEfaces uses a Servlet. Filters are run before the request hits the servlet, and those two (the RichFaces filter and ICEfaces Servlet) don't play together well. You'll have to chose one or the other.

You might want to take a look at newer RichFaces releases (I believe they're at 3.2 or something like that) if you need additional components or features. As far as the components go, ICEfaces and RichFaces have a very comparable set of components currently.
kharalanova

Joined: 04/Aug/2008 00:00:00
Messages: 4
Offline


Thanks for your quick answer. This is exactly what I needed. It is now clear that I wouldn't be able to mix the 2 frameworks.

Just if you are interested: I needed to use the ice faces textEditor, that saves the content in HTML formal. I believe RichFaces haven't got a similar one.

Regards
lightguard


Joined: 11/May/2007 00:00:00
Messages: 165
Offline


No, it doesn't to my knowledge. I was looking into this earlier (before ICEfaces did it) and it may be possible to simply integrate FCKeditor with JSF. Here are some quick results from Google:

  • http://www.fckeditor.net/forums/viewtopic.php?f=6&t=10564
  • http://sourceforge.net/projects/fck-faces
  • http://forums.sun.com/thread.jspa?threadID=5317407&tstart=135
  • kharalanova

    Joined: 04/Aug/2008 00:00:00
    Messages: 4
    Offline


    Thank you for being so helpful. I will try to integrate FCKeditor.

    Regards
     
    Forum Index -> JBoss Seam Integration
    Go to:   
    Powered by JForum 2.1.7ice © JForum Team