-
1. Re: Migration from JSF 1.2 to 2.0 and Richface 3.3 to 4.2
vi_mahe_ka1 Jul 22, 2012 3:49 AM (in response to anand_lgv)is the default css of the panel is not showing up or your custome css is not rendering?
to load customs css use
<
link rel="stylesheet" href="${facesContext.externalContext.requestContextPath}/css/*.css" type="text/css"/>
-
2. Re: Migration from JSF 1.2 to 2.0 and Richface 3.3 to 4.2
anand_lgv Jul 22, 2012 5:28 AM (in response to vi_mahe_ka1)Default css is not rendering. Let me share my code.
web.xml:
?>
<
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
id="WebApp_ID" version="2.5">
>
>
>
>
<param-name>org.richfaces.skin</param-name>
<param-value>blueSky</param-value>
</context-param>
<context-param>
<param-name>org.richfaces.enableControlSkinning</param-name>
<param-value>true</param-value>
</context-param>
>
>
>
<
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
</context-param>
<
>
>
>
<context-param>
>
>
</
>
>
>
>
>
>
>
>
>
>
>
and xhtml
<!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>
<
xmlns:rich="http://richfaces.org/rich" xmlns:ui=>
>
>
>
>
>
>
/>
>
>
>
>
>
</
>
-
3. Re: Migration from JSF 1.2 to 2.0 and Richface 3.3 to 4.2
vi_mahe_ka1 Jul 22, 2012 6:04 AM (in response to anand_lgv)can you add below code and try
<context-param>
<param-name>org.richfaces.SKIN</param-name>
<param-value>blueSky</param-value>
</context-param> -
4. Re: Migration from JSF 1.2 to 2.0 and Richface 3.3 to 4.2
anand_lgv Jul 22, 2012 3:21 PM (in response to vi_mahe_ka1)I have already added that in my Web.xml, In JSF 2.0 Migration guide i could see that SKIN is replaced as skin in JSF 2.0. So i have put org.richfaces.skin in my web.xml.
-
5. Re: Migration from JSF 1.2 to 2.0 and Richface 3.3 to 4.2
snjv180 Jul 22, 2012 10:03 PM (in response to anand_lgv)Hey Anand,
What you need to know that for richfaces 4.2.2 and JSF 2.0 you do not need any configuration. You can even delete the web.xml and faces-config.xml and it works. What you need are 4 jar files of richfaces, 1 cssparser jar file and sac jar file. For a running and testing sample projects you can download the code from Ilya's book "Practical Richfaces 4". Still if you find it difficult I can upload a working sample for you.
Anyway's I am going through a migration myself and I must tell it puts you through a lot of pain.
Please post which server you are using and the version of it. I advise you to use JBoss As 7.1.1 which I used and everything works as a charm.
Plus if you get confused.
Here is a post for the things you need.
https://community.jboss.org/wiki/HowToAddRichFaces4xToProjectsNotBasedOnMaven
-
6. Re: Migration from JSF 1.2 to 2.0 and Richface 3.3 to 4.2
anand_lgv Jul 23, 2012 11:47 PM (in response to snjv180)HI Sanjeev,
Thanks for your reply. Am using JBOSS 6 and eclipse INdigo 3.7. I have 4 Richfaces jar and 3 dependency jar[css parde, guava, sac]. I have a basic xhtml file and the same is rendering but with no styles both in IE as well as Firefox. On chceking the IE Developer, i could see no style associated with that page. The default style is not applied to it. I am having this issue for past 3 days.
-
7. Re: Migration from JSF 1.2 to 2.0 and Richface 3.3 to 4.2
snjv180 Jul 24, 2012 12:47 AM (in response to anand_lgv)Yes that is fine. and that is the working configuration. You have done <h:head>. Install firebug in the firefox and go to html panel and expand the head tag to see what resorces are being loaded in your webpage. I think you are not being redirected to the welcome page. You see there is a problem in the welcome page condiguration. You can browse it in the internet for further info. I just tested your code and it works however.
http://stackoverflow.com/questions/7015656/welcome-page-in-jsf.
Just Manually type in something like
http://localhost:8080/your_proj_name/index.jsf(or your welcome file/first page.)
There are however a problem in your web.xml like
<param-name>facelets.LIBRARIES</param-name>
is changed to
<param-name>javax.faces.FACELETS_LIBRARIES</param-name>
have a look for it.
It seems you have made custom tags too. So try to work without it for a while.
I have uploaded the one I have worked on so you could see it. And if it still gives error just press enter on the browser and it will work.
-
Rftest-jb.zip 7.1 MB
-
-
8. Re: Migration from JSF 1.2 to 2.0 and Richface 3.3 to 4.2
anand_lgv Jul 24, 2012 6:15 PM (in response to snjv180)Cool thanks Sanjeev. It is working, i guess i have messed up web.xml. Thanks for your help. The actual problem was with the JAR i used and not in web.xml of hte xhtml code. I used that JAR which was available as part of Sanjeev folder and it worked. I did some R and D and found that JAR is the issue.
-
9. Re: Migration from JSF 1.2 to 2.0 and Richface 3.3 to 4.2
snjv180 Jul 24, 2012 2:03 AM (in response to anand_lgv)Ok Enjoy !!! Please post as correct asnwer so that other users can benefit from it too!!!