No, it does not contain any references to the outer page. I had a similar case 
last week, so that this was the first ascpect to investigate.

The page looks like

        MyPage extends WebPage {
                String property;

                public void setProperty(final String value) { this.property = 
value }

                public MyPage(final String property) {
                        this.property = property;
                }

                Public MyPage() {
                        This("default");
                }
        }

If I create the page with

        setPageCreator(new ModalWindow.PageCreator() {
                public Page createPage() {
                        Page p = new MyPage("parameter");
                        Return p;
                }
        }

Everything works as expected, only the components of MyPage are serialized on 
klicking around the page.

If I create the page as anonymous class with

        setPageCreator(new ModalWindow.PageCreator() {
                public Page createPage() {
                        Page p = new MyPage("parameter") {
                                // need nothing else to force behavior
                        };
                        Return p;
                }
        }

All underlying pages are serialized.

Stefan


-----Ursprüngliche Nachricht-----
Von: Matej Knopp [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 25. November 2008 15:01
An: [email protected]
Betreff: Re: ModalWindow and page serialization in 1.4RC1

Does your page inside modal window contain reference to outer page?

-Matej

On Tue, Nov 25, 2008 at 1:43 PM, Stefan Lindner <[EMAIL PROTECTED]> wrote:
> I have a ModalWindow with a page inside it (constructed via
> modalWindow.setPageCreator). The page contains a lot of AjaxButtons etc.
>
> If the content page is constructed as a stateless page (new MyPage()
> without parameters) the page (content of modal window) gets Serialized
> on every klick onto any AjaxButton. OK.
>
> If the content page is NOT constructed as a stateless page (new
> MyPage("someString") WITH parameters) the page (content of modal window)
> AND the content of all underlying pages gets Serialized on every klick
> onto any AjaxButton.
>
> Is this the intended behavior? Is there a trick to avoid serializing all
> the content of pages "below" the modal window? If it is not the intended
> behavior, I will create a simple testcase.
>
> This is a problem for us because the underlying pages contain much data
> und the ModalWindow slows down in speed.
>
> Stefan
>
>
>
> ---------------------------------------------------------------------
> 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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to