Dear all,

I am trying to find the best way to implement a state indicator that shows 
different images. The state of the model object can be changed by the user, 
resulting in  an AJAX update being sent the server and a re-rendering of the 
model object, which should show the correct state image then.

Currently I am adding an Image for each state and override their isVisible() 
method to have only one image shown. Is there any way to do this using a single 
Image component and some dynamic way of looking up the image to render?

Related to this is the problem of showing a set of Ajax-enabled icon buttons, 
again with their visibility depending on the model state and themselves 
influencing this state. I would like to merge these buttons into a single one 
(e.g. for setting a boolean to true / false and showing a checkbox checked / 
unchecked).

TIA & best regards,
Erich

Reply via email to