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 possibleto have more than one page P. A link on P leads to P, it only changesinternal 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 constructortakes 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
