:-(

the problem is, i really don't know how tu use MultiplePropertySelection
would u give me an example code....




----- Original Message -----
From: "Nick Westgate" <[EMAIL PROTECTED]>
To: "Tapestry users" <tapestry-user@jakarta.apache.org>
Sent: Wednesday, March 29, 2006 1:01 PM
Subject: Re: to choose all the checkbox and get the value ??? (it did in JSP
and how to implement it in Tapestry)


> Hi Dwi.
>
> You should have a look at contrib/MultiplePropertySelection:
>
http://jakarta.apache.org/tapestry/tapestry-contrib/ComponentReference/Multi
plePropertySelection.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]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to