| I'm trying to understand what you want to do. If I understand correctly, you
| would like to take a value in a field in a row in a table and replace it
| with a link. Is that correct?
Actually, it's quite simple but perhaps I wasn't able to explain
good enough what I need in my first post - I will try again ;)
The table shall display records coming directly from the database
and one of the "properties" of such a record is an Integer "status".
Instead of the status to appear as 0/1/2 in the table
I want to display a corresponding icon (green/yellow/red circle).
My idea was to have the following method _in my page class_
(as several pages need this functionality)
public String convertStatus(Integer status)
{
String result;
switch (status)
{
case 2:
result = getGreenIcon().buildURL();
break;
case 1:
result = getYellowIcon().buildURL();
break;
default:
result = getRedIcon().buildURL();
break;
}
return result;
}
where getXXXIcon() return IAssets (the different images).
For every row in the table, the convertStatus method shall be called
with the Integer status "property" as parameter.
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]