Sorry about that last post was a little trigger happy:
private Class<?> callBackPage_; public void setCallback(Class<?> callback) { callBackPage_ = callback; } Simply set the property before calling the page... it works well just won't work with external callbacks. 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: "Peter Stavrinides" <p.stavrini...@albourne.com> To: "Tapestry users" <users@tapestry.apache.org> Sent: Friday, 23 January, 2009 18:11:24 GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: Re: Get the referring page The best way to do this last option is as follows: -- 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: "Marcelo Lotif" <mlotifj...@gmail.com> To: "Tapestry users" <users@tapestry.apache.org> Sent: Friday, 23 January, 2009 15:12:35 GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: Re: Get the referring page No... looks like it falls in the same problem. On Fri, Jan 23, 2009 at 9:43 AM, Geoff Callender < geoff.callender.jumpst...@gmail.com> wrote: > Does this help? > > > http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/navigation/returntopage1/abc > > > On 23/01/2009, at 11:20 PM, Marcelo Lotif wrote: > > I'm using the last approach, and we don't have any problems. >> I don't know if this will work if a user calls the page from 2 different >> pages in 2 different tabs. Maybe on the returning, one of them will be >> lost. >> Which of these other approaches will solve this problem? >> >> On Fri, Jan 23, 2009 at 9:04 AM, Lance Java <lance.j...@googlemail.com >> >wrote: >> >> 1 more suggestion: >>> A hidden "returnPage" field on each of referring pages and the referring >>> pages POST to the multiple entry page. >>> >>> 2009/1/23 Peter Stavrinides <p.stavrini...@albourne.com> >>> >>> Hi everyone, >>>> >>>> I have a page with multiple entry points, when a user is done editing I >>>> want to return them to their previous page, there are a couple of ways >>>> of >>>> doing this I guess: >>>> - JavaScript (not so keen on this, I prefer a server side redirect) >>>> - Using the HTTP referer header of the Request service (I am thinking of >>>> using this, not sure what the drawbacks could be?) >>>> - ASO (hmmm not sure about the multiple window thing) >>>> - onActivate (don't want the callback URL to appear in the address bar) >>>> - Set a property on the page before calling onActivate (this could also >>>> work, of course it limits me to internal URL's over the referer >>>> >>> approach... >>> >>>> but thats probably also okay though) >>>> >>>> I would like to know if there is any possibility that the referer might >>>> >>> not >>> >>>> be set correctly under any circumstances etc... or if there is a better >>>> >>> way >>> >>>> to call back a previous page/URL. >>>> >>>> Thanks, >>>> Peter >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >>>> For additional commands, e-mail: users-h...@tapestry.apache.org >>>> >>>> >>>> >>> >> >> >> -- >> Atenciosamente, >> >> Marcelo Lotif >> Programador Java e Tapestry >> FIEC - Federação das Indústrias do Estado do Ceará >> (85) 3421-5910 >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Atenciosamente, Marcelo Lotif Programador Java e Tapestry FIEC - Federação das Indústrias do Estado do Ceará (85) 3421-5910 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org