I am trying to find a list of all the possible values i can pass to the attribute "event" of the f:ajax tag.
I know that i can also pass function names from my .js files, but what i need just the ones that come with JSF.
I only know about click mouseover and keyup, but i am sure there are more. Just don't know where to find them.
event attribute of
<f:ajax> can hold at least all supported DOM events of the HTML element which is been generated by the JSF component in question. An easy way to find them all out is to check all
on* attribues of the JSF input component of interest in the JSF tag library documentation and then remove the "on" prefix. For example, the
<h:inputText> component which renders
<input type="text"> lists the following
on* attributes (of which I've already removed the "on" prefix so that it ultimately becomes the DOM event type name):
valueChange(will render as
changeon text/select inputs and as
clickon radio/checkbox inputs)
action(will render as
clickon command links/buttons)
The above two are the default events for the components in question.
Some JSF component libraries have additional customized event names which are generally more specialized kinds of
action events, such as PrimeFaces
<p:ajax> which supports among others
close, etc depending on the parent
<p:xxx> component. You can find them all in the "Ajax Behavior Events" subsection of each component's chapter in PrimeFaces Users Guide.