The < span >s I have a table with 3 columns and 1 row. I need the 1st 2 cells to show the 2 wicket radio buttons ("allExtractors" & "triggeredExtractors") in my RadioGroup ("filterGroup") and the 3rd cell to show a wicket text field ("waitedForId").
I tried: <td><input type="radio" wicket:id="allExtractors"> </input></td> <td><input type="radio" wicket:id="triggeredExtractors"> </input></td> <td><input type="text" wicket:id="waitedForId"> </input></td> and TextField waitedForIdField = new TextField("filterGroup:waitedForId",new PropertyModel(this,"getCurrentExtractorFilter().waitedForId")); as "filterGroup:waitedForId" is the format other nested components are represented at to in the Page section of the exception page I get back (eg my "allExtractors" radio button appears as "form:filterGroup:allExtractors"). This did not work. I can take "waitedForId" out of the scope of the span ("filterGroup") and it works (with the text field's id set to just "waitedForId") but ... is there a way to do nesting as I describe above? What are the rules/best-practices regarding nested components in wicket? howzat wrote: > > I have a table with 3 columns and 1 row. > I need the 1st 2 cells to show the 2 wicket radio buttons ("allExtractors" > & "triggeredExtractors") in my RadioGroup ("filterGroup") and the 3rd cell > to show a wicket text field ("waitedForId"). > > I tried: > > > <td><input type="radio" wicket:id="allExtractors"> </input></td> > <td><input type="radio" wicket:id="triggeredExtractors"> </input></td> > <td><input type="text" wicket:id="waitedForId"> </input></td> > > > and > > TextField waitedForIdField = new TextField("filterGroup:waitedForId",new > PropertyModel(this,"getCurrentExtractorFilter().waitedForId")); > > as "filterGroup:waitedForId" is the format other nested components are > represented at to in the Page section of the exception page I get back (eg > my "allExtractors" radio button appears as > "form:filterGroup:allExtractors"). This did not work. > > I can take "waitedForId" out of the scope of the span ("filterGroup") and > it works (with the text field's id set to just "waitedForId") but ... is > there a way to do nesting as I describe above? What are the > rules/best-practices regarding nested components in wicket? > > -- View this message in context: http://www.nabble.com/nested-%22wicket%3Aid%22s-tf3824195.html#a10826522 Sent from the Wicket - User mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user