simple example of RadioGroup

2009-04-23 Thread Jason Novotny


Hi,

   Somehow I seem to have problems if I want to do individual radio 
buttons in my HTML and it looks like I need to use RadioGroup. Here is 
the example HTML and I'm trying to figure out how to wicket-ize it... 
the model just needs to be a boolean since I have only two values.


pinput wicket:id=option type=radio value= Click here for 
option one/p
   p class=bottomOptioninput name= type=radio 
value= Click here for option two/p



Thanks, Jason


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: simple example of RadioGroup

2009-04-23 Thread Igor Vaynberg
radiogroup g=new radiogroup(group, mybooleanmodel());
g.add(new radio(t,new model(boolean.true));
g.add(new radio(f,new model(boolean.false));

wicket:container wicket:id=group
pinput wicket:id=t type=radio value= Click here for option one/p
  p class=bottomOptioninput wicket:id=f name=
type=radio value= Click here for option two/p
/wicket:container

-igor

On Thu, Apr 23, 2009 at 10:28 AM, Jason Novotny novo...@gridsphere.org wrote:

 Hi,

   Somehow I seem to have problems if I want to do individual radio buttons
 in my HTML and it looks like I need to use RadioGroup. Here is the example
 HTML and I'm trying to figure out how to wicket-ize it... the model just
 needs to be a boolean since I have only two values.

 pinput wicket:id=option type=radio value= Click here for option
 one/p
               p class=bottomOptioninput name= type=radio value=
 Click here for option two/p


 Thanks, Jason


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org