Hi You can use :-
@Inject private PageRenderLinkSource linkSource; @OnEvent(value = EventConstants.SUBMIT, component = "premiumForm") public Object premiumSubmit(){ return linkSource.createPageRenderLinkWithContext(Info.class, "whateverType"); } or may be create a property "type" in "Info" page and use @InjectPage @InjectPage private Info infoPage; @OnEvent(value = EventConstants.SUBMIT, component = "premiumForm") public Object premiumSubmit(){ infoPage.setType("whateverType"); return infoPage; } regards Taha On Aug 2, 2012, at 8:45 AM, Angelo C. wrote: > Hi, > > I have a class that need to return to another class with context parameter, > how? Thanks, > > Angelo > > public class Info { > Object onActivate(String type) { > } > } > > > @OnEvent(value = EventConstants.SUBMIT, component = "premiumForm") > public Object premiumSubmit() { > return Info.class; > } > > > > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/redirecting-to-a-class-with-parameter-tp5714980.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