I have one homepage H with one Link named actionLink:
 
      PopupSettings p = new PopupSettings(PageMap.forName("popup-page-map"),
            PopupSettings.LOCATION_BAR );
      p.setWidth(600).setHeight(600);
      actionLink.setPopupSettings(p);
 
In my homepage I click two times on this link, giving me 2 browser windows P1 and P2.
 
Dirk
2006/3/10, Martijn Dashorst <[EMAIL PROTECTED]>:
Ah,

you have 2 browsers pointing to the same session?

Then you should use a different pagemap for each browser.

Martijn


On 3/10/06, Dirk Markert <[EMAIL PROTECTED]> wrote:
>
> 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
> > >
> >
> >
>
>


--
Nominate Wicket for the SourceForge.net's Choice awards!
http://www.wilsonresearch.com/2006/ostgawards06/ostgawards4.php


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to