The image servlet uses the same value change listener as the JavaServerâ„¢ Faces lifecycle; there is a
slight difference in the interactor, which is shown in bold in the
example.
Value change listener and interactor in image servlet context (JViews Diagrammer)
<jvdf:nodeOrLinkSelectInteractor id="objSelect"
valueChangeListener="#{diagrammerBean.onSelectNode}"
invocationContext="IMAGE_SERVLET_CONTEXT"/>
<jvdf:diagrammerView id="diagrammer" interactorId="objSelect" [...] />
Value change listener and interactor in image servlet context (JViews Framework level)
<jvf:objectSelectInteractor id="objSelect"
valueChangeListener="#{frameworkBean.selectObject}"
invocationContext="IMAGE_SERVLET_CONTEXT"/>
<jvf:view id="view" interactorId="objSelect" [...] />
In this mode the interactor queries an image
update. The server fires the value change event just before image
generation.
This approach in JViews
Diagrammer:
- Avoids submitting the page and refreshes the image only.
- Is outside the JSF lifecycle, so no interaction with JSF components is possible beyond the ability to retrieve the IlvDiagrammer object as shown in Java code of the value-change event.
This method at JViews
Framework level:
- Avoids submitting the page and refreshes the image only.
- Is outside the JSF lifecycle, so no interaction with JSF components is possible beyond the ability to retrieve the IlvManagerView as shown in Java code of value-change event