RichFaces 3.3 Migrando a la versión 4.x. Cambios

RichFaces 3.3.3

RichFaces 4.x


actionparam param listener attribute removed(functionality moved to separate a4j:actionListener tag).All the other functionality kept.
form removed n/a
AjaxListener removed
region region Works in the same way as for 3.3.x. Attributes removed/not implemented:selfRendered




support ajax Implemented as a behavior according to JSF specification. SoAny Java code related to dynamical view creation should be reviewed/refactored accordingly.

Do not accepts nested parameters

queue related options(requestDelay, requestGroupingId, ignoreDupResponse) now could be set only using a4j:attachQueue nested tag.

Important: consider that JSF 2 standartized behaviors mechanism and there are next points that should be remembered:

events for behaviors should be defined without on* prefix. not onchange but change and so on.

behavior is not an action component so can’t have parameters attached(params expects action source parent).

programatical creation should be done using app createBehavior() and (ClientBheviorHolder)XXXComponentClass.addBehavior().

commandButton commandButton not changed.Notice that default value for execute is @form. (JSF 2 declares @this as default)
commandLink commandLink see commandButton
poll poll not changed
push push Component completelly redesigned from architectural point of view. Now it JMS-based, COMET-based, uses  atmosphere framework and more minor chagnes. So please follow announcement, component reference and checkout example. Do not try to perform blind migration for the component.
queue queue in JSF 2 all the request going throug the same single queue. So tag functionality changed. It just allows bulk queue options definitions.
attachQueue allows to attach concrete ajax component/behavior to some queue by name redefining the parameters. Should be defined as a child tag for  ajax component/behavior.
status status definition changed. Now do not attached to region. Attachment now:default for view. placed outside of any forms and without name.

default for form. placed in some form without any name.

referenced. placed anywhere with name defined. Components attaches using status attribute.

error facet and event handlers added.

jsFunction jsFunction works the same.
log log works the same. popup attribute changed to mode (values popup/inline).
mediaOutput mediaOutput works the same.
outputPanel outputPanel works the same in general. none layout  not implemented.
repeat repeat works the same in general.partial updates rules changed, ajaxKeys not present anymore. so check reference!
keepAlive JSF 2 view scope should be used instead.
actionListener new tag. allow to register action listener for the component. Additionally to JSF standard tag allows to registering using simple method expression(should be evaluated the same as actionListner attribute of the component itself) using listener attribute.