Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

[S2] Option for mandatory choice

Milan Milanovic

2008-08-14

Replies: Find Java Web Hosting

Author LoginPost Reply

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 ?

--
Regards, Milan
--
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 gg3721.com - Jax Systems, LLC, U.S.A.