Hi Dwi.
You should have a look at contrib/MultiplePropertySelection:
http://jakarta.apache.org/tapestry/tapestry-contrib/ComponentReference/MultiplePropertySelection.html
The default renderer is what you want:
CheckBoxMultiplePropertySelectionRenderer
Cheers,
Nick.
Dwi Ardi Irawan wrote:
> Hi...
> i'm a tapestry newbie
>
> i would like to ask this forum about checkbox component
> in JSP we can select multiple checkbox and display it
>
> --------------------------------------------------------------------------------
>
> home.jsp
>
> <html>
> <head>
> <title>checkbox</title>
> </head>
> <body>
> <form action="Result.jsp" method="post">
> Choose your favorite artist : <br>
> <input type="checkbox" name="cek" value="Britney Spears"> Britney Spears
> <br>
> <input type="checkbox" name="cek" value="Christina Aguilera"> Christina
> Aguilera <br>
> <input type="checkbox" name="cek" value="Kelly Clarkson"> Kelly Clarkson
> <br>
>
> <input type="submit" value="enter">
> </form>
>
>
> </body>
> </html>
>
> --------------------------------------------------------------------------------
>
>
> Result.jsp
> <%
> String[] cek = request.getParameterValues("cek"); // get all the value
> for(int i=0;i<cek.length;i++){
> out.println(cek[i]+"<br>");
> }
> %>
>
> --------------------------------------------------------------------------------
>
>
> from the code above
> we can check all the checkbox (home.jsp)
> and when we klik enter
> we can get all the value and print it to the screen (result.jsp)
>
> something that i would like to ask is how we can implement this in tapestry?
> pliz give me an simple code so i can understand how it works.
>
> i really need some explanation about this.
>
> and i would be so thankfull if anybody could help me
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]