-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi
I have a grid in my app and in an specific cell I need to choose the right image according the value of a near cell in the same line in a grid
my static list cell is:
<listcell>
<toolbarbutton id="statusserver" label="OK" image="img/activity.png" dir="reverse" />
</listcell>
For example if a need to change this image of toolbarbutton above corresponding with the value of list cell label in the same line in the grid:
<listcell label="@{server.serverIPStatus}" />
I'm using Zk data bind with JPA annotations and these features.
What code I need to put in my controller to change the values of label and image in the toolbarbutton based in the dynamic value of
"@{server.serverIPStatus}" ?
Bera, if you do not work with a Renderer class so search the forum for how to using a 'converter' in a databinded listbox/grid .
best
Stephan
Asked: 2011-05-06 17:57:38 +0800
Seen: 289 times
Last updated: May 09 '11