How discover the caller page (wicket 1.2.x)

2007-08-03 Thread Paolo Di Tommaso
Dear Wicket gurus, Suppose I have two Wicket page, let's say page A and B, with the following simple navigation rule A -- B using something like A. setResponsePage( new B() ) At compiles time A know B , but B does not know A. It there a way to get - at runtime - from page B the reference to

Re: How discover the caller page (wicket 1.2.x)

2007-08-03 Thread Al Maw
Why do you want to avoid this? If you're going to be using the previous page in your new page (for example, to provide a link back to it) then you need a reference to it. You may as well pass this in the constructor. Alastair Paolo Di Tommaso wrote: Yes, but I would to avoid this,

Re: How discover the caller page (wicket 1.2.x)

2007-08-03 Thread Al Maw
Fabio Fioretti wrote: On 8/3/07, Al Maw [EMAIL PROTECTED] wrote: If you're going to be using the previous page in your new page (for example, to provide a link back to it) then you need a reference to it. You may as well pass this in the constructor. But is it the only way to do this really?