Milan Milanovic wrote:
Hi,
I have class structure as follows:
class Store {
List<Fruit> fruits;
Fruit choosenFruit;
}
So, I need in my jsp to represent fruits, but one of those fruits must be
choosen any time (in choosenFruit object, which select one Fruit object from
fruits list) during user input, e.g. when first Fruit is in the list it must
be selected as "choosen", and when other Fruits are put in this list, user
can choose some else Fruit, like this:
Fruits
====================================
| Name | SomeValue | Default |
====================================
| Apple | 5 | |
----------------------------------------------
| Blueberry | 3 | * |
----------------------------------------------
I'm thinking maybe about radio tag to use for this ? Any hint, is it
possible ?
A radio button for each row, bound to the chosenFruit property (or, more
likely, too chosenFruit.id or something) ought to do the trick. Have you
tried it?
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]