j4fry
Tag ajax


Implements an AJAX functionality for JSF.
By Alexander Bell.
Report problems to team@j4fry.org


Tag Information
Tag Classorg.j4fry.jsf.taglib.AjaxTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
idfalsetruejava.lang.StringID for the UIComponent
eventtruetruejava.lang.StringHTML event on that the ajax request is initiated e.g. 'onClick', 'onChange'. To see the possible values visit the W3C webpage
actionfalsetruejava.lang.StringThe action that is invoked when the event occurs
executeWhenfalsetruejava.lang.StringTurn off the ajax-functionality by setting this flag to FALSE via an expression. AJAX Javascript won't be rendered at all if this is set to true.
Possible values: TRUE, FALSE

Default is TRUE.
reRenderfalsetruejava.lang.StringComma separated list of JSF-Components-IDs that will be re-rendered
partialfalsetruejava.lang.StringComma separated list of JSF-Components-IDs that will be submittet.
If there ist no value for this attribute all HtmlElements are submitted.
loadingbarIdfalsetruejava.lang.StringYou can enter here the ID of your own loadingbar element.
It must be the HTML-Element-ID therefore you should use either a Apache-Tomahawk tag with the attribute 'forceId' or you enter the real ID (of the component - component.getClientId(FacesContext)) by hand (in MyFaces a colon separated list of IDs).
Possible values: HTML-Element-ID
disableOnRequestfalsetruejava.lang.StringTRUE if you want to disable the From elements on the HTML page while an AJAX request is running. You can specify a list of HTML element types in the attribute 'disableComponents'.
Possible values: TRUE, FALSE

Default is TRUE.
disableComponentsfalsetruejava.lang.StringEither comma sparates list of strings (keywords): ALL (all elements)
BUTTON (all input-elements with type 'button')
SUBMIT (all input-elements with type 'submit')
RESET (all input-elements with type 'reset')
TEXT (all input-elements with type 'text')
RADIO (all input-elements with type 'radio')
CHECKBOX (all input-elements with type 'checkbox')
SELECT (all select-elements)
TEXTAREA (all textarea-elements)
A (all hyperlinks - a-elements)
or component id's (e.g. "myComponent1", "myComponent2").
Using component id's please consider that you have to enter the HTML-Element-IDs not the JSF-Component-IDs. For entering the HTML-Element-IDs either use a Apache-Tomahawk tag with the attribute 'forceId' or enter the IDs by hand(in MyFaces a colon separated list of IDs).
Mixing the information (keywords and certain IDs) in this attribute will not work!

Defaults are 'SUBMIT, RESET, BUTTON, A'.
preJSFunctionfalsetruejava.lang.StringA JavaScript function which is called before the request was sent.
For instance: preJSFunction="myFunction();"
postJSFunctionfalsetruejava.lang.StringA JavaScript function which is called after the response was received.
For instance: postJSFunction="myFunction();"
alarmThresholdfalsetruejava.lang.StringThe alarmThreshold defines the alert level for JavaScript errors.
Possible values: NONE, WARNING, ERROR

Default is ERROR.
immediatefalsetruejava.lang.StringSkips validation, update model and invoke application phases and goes right to render response when set to true.
Possible values: TRUE, FALSE

Default is FALSE

Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.