-
1. Re: JSF2.0 and RichFaces 3.3.3
nbelaevski Mar 30, 2010 12:52 PM (in response to kirua007)Hi,
Check that you have configured Facelets view handler (see RF user guide for more information).
-
2. Re: JSF2.0 and RichFaces 3.3.3
fabricio.lemos Aug 4, 2010 9:06 AM (in response to nbelaevski)Hi,
I got the same problem after defining DISABLE_FACELET_JSF_VIEWHANDLER.
My xhtml files are not being parsed. I think I have configured Facelets view handle right. My project runs on Glassfish v3 and here is my web.xml:
{code:xml}<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5">
<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>*.jsf</url-pattern>
</servlet-mapping>
<context-param>
<param-name>facelets.DEVELOPMENT</param-name>
<param-value>true</param-value>
</context-param><context-param>
<param-name>javax.faces.DISABLE_FACELET_JSF_VIEWHANDLER</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>
<context-param>
<param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
<param-value>com.sun.facelets.FaceletViewHandler</param-value>
</context-param>
</web-app>{code} -
3. Re: JSF2.0 and RichFaces 3.3.3
ilya_shaikovsky Aug 4, 2010 9:19 AM (in response to fabricio.lemos)you added facelets 1.1.15 jar?
-
4. Re: JSF2.0 and RichFaces 3.3.3
fabricio.lemos Aug 4, 2010 9:39 AM (in response to ilya_shaikovsky)I added facelets jar and now it´s working. Oddly enough Glassfish was not giving any ClassNotFoundException error before.
Thank you Ylka!
-
5. Re: JSF2.0 and RichFaces 3.3.3
bbboub Sep 2, 2010 5:40 AM (in response to fabricio.lemos)Hello,
I have similar problems.
I have scrupulously followed the instructions on the forum in order to have this example working (http://livedemo.exadel.com/richfaces-demo/richfaces/mediaOutput.jsf?c=mediaOutput&tab=usage) but nothing is displayed.
There is no error but I cannot get any component displayed.
I am using Glassfish Server 3, JDK 1.6, JSF2.0 and Netbans 6.9.
I have added the following jar files:
commons-beanutils-1.8.3.jar
commons-collections-3.2.1.jar
commons-digester-2.0.jar
commons-logging-1.1.1.jar
richfaces-impl-jsf2-3.3.3.Final.jar
richfaces-api-3.3.3.Final.jar
richfaces-ui-3.3.3.Final.jar
jsf-facelets-1.1.15.jar
I have no faces-config.xml and my web.xml file is at the end of the post.
What can I do?
Best regards,
Bou
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5"><!-- FROM NETBEANS-->
<context-param>
<param-name>javax.faces.PROJECT_STAGE</param-name>
<param-value>Development</param-value>
</context-param>
<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>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>faces/index.xhtml</welcome-file>
</welcome-file-list><!-- FROM RICHFACES -->
<context-param>
<param-name>javax.faces.DISABLE_FACELET_JSF_VIEWHANDLER</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>
<!-- Plugging the "Blue Sky" skin into the project -->
<context-param>
<param-name>org.richfaces.SKIN</param-name>
<param-value>blueSky</param-value>
</context-param>
<!-- Making the RichFaces skin spread to standard HTML controls -->
<context-param>
<param-name>org.richfaces.CONTROL_SKINNING</param-name>
<param-value>enable</param-value>
</context-param>
<!-- Defining and mapping the RichFaces filter -->
<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</servlet-name>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping></web-app>
-
6. Re: JSF2.0 and RichFaces 3.3.3
nbelaevski Sep 2, 2010 1:34 PM (in response to bbboub)Hi,
You should configure ViewHandler either in faces-config.xml or in web.xml:
<context-param>
<param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
<param-value>com.sun.facelets.FaceletViewHandler</param-value>
</context-param> -
7. Re: JSF2.0 and RichFaces 3.3.3
bbboub Sep 3, 2010 3:44 AM (in response to nbelaevski)Thank you very much for your reply it works better. I have tried a few components and it works.
However an empty frame is displayed and the image does not appear as far as the outputMedia tutorial is concerned (it looks like it is unavailable). However by looking at the adresse, I can see a lot of coding caracter which should correspond to the data of the image created.
May be I need to open a new post because the problem seems to be slightly different now. What do you think?
Anyway, thank you very much again,
Bou
-
-
9. Re: JSF2.0 and RichFaces 3.3.3
bbboub Sep 3, 2010 9:06 AM (in response to nbelaevski)Thank you very much,
I am going to study carefully this documentation.
I think I need a little time.
Thank you very much one more time.
Bou
-
10. Re: JSF2.0 and RichFaces 3.3.3
bbboub Nov 5, 2010 6:06 AM (in response to bbboub)Hello,
I am really sorry to disturb you again with such basic things but I am quite alone on this matter and this is the only way I have to get help.
I found time to study carefully the sample given in the link above and one more time everything seems to work (no errors) but leads to two kinds of situations:
1/ using the sample without any changes: I've got the message: "This XML file does not appear to have any style information associated with it". Of course I have tried to find issue for this but I didn't really succeed.
2/ using some modifications: using a slightly modified version of screen.css and index.xhtml. Nothing is displayed (white page) even if I use the configuration suggested in a previous post about ViewHandler configuration in the web.xml.
Is it possible to have a straightforward example working with Netbeans 6.9.X to overcome these difficulties?
Best regards,
Bou
PS: I have attached my Netbeans project to facilitate the situation.
-
MOS.rar.zip 20.5 KB
-
-
11. Re: JSF2.0 and RichFaces 3.3.3
cirix Nov 7, 2010 4:16 PM (in response to bbboub)I must admit that for me also moving to 3.3.4 or in 4.0 of richfaces wasn't easy and i must admit i am not a new user of the framework.Also i don't understand why guys have added extra dependencies to other jars in version 4.0(.i.e. i refer to sac and google-guava...) I think the target when updating upgrading is to keep dependencies as minimal as we can?Also i was really fun of the rich:page tag in previous versions which allowed creating very good page layout without struggling with css...do you plan on supporting that on the version 4.
Also i had a look at primefaces and i must admit that the migration was really easy and the deployment in glassfish or in jboss 6 really successful. Still i will go with richfaces but shouldn't the framework with moving to the new specs/jsr be simplified instead of becoming more complex to deploy a simple application.
best regards
\n\m