Johan,
 
thank you for your answer. That's what I am doing right now.
 
To be exact, I am calling:
 
setResponsePage(new P(newState));
 
And then I am having two instances of P, page P1 and page P2, after
the link is clicked two times.
 
I am getting the error later with the described sequence.

Dirk
 
2006/3/10, Johan Compagner <[EMAIL PROTECTED]>:
Dirk,

just create the pages with the new keyword of java

so in a link or submit just do:

setResponsePage(new P1(newState))

johan



On 3/10/06, Dirk Markert <[EMAIL PROTECTED] > wrote:
I am using latest anon cvs head.
 
I have a home page H with a popuplink opening page P. It is possible
to have more than one page P. A link on P leads to P, it only changes
internal page state. Thus we can have sequences like:
 
H -----> P1 ----> P1 -----> P1 ........
+------> P2 ----> P2 -----> P2 ........
 
P1 and P2 have different internal states, because the page constructor
takes the new internal state as an argument.
 
The sequence H-->P1, H-->P2, P1-->P1, P2--> shows the expired page.
(In step 3 version 0 of P2 is removed from the wickets page map)
 
How can I have multiple instances of page P? 
 
 
Dirk
 


Reply via email to