In Tapestry there is more than one way to do this, depending on your needs and preference... i.e.:
1. In past posts Howard recommends configuring a page then returning the page (this is best for moving between internal pages), so: @InjectPage private MyPage page; public Object onSuccess() { page.setPropertyA(value); page.setPropertyB(anotherValue); return page; } 2. If you have the need to invoke a page that uses a context (a page for instance that can also be linked to from external URL's), then you can return a URL or a Link or invoke the OnActivate(), but the last is strongly discouraged (and I don't know why!), so: @Inject private PageRenderLinkSource linkSource; public Object onSuccess() { Link link = linkSource.createPageRenderLinkWithContext( MyPage.class, new Object[] { getParam1(), getParam2() }); return link; } regards, Peter -- If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Please visit http://www.albourne.com/email.html for important additional terms relating to this e-mail. ----- Original Message ----- From: "Gunnar Eketrapp" <gunnar.eketr...@gmail.com> To: "Tapestry users" <users@tapestry.apache.org> Sent: Thursday, 8 October, 2009 10:51:43 GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: How do I add an activation context when navigating to a new page? Hi ! I have problem with adding a context to a page that I am navigating too from on of my event handler metods. How should this be done ? Thanks in advance! Gunnar Eketrapp, Stockholm Sweden This does not work! Should it? ============================== public Object onSuccess() { // process .... return "admin/PayoutOrderDetails/" + orderid; } --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org