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 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 .

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 .

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 .

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 .

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 .

ignoreDupResponses

Deprecated. Functionality moved to queue in .

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 .

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 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 framework. Refer to the Developer Guide for full details on how to make use of any new features.

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