JBoss.orgCommunity Documentation

Chapter 3. Changes and new features

3.1. JSF 2 integration
3.2. Standardized attributes
3.2.1. Name changes
3.2.2. Deprecated attributes
3.3. Performance
3.3.1. Bandwidth for generated markup
3.3.2. Resource requirements
3.4. Feature changes
3.4.1. Server-side process and render mechanisms
3.4.2. onbegin event attribute
3.4.3. <a4j:commandButton> and <a4j:commandLink>
3.4.4. <a4j:log>
3.4.5. <rich:message> and <rich:messages>
3.4.6. <a4j:outputPanel>
3.4.7. <a4j:push> and <a4j:poll>
3.4.8. <a4j:status>
3.4.9. <rich:popupPanel>
3.4.10. <rich:togglePanel>
3.5. Consolidated or renamed components
3.5.1. <rich:autocomplete>
3.5.2. <rich:accordion> and <rich:accordionItem>
3.5.3. <rich:collapsiblePanel>
3.5.4. <rich:dragBehavior> and <rich:dropBehavior>
3.5.5. <rich:extendedDataTable>
3.5.6. <rich:list>
3.5.7. <rich:popupPanel>
3.5.8. <rich:select>
3.5.9. <rich:togglePanel> and <rich:togglePanelItem>
3.6. New components and behaviors
3.6.1. <rich:busyBehavior>
3.6.2. <rich:togglePanelItem>
3.7. Deprecated components and behaviors
3.7.1. <a4j:page>
3.7.2. <rich:comboBox>
3.7.3. <rich:dataList>, <rich:dataDefinitionList>, and <rich:dataOrderedList>
3.7.4. <rich:dragSupport> and <rich:dropSupport>
3.7.5. <rich:modalPanel>
3.7.6. <rich:panelBar> and <rich:panelBarItem>
3.7.7. <rich:scrollableDataTable>
3.7.8. <rich:simpleTogglePanel>
3.7.9. <rich:suggestionBox>

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

RichFaces 4 has full support for JavaServer Faces (JSF) 2. Due to limited support for JavaServer Pages (JSP) in JSF2, RichFaces no longer fully supports JSP either.

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>  

The RichFaces framework has been extensively refined to provide better performance for applications. This includes improvements to bandwidth requirements for generated markup, size and number of required resources for Javascript and Cascading Style Sheets (CSS), and other general performance improvements.

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.

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

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.