the problem is indeed that you are sharing state between pages which
is not allowed. you are doing it via one page passing in an anonymous
SelectionCallback to another page, which is the same as passing in an
instance of one page to another.

what you should do instead, especially since you already have the
popup page calling an ajax method on the opener as a close callback,
is pass the selection to the javascript callback method. this way the
callback method can pass the selection back to the page when it
executes the ajax callback. this way you dont have to share state
between page instances.

hope this gets you started.

-igor


On Wed, Feb 9, 2011 at 9:52 AM, Daniel Soneira
<[email protected]> wrote:
> Hi fellow Wicketeers,
>
> I have some (general) classes that handle the common flow of selecting one /
> several entities from a search page (as popup).
>
> Basically it looks like this:
>    User opens detail page.
>    User clicks on search link.
>    System opens search page (as pop-up).
>    User enters filtering criteria, begins search.
>    User selects one of the shown entities in the result grid.
>    System closes search page.
>    System refreshes detail page (AJAX) with selected entity.
>
>
> Those general classes worked fine with 1.4 but somehow they are not
> executing as intended anymore with 1.5.
> The state of my pop-up selection links seems to get "lost" somehow.
> I guess it has something to do with the no more existing page maps and the
> way pages are versioned now?
>
> I've attached a quickstart to illustrate my problem (stripped down to a
> minimum, just a text field instead of real entities).
> Since I was probably abusing something in 1.4 regarding serialization / page
> map handling I'm curious to know of some better ways to achieve this.
>
> --
> Regards,
> Daniel Soneira
> www.joyn-it.at
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to