Button.getForm().getModel() :) -Igor > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Joshua Lim > Sent: Tuesday, August 16, 2005 9:26 PM > To: wicket-user@lists.sourceforge.net > Subject: [Wicket-user] getParent recursively? > > Hi, I have a question regarding components and getting it's parent. > > I have a Form which contains a ListView which contains a Button. > > when a Button is clicked, in order to get the Form's model, I > have to do > getParent().getParent().getParent().getModelObject() to go > from the ListView item (1st getParent) to ListView to Form... > > is there another way of doing this ? not too sure if I got this right? > perhaps a recursive getParent? > Josh > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & > EXPO September 19-22, 2005 * San Francisco, CA * Development > Lifecycle Practices Agile & Plan-Driven Development * > Managing Projects & Teams * Testing & QA Security * Process > Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > >
------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user