Yes, that would work for returning the page, but I need to initialize it (with the object). In pseudocode, what I'm looking for wouls be something along the lines of:
Object onActionFromSelect() { Class<? extends DetailPage> detailPageClass = determineDetailPageClass( currentObject ); DetailPage detailPagePage = // obtain page instance of type detailPageClass detailPage.setSelectedObject( currentObject ); return detailPage; } (the detail pages all inherit from DetailPage) Cheers, - hugi On 9.12.2011, at 09:43, angelochen wrote: > how about: return "UserDetailPage" > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Returning-an-instance-of-a-page-tp5061220p5061225.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org