icecore
Tag jsEventListener


The jsEventListener component allows you to listen for client-side JavaScript events and optionally trigger JavaScript handlers or server-side action listeners in response.


Tag Information
Tag ClassNone
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
eventsyesfalsejava.lang.StringList of "," separated events to listen for. (e.g) events="click[, keydown, ...]". Note that events will only be captured by this component if they have not been previously consumed by another element in the form.
handlernofalsejava.lang.StringThe JavaScript callback function to be invoked when a registered event occurs.
actionnotruejava.lang.StringMethodExpression representing the application action to invoke when a registered event is captured by this component. The expression must evaluate to a public method that takes no parameters, and returns an Object (the toString() of which is called to derive the logical outcome) which is passed to the NavigationHandler for this application.
actionListenernotruejava.lang.StringMethodExpression representing an action listener method that will be notified when a registered event is captured by this component. 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".

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.