Re: [Stripes-users] Checkboxes

2012-02-08 Thread Marcus Kraßmann
Am 08.02.2012 00:06, schrieb Morten Matras: Hi Chris I use it like this: stripes:checkbox name=item.bool value=true/ Bool on the bean it refers to a public boolean getBool(); method. Morten In general, you are not tied to boolean values. The following would also work:

Re: [Stripes-users] Checkboxes

2012-02-08 Thread Luis Tiago Rico
You can also use: stripes:checkbox name=stringProperty value=A/ stripes:checkbox name=stringProperty value=B/ stripes:checkbox name=stringProperty value=C/ and in ActionBean String[] stringProperty; ...with getters setters! 2012/2/8 Marcus Kraßmann m...@syn-online.de Am 08.02.2012 00:06,

Re: [Stripes-users] Checkboxes

2012-02-08 Thread Freddy Daoud
The 'checked' attribute is also useful when it refers to a Collection. In the Stripes book I show an example where you have a table with a list of users, and one of the columns shows the roles that the user has. All roles are rendered as checkboxes, and the ones that the user has are checked by

Re: [Stripes-users] Checkboxes

2012-02-07 Thread Morten Matras
Hi Chris I use it like this: stripes:checkbox name=item.bool value=true/ Bool on the bean it refers to a public boolean getBool(); method. Morten 2012/2/8 Chris Johnson johns...@gmail.com Can someone explain exactly when checkboxes are rendered checked.. I've done some playing around but