Ah but I have varying number of groups, hence the radioGroupList ( Sorry I maybe didnt make this point clear enough). How can you nest them when you dont know how many there will be?
On Wed, Nov 3, 2010 at 1:46 PM, Tom Howe <tomh...@artcore.com> wrote: > Ah but I have varying number of groups, hence the radioGroupList ( Sorry I > maybe didnt make this point clear enough). How can you nest them when you > dont know how many there will be? > > > > On Wed, Nov 3, 2010 at 12:38 PM, Michael O'Cleirigh [via Apache Wicket] < > ml-node+3025272-1259231181-201...@n4.nabble.com<ml-node%2b3025272-1259231181-201...@n4.nabble.com> > > wrote: > >> Hi, >> >> The RadioGroup just needs to wrap the radio's in your markup. Typically >> it does not even render markup in the resultant page. >> >> Instead of this: >> > <form> >> > < span wicket:id="radioGroupList"> >> > < span wicket:id="radioGroup"/> >> > < /span> >> > <ul> >> > <li><radio wicket:id="myradio"/></li> >> >> do this: >> >> <form> >> <span wicket:id="radioGroup"> >> <ul wicket:id="listview"> >> <li> <radio wicket:id="myradio"/></li> >> < /span> >> </form> >> >> add (rg = new RadioGroup("radioGroup")); >> >> rd.add (new ListView("listView") {...}); >> >> This way the radio group will contain the Model Object of the Radio that >> was selected by the user when the form submits. >> >> Regards, >> >> Mike >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [hidden >> email]<http://user/SendEmail.jtp?type=node&node=3025272&i=0> >> For additional commands, e-mail: [hidden >> email]<http://user/SendEmail.jtp?type=node&node=3025272&i=1> >> >> >> >> ------------------------------ >> View message @ >> http://apache-wicket.1842946.n4.nabble.com/How-can-I-create-RadioGroups-that-are-not-defined-by-component-hierarchy-layout-tp3025204p3025272.html >> To unsubscribe from How can I create RadioGroups that are not defined by >> component hierarchy/layout ?, click >> here<http://apache-wicket.1842946.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_code&node=3025204&code=dG9tbXl0YXN0aWNAZ21haWwuY29tfDMwMjUyMDR8MTM3MjA2NTU0MQ==>. >> >> >> > -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-can-I-create-RadioGroups-that-are-not-defined-by-component-hierarchy-layout-tp3025204p3025394.html Sent from the Users forum mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org