This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes Problems with page layout after migrating to JSF 2.0, RichFaces 4.1.0 Final Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Problems with page layout after migrating to JSF 2.0, RichFaces 4.1.0 Final" Watch "Problems with page layout after migrating to JSF 2.0, RichFaces 4.1.0 Final" New topic
Author

Problems with page layout after migrating to JSF 2.0, RichFaces 4.1.0 Final

Adam Kronicki
Ranch Hand

Joined: Sep 01, 2009
Posts: 68
I have updated my project to richfaces 4.1.0 and JSF 2.0. I have abviously changed the maven dependencies, updated web.xml, faces-config.xml, swtiched from *.jsp files to *.xhtml files, updated all head,body,form to h:head, h:body, h:form. However, I have significant problems with my page layout and a4j:ajax behavior. I think that it's best if I just list the problems:

-My rich:datatable & rich:calendar skin stopped working. I even tried deleting the columnClass etc. attributes from the tag to leave it with default bluesky skin, but the outcome looks just like a plain html table (no lines, no background, no colors). The same with calendar: when I click on the popup button the calendar is plain transparent text - no background color, nothing. When I click on a date it's changing but the event is not fired.
-the a4j:axjax tag works much worse thatn a4j:support did. For my selectOneMenus I tried event="change" but it doesn't work. Only after adding a valueChangedListener to the tags and tried event="valueChange" it worked.
-Although event="valueChange" worked on selectOneMenu, my a4j:mediaOutput image is not re-rendered. And the chart was the reason why I switched to JSF 2.0 because I needed to use the session-data-helper mechanism to load the images. Is there a special mechanism to rerender (or now 'render' with a4j:ajax) this element when it's using the session-data-helper for loading data?

Moreover I have discovered that apart from my css files the page has only skinning.css file which does not have the classes form calendar & datatable. Shouldn't be more css files with the classes?

Here are the web.xml and index.xhtml files:


index.xhtml


here is a list of .jar files deployed with the webapp:

commons-logging-1.1.1.jar
cssparser-0.9.5.jar
guava-r08.jar
jcommon-1.0.16.jar
jfreechart-1.0.13.jar
jsf-api-2.1.6.jar
jsf-impl-2.1.6.jar
jstl-1.2.jar
mysql-connector-java-5.1.18.jar
oscache-2.3.jar
richfaces-components-api-4.1.0.Final.jar
richfaces-components-ui-4.1.0.Final.jar
richfaces-core-api-4.1.0.Final.jar
richfaces-core-impl-4.1.0.Final.jar
sac-1.3.jar
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Problems with page layout after migrating to JSF 2.0, RichFaces 4.1.0 Final
 
Similar Threads
Problems upgrading from JSF1.1_1 + Richface 3.1.5 to JSF1.2_14 + RichFace3.3.3
Problem trying to send file to browser in JSF
SessionAffinityManager setCookie SESN0066E: The response is already committed to the client.
problem on saving inputText values
com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! Must have a Constructor that take