You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by traceon <tr...@gmx.com> on 2008/03/22 12:27:49 UTC

T5: Multiple checkboxes

hi together,

i wan't to create a form with multiple checkboxes. How does tapestry handles
multiple checked checkboxes passed from the form? From struts i knew that
the values are stored in an string array in the bean. how the java code
should look liken in tapestry?

e.g.

...
 <t:checkbox t:id="cb" value="value1"/>
 <t:checkbox t:id="cb" value="value2"/>
...

thx for your help!

-- 
View this message in context: http://www.nabble.com/T5%3A-Multiple-checkboxes-tp16218558p16218558.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5: Multiple checkboxes

Posted by Shing Hing Man <ma...@yahoo.com>.
Please take a look at the CheckboxGroupDemo at

http://lombok.demon.co.uk/tapestry5Demo/

The techique in the demo source code (available on 
CheckboxGroupDemo page) should work for 
a group of multiple Checkbox components 
rendered by a loop.

Shing



--- traceon <tr...@gmx.com> wrote:

> 
> hi together,
> 
> i wan't to create a form with multiple checkboxes.
> How does tapestry handles
> multiple checked checkboxes passed from the form?
> From struts i knew that
> the values are stored in an string array in the
> bean. how the java code
> should look liken in tapestry?
> 
> e.g.
> 
> ...
>  <t:checkbox t:id="cb" value="value1"/>
>  <t:checkbox t:id="cb" value="value2"/>
> ...
> 
> thx for your help!
> 
> -- 
> View this message in context:
>
http://www.nabble.com/T5%3A-Multiple-checkboxes-tp16218558p16218558.html
> Sent from the Tapestry - User mailing list archive
> at Nabble.com.
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail:
> users-help@tapestry.apache.org
> 
> 


Home page : http://www.lombok.demon.co.uk/



      ___________________________________________________________ 
Rise to the challenge for Sport Relief with Yahoo! For Good  

http://uk.promotions.yahoo.com/forgood/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org