| Advanced Features > Using DHTML-Based JSF Components to Build Web Applications > Contexts for Actions on the View > JavaServer Faces Lifecycle Context |
JavaServer Faces Lifecycle Context |
INDEX
PREVIOUS
NEXT
|
To select a graphic object in a view, a select object interactor must be installed on the view. The value property of the interactor holds the IlvGraphic object that was clicked. Thus, a valueChangeListener can be registered to handle the selection event.
<jvf:objectSelectInteractor id="objSelect" valueChangeListener="#{frameworkBean.selectObject}" invocationContext="JSF_CONTEXT"/> <jvf:view id="view"interactorId="objSelect" [...] /> |
| Note |
JSF_CONTEXT is the default value, so the invocationContext attribute could have been omitted.
|
The Java code of the value change event listener is:
Note the following concerning the use of this method:
| Copyright © 1987-2007 ILOG S.A. All rights reserved. Documentation homepage. Legal terms. | PREVIOUS NEXT |