You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Chris Colman <ch...@stepaheadsoftware.com> on 2011/03/21 19:36:16 UTC

Best way to remove content from a close Modal Window?

I open a form in a ModalWindow. Even after the form is closed the
content seems to remain because the form contents are serialized out
with the page.
 
What is the best way to remove the content from the ModalWindow after
the window is closed? I tried calling setContent(null) but that causes a
subsequent NPE.

RE: Best way to remove content from a close Modal Window?

Posted by Chris Colman <ch...@stepaheadsoftware.com>.
Great, thanks Pedro. I'll give that a go.

>-----Original Message-----
>From: Pedro Santos [mailto:pedrosans@gmail.com]
>Sent: Tuesday, 22 March 2011 5:41 AM
>To: users@wicket.apache.org
>Subject: Re: Best way to remove content from a close Modal Window?
>
>modalWindow.replace(new
WebMarkupContainer(modalWindow.getContentId()));
>
>On Mon, Mar 21, 2011 at 3:36 PM, Chris Colman
><ch...@stepaheadsoftware.com>wrote:
>
>> I open a form in a ModalWindow. Even after the form is closed the
>> content seems to remain because the form contents are serialized out
>> with the page.
>>
>> What is the best way to remove the content from the ModalWindow after
>> the window is closed? I tried calling setContent(null) but that
causes a
>> subsequent NPE.
>>
>
>
>
>--
>Pedro Henrique Oliveira dos Santos

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Best way to remove content from a close Modal Window?

Posted by Pedro Santos <pe...@gmail.com>.
modalWindow.replace(new WebMarkupContainer(modalWindow.getContentId()));

On Mon, Mar 21, 2011 at 3:36 PM, Chris Colman
<ch...@stepaheadsoftware.com>wrote:

> I open a form in a ModalWindow. Even after the form is closed the
> content seems to remain because the form contents are serialized out
> with the page.
>
> What is the best way to remove the content from the ModalWindow after
> the window is closed? I tried calling setContent(null) but that causes a
> subsequent NPE.
>



-- 
Pedro Henrique Oliveira dos Santos