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:
This method at JViews Framework level: