|
Click any of the pictures and notice the messages change in the
page.
Click on the first image from the left.
In the "Message from ValueChangeListener" area of the
page, notice that a message appears showing the old and new
value of the selected index.
In the "Selected Person" message, notice that the
caption for the person is updated as well.
If you examine the source for mainColumnFishEye.jsp, you
will see that the jMaki widget has a valueChangeListener
attribute installed on it. This is a JSF MethodExpression
that takes the following action.
Construct an informational message containing the old
and new values of the component.
Store that message in request scope.
Clear the set of partial ids to be rendered.
Add to the set of partial ids to be rendered the,
fishEyeMessage, the personMessage,
and the fisheye component itself.
When the view is partially re-rendered using Dynamic Faces, only the
components requested by the ValueChangeListener are
rendered.
|