JBoss.orgCommunity Documentation

Migration Guide

Migrating existing projects to RichFaces 4.0.0 (draft)

Logo

Abstract

Read this book to take an existing RichFaces project and upgrade it for use with RichFaces 4. The book covers changes in component usage and behaviors, as well as new framework features which may affect existing RichFaces projects.


There have been several changes made to the RichFaces framework for version 4 that may affect migrated projects.

Several component and event attribute names have been changed from those used in previous versions of RichFaces. The names have been changed to be more consistent with attribute names used by JavaServer Faces 2, so as to provide standardized usage. Many of the name changes also provide more consistency and cleanliness within the framework itself. Other attributes have been deprecated in favor of consistent functionality.

process

Changed to execute in 4.

Affected a4j components
<a4j:support> <a4j:form> <a4j:push>
<a4j:commandButton> <a4j:jsFunction>  
<a4j:commandLink> <a4j:poll>  
Affected rich components
<rich:autocomplete> <rich:menuItem> <rich:toggleControl>
<rich:calendar> <rich:panelMenuGroup> <rich:togglePanel>
<rich:dataFilterSlider> <rich:panelMenuItem> <rich:togglePanelItem>
<rich:dataScroller> <rich:progressBar> <rich:tree>
<rich:dropSupport> <rich:tab> <rich:treeNode>
reRender

Changed to render in 4.

Affected a4j components
<a4j:support> <a4j:form> <a4j:push>
<a4j:commandButton> <a4j:jsFunction>  
<a4j:commandLink> <a4j:poll>  
Affected rich components
<rich:autocomplete> <rich:dragSupport> <rich:progressBar>
<rich:ajaxValidator> <rich:dropSupport> <rich:tab>
<rich:calendar> <rich:extendedDataTable> <rich:togglePanel>
<rich:dataFilterSlider> <rich:menuItem> <rich:tree>
<rich:dataScroller> <rich:panelMenuGroup> <rich:treeNode>
<rich:dataTable> <rich:panelMenuItem>  
eventsQueue

Changed to queue in 4.

Affected a4j components
<a4j:support> <a4j:form> <a4j:push>
<a4j:commandButton> <a4j:jsFunction>  
<a4j:commandLink> <a4j:poll>  
Affected rich components
<rich:ajaxValidator> <rich:dropSupport> <rich:toggleControl>
<rich:autocomplete> <rich:menuItem> <rich:togglePanel>
<rich:calendar> <rich:panelMenuGroup> <rich:togglePanelItem>
<rich:dataFilterSlider> <rich:panelMenuItem> <rich:tree>
<rich:dataScroller> <rich:progressBar>  
<rich:dragSupport> <rich:tab>  
limitToList

Changed to limitRender in 4.

Affected a4j components
<a4j:support> <a4j:form> <a4j:push>
<a4j:commandButton> <a4j:jsFunction>  
<a4j:commandLink> <a4j:poll>  
Affected rich components
<rich:ajaxValidator> <rich:dropSupport> <rich:toggleControl>
<rich:autocomplete> <rich:menuItem> <rich:togglePanel>
<rich:calendar> <rich:panelMenuGroup> <rich:togglePanelItem>
<rich:dataFilterSlider> <rich:panelMenuItem> <rich:tree>
<rich:dataScroller> <rich:progressBar> <rich:treeNode>
<rich:dragSupport> <rich:tab>  
onbeforedomupdate

Changed to onsuccess in 4.

ignoreDupResponses

Deprecated. Functionality moved to queue in 4.

Affected a4j components
<a4j:support> <a4j:form> <a4j:push>
<a4j:commandButton> <a4j:jsFunction> <a4j:queue>
<a4j:commandLink> <a4j:poll>  
Affected rich components
<rich:ajaxValidator> <rich:dropSupport> <rich:toggleControl>
<rich:autocomplete> <rich:menuItem> <rich:togglePanel>
<rich:calendar> <rich:panelMenuGroup> <rich:togglePanelItem>
<rich:dataFilterSlider> <rich:panelMenuItem> <rich:tree>
<rich:dataScroller> <rich:progressBar> <rich:treeNode>
<rich:dragSupport> <rich:tab>  
requestDelay

Deprecated. Functionality moved to queue in 4.

Affected a4j components
<a4j:support> <a4j:commandLink> <a4j:jsFunction>
<a4j:commandButton> <a4j:form> <a4j:queue>
Affected rich components
<rich:ajaxValidator> <rich:dragSupport> <rich:togglePanel>
<rich:autocomplete> <rich:dropSupport> <rich:tab>
<rich:calendar> <rich:menuItem> <rich:tree>
<rich:dataFilterSlider> <rich:panelMenuGroup>  
<rich:dataScroller> <rich:panelMenuItem>  
ajaxSingle

Deprecated. Use execute="@this" in 4 instead.

Affected a4j components
<a4j:support> <a4j:form> <a4j:push>
<a4j:commandButton> <a4j:jsFunction>  
<a4j:commandLink> <a4j:poll>  
Affected rich components
<rich:calendar> <rich:panelMenuGroup> <rich:togglePanel>
<rich:dataFilterSlider> <rich:panelMenuItem> <rich:togglePanelItem>
<rich:dataScroller> <rich:progressBar> <rich:toolTip>
<rich:dropSupport> <rich:suggestionBox> <rich:tree>
<rich:fileUpload> <rich:tab> <rich:treeNode>
<rich:menuItem> <rich:toggleControl>  

Features have been altered or added to existing components and behaviors in the RichFaces 4 framework. Refer to the Developer Guide for full details on how to make use of any new features.

Several new components and behaviors have been added to RichFaces 4, some of which replace the functionality of deprecated elements. For full details on how to use these new components and behaviors, refer to the Component Reference.

Some components and behaviors have been deprecated in RichFaces 4. For the most part these items have their functionality replicated by another component or behavior. Refer to Section 3.5, “Consolidated or renamed components” for further details on consolidated functionality.

Revision History
Revision 0.1Tue Oct 20 2009Sean Rogers
Basic first draft
Revision 0.2Fri May 07 2010Sean Rogers
Revised draft