a4j
Tag ajax


The <a4j:ajax> behavior allows Ajax capability to be added to a non-Ajax component. The non-Ajax component must implement the ClientBehaviorHolder interface for all the event attributes that support behavior rendering.

@author Anton Belevich


Tag Information
Handler Id org.ajax4jsf.behavior.Ajax
Handler Class org.richfaces.view.facelets.html.AjaxHandler

Attributes
Name Required Type Description
bypassUpdates false boolean If "true", after process validations phase it skips updates of model beans on a force render response. It can be used for validating components input
data false java.lang.Object Serialized (on default with JSON) data passed to the client by a developer on an AJAX request. It's accessible via "event.data" syntax. Both primitive types and complex types such as arrays and collections can be serialized and used with data
disabled false boolean If "true", do not initiate an ajax request when the associated event is observed
event false java.lang.String Name of JavaScript event property (click, change, etc.) of parent component that triggers the behavior. If the event attribute is not defined, the behavior is triggered on the event that normally provides interaction behavior for the parent component
execute false java.util.Collection Ids of components that will participate in the "execute" portion of the Request Processing Lifecycle. Can be a single id, a space or comma separated list of Id's, or an EL Expression evaluating to an array or Collection. Any of the keywords "@this", "@form", "@all", "@none", "@region" may be specified in the identifier list. Some components make use of additional keywords
immediate false boolean Flag indicating that, if this component is activated by the user, notifications should be delivered to interested listeners and actions immediately (that is, during Apply Request Values phase) rather than waiting until Invoke Application phase.
limitRender false boolean If "true", render only those ids specified in the "render" attribute, forgoing the render of the auto-rendered panels
listener false javax.el.MethodExpression MethodExpression representing an action listener method that will be notified when this component is activated by the user. The expression must evaluate to a public method that takes an ActionEvent parameter, with a return type of void, or to a public method that takes no arguments with a return type of void. In the latter case, the method has no way of easily knowing where the event came from, but this can be useful in cases where a notification is needed that "some action happened".
onbeforedomupdate false java.lang.String The client-side script method to be called after the ajax response comes back, but before the DOM is updated
onbeforesubmit false java.lang.String The client-side script method to be called before the AJAX request is submitted
onbegin false java.lang.String The client-side script method to be called before an ajax request.
oncomplete false java.lang.String The client-side script method to be called after the DOM is updated
onerror false java.lang.String The client-side script method to be called when an error has occurred during Ajax communications
queueId false java.lang.String Identify the name of the destination queue
render false java.util.Collection Ids of components that will participate in the "render" portion of the Request Processing Lifecycle. Can be a single id, a space or comma separated list of Id's, or an EL Expression evaluating to an array or Collection. Any of the keywords "@this", "@form", "@all", "@none", "@region" may be specified in the identifier list. Some components make use of additional keywords
status false java.lang.String ID of the request status component


Output Generated by Tag Library Documentation Generator.