ZK - Open Source Ajax Java FrameworkZK - Open Source Ajax Java Framework

selecting an image for a listbox based on criteria

ykovelman
4 Mar 2010 19:09:26 GMT
4 Mar 2010 19:09:26 GMT

I have a use case where I need to display an image in a listbox based on the status in a neighboring column.

So if I have:

1. green status display green.gif
2. yellow status display yellow.gif
3. etc.

What is the best way to do this? Should I use a custom renderer?

Currently I have a Composer class that loads the data via a webservice and a ZUL file displaying properties of the model object.

Thanks !