Re: s:radio and s:checkboxlist - how to customize listValue property.

2009-03-11 Thread boraldo
>> It isn't ideal if you want to keep your model carefully isolated from your UI Unfortunately it is the case, so I need another solution. Jim Kiley wrote: > > The easiest (I'm not going to say "best") solution is to make a "fake" > getter on your bean. Make a "getListLabel()" method that com

Re: s:radio and s:checkboxlist - how to customize listValue property.

2009-03-11 Thread Jim Kiley
The easiest (I'm not going to say "best") solution is to make a "fake" getter on your bean. Make a "getListLabel()" method that composes a String from the values that you want to display in the list label, and then set the listValue to be "listLabel". This is the way I've done this in the past an

s:radio and s:checkboxlist - how to customize listValue property.

2009-03-11 Thread boraldo
When I use that 2 components in my form I need to set attributes listValue and listKey. That attributes as I understand require a field of a bean that is a member of collection represented by list attribute. Example: That means: 1) there will be one radiobutton for each element of collect