http://wicket.apache.org/start/quickstart.html
-igor On Wed, Nov 3, 2010 at 9:03 AM, tommy <tommytas...@gmail.com> wrote: > > Hi > Can you point me to a link that explains what a quickstart is and how I > create one? > > Also maybe you consider these questions > > 1. If I can pass in a RadioGroup object to a Radio() constructor does the > RadioGroup also need to be added to the page and if so, does it matter where > on the page the RadioGroup is rendered, and in both cases: why the need? > given that the Radio objects are now bound to the RadioGroup object > directly. > > 2. Are there any examples of RadioGroup/Radio usage where RadioGroup is > passed in to the Radio() constructor? > > Thanks, Tom > > On Wed, Nov 3, 2010 at 3:54 PM, Igor Vaynberg-2 [via Apache Wicket] < > ml-node+3025609-175919079-201...@n4.nabble.com<ml-node%2b3025609-175919079-201...@n4.nabble.com> >> wrote: > >> best way for us to help you is for you to create a quickstart and >> attach it to your email or a jira issue. >> >> -igor >> >> On Wed, Nov 3, 2010 at 4:40 AM, tommy <[hidden >> email]<http://user/SendEmail.jtp?type=node&node=3025609&i=0>> >> wrote: >> >> > >> > I asked the following question on stack-overflow but was advised to ask >> here >> > instead. >> > >> http://stackoverflow.com/questions/4074028/in-wicket-how-can-i-create-radiogroups-that-are-not-defined-by-component-hierarc >> > >> > I am using Wicket and would like to create a grid of radio buttons using >> > html as shown below (outer lists will be displayed vertically, inner >> lists >> > will be displayed horizontally). >> > >> > I would like the radio buttons grouped vertically. >> > >> > <ul> >> > <li> >> > <ul> >> > <li><input type="radio" name="A"></li> >> > <li><input type="radio" name="B"></li> >> > <li><input type="radio" name="C"></li> >> > </ul> >> > </li> >> > <li> >> > <ul> >> > <li><input type="radio" name="A"></li> >> > <li><input type="radio" name="B"></li> >> > <li><input type="radio" name="C"></li> >> > </ul> >> > </li> >> > <li> >> > <ul> >> > <li><input type="radio" name="A"></li> >> > <li><input type="radio" name="B"></li> >> > <li><input type="radio" name="C"></li> >> > </ul> >> > </li> >> > </ul> >> > >> > Unfortunately it seems that RadioGroup only allow one to group radio >> buttons >> > according to the grouping defined by their layout. >> > >> > eg RadioGroup group = new RadioGroup("radioGroupA"); >> > >> > group.add( new Radio("myradio", new Model(1)) ; >> > >> > Problem with this is that I cannot then layout the way I want. >> > >> > Is there another way? Manually specifying the name and gather results? >> > >> > UPDATE: I notice that Radio can take a RadioGroup as a parameter. So one >> can >> > do something like: >> > >> > // create some groups >> > for (0..n) { >> > RadioGroup group = new RadioGroup("myRadioGroup", new Model { .. } ); >> > groupArray.add(group) >> > } >> > >> > //create a ListView for the RadioGroups so we can attach them to page >> > ListView radioListView = ListView("radioGroupList") { populate from >> > groupArray } >> > add(radioListView); >> > >> > // create our grid of radio buttons >> > // outer -> rows >> > for (0..x) { >> > // inner -> columns >> > for (0..n) >> > // supply group from our groupArray >> > add( new Radio("myradio", new Model(1), groupArray.get(n) )); >> > } >> > } >> > >> > I can then add the Radios and RadioGroups to the form independently of >> > layout and this has the desired effect in terms of the grouping. >> > >> > <form> >> > < span wicket:id="radioGroupList"> >> > < span wicket:id="radioGroup"/> >> > < /span> >> > <ul> >> > <li><radio wicket:id="myradio"/></li> >> > >> > But now, when I submit I am getting the following error: >> > >> > WicketMessage: submitted http post value [radio33] for RadioGroup >> component >> > >> [2:tContainer:list:2:tPanel:myForm:orderedRadioGroupList:0:orderedRadioGroup] >> >> > is illegal because it does not contain relative path to a Radio >> componnet. >> > Due to this the RadioGroup component cannot resolve the selected Radio >> > component pointed to by the illegal value. A possible reason is that >> > componment hierarchy changed between rendering and form submission. >> > >> > Any idea what this means? >> > >> > The spelling mistake 'componment' suggests it's not seen too often. >> > >> > I am using wicket 1.4.12. >> > >> > I found this ticket that looks related too : >> > https://issues.apache.org/jira/browse/WICKET-1055 >> > >> > -- >> > 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-tp3025204p3025204.html<http://apache-wicket.1842946.n4.nabble.com/How-can-I-create-RadioGroups-that-are-not-defined-by-component-hierarchy-layout-tp3025204p3025204.html?by-user=t> >> > Sent from the Users forum mailing list archive at Nabble.com. >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: [hidden >> > email]<http://user/SendEmail.jtp?type=node&node=3025609&i=1> >> > For additional commands, e-mail: [hidden >> > email]<http://user/SendEmail.jtp?type=node&node=3025609&i=2> >> > >> > >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [hidden >> email]<http://user/SendEmail.jtp?type=node&node=3025609&i=3> >> For additional commands, e-mail: [hidden >> email]<http://user/SendEmail.jtp?type=node&node=3025609&i=4> >> >> >> >> ------------------------------ >> View message @ >> http://apache-wicket.1842946.n4.nabble.com/How-can-I-create-RadioGroups-that-are-not-defined-by-component-hierarchy-layout-tp3025204p3025609.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-tp3025204p3025629.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 > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org