You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by fachhoch <fa...@gmail.com> on 2010/09/15 19:46:36 UTC

repaint content of modalwindow

I am using modalwindow its content is a fragment. On ajxaRequest I want to  
repaint the content of modal window please tell me   how can I do this ?


-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/repaint-content-of-modalwindow-tp2540922p2540922.html
Sent from the Users forum mailing list archive at Nabble.com.

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


RE: repaint content of modalwindow

Posted by Chris Colman <ch...@stepaheadsoftware.com>.
That works really well, thanks!

Chris

>-----Original Message-----
>From: Ernesto Reinaldo Barreiro [mailto:reiern70@gmail.com]
>Sent: Thursday, 16 September 2010 6:03 PM
>To: users@wicket.apache.org
>Subject: Re: repaint content of modalwindow
>
>I would use a div.
>
><div wicket:id="context">
>    <div wicket:id="contents"></div>
></div>
>
>-------
>
>context = new WebMarkupContainer("context");
>context.setOutputMarkupId(true);
>add(context);
>context.add(new YourContentsPanel("contents"));
>
>You can have a <div> inside a <form>. So, why would it not work?
>
>Regards,
>
>Ernesto
>
>
>On Thu, Sep 16, 2010 at 9:48 AM, Chris Colman
><ch...@stepaheadsoftware.com> wrote:
>> Do I need to create a wicket tag in the markup corresponding to the
>WebMarkupContainer? If so should I put it in a span or div? (or other?)
>>
>> Should this WebMarkupContainer work if I place it inside a <form>?
>>
>>>-----Original Message-----
>>>From: Ernesto Reinaldo Barreiro [mailto:reiern70@gmail.com]
>>>Sent: Thursday, 16 September 2010 4:43 PM
>>>To: users@wicket.apache.org
>>>Subject: Re: repaint content of modalwindow
>>>
>>>Isn't it enough to:
>>>
>>>1-put a the contents of your modal A in a WebMapkupContainer X (with
>>>X.setOutputMarkupId(true))
>>>2-update the contents of X (X.addOrReplace(new content))
>>>3- and do ajaxRequestTarget.addComponent(X)
>>>
>>>?
>>>
>>>Regards,
>>>
>>>Ernesto
>>>
>>>On Thu, Sep 16, 2010 at 4:26 AM, Chris Colman
>>><ch...@stepaheadsoftware.com> wrote:
>>>>>
>>>>>I am using modalwindow its content is a fragment. On ajxaRequest I want
>>>> to
>>>>>repaint the content of modal window please tell me   how can I do this
>>>> ?
>>>>>
>>>>
>>>> I have a similar request:
>>>>
>>>> Modal Form A opens Modal Form B. When B is Ok'd and closes I want to
>>>> repaint the contents of Form A because they can change with the changes
>>>> made in form B.
>>>>
>>>> Any ideas?
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>
>>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>For additional commands, e-mail: users-help@wicket.apache.org


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


Re: repaint content of modalwindow

Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
I would use a div.

<div wicket:id="context">
    <div wicket:id="contents"></div>
</div>

-------

context = new WebMarkupContainer("context");
context.setOutputMarkupId(true);
add(context);
context.add(new YourContentsPanel("contents"));

You can have a <div> inside a <form>. So, why would it not work?

Regards,

Ernesto


On Thu, Sep 16, 2010 at 9:48 AM, Chris Colman
<ch...@stepaheadsoftware.com> wrote:
> Do I need to create a wicket tag in the markup corresponding to the WebMarkupContainer? If so should I put it in a span or div? (or other?)
>
> Should this WebMarkupContainer work if I place it inside a <form>?
>
>>-----Original Message-----
>>From: Ernesto Reinaldo Barreiro [mailto:reiern70@gmail.com]
>>Sent: Thursday, 16 September 2010 4:43 PM
>>To: users@wicket.apache.org
>>Subject: Re: repaint content of modalwindow
>>
>>Isn't it enough to:
>>
>>1-put a the contents of your modal A in a WebMapkupContainer X (with
>>X.setOutputMarkupId(true))
>>2-update the contents of X (X.addOrReplace(new content))
>>3- and do ajaxRequestTarget.addComponent(X)
>>
>>?
>>
>>Regards,
>>
>>Ernesto
>>
>>On Thu, Sep 16, 2010 at 4:26 AM, Chris Colman
>><ch...@stepaheadsoftware.com> wrote:
>>>>
>>>>I am using modalwindow its content is a fragment. On ajxaRequest I want
>>> to
>>>>repaint the content of modal window please tell me   how can I do this
>>> ?
>>>>
>>>
>>> I have a similar request:
>>>
>>> Modal Form A opens Modal Form B. When B is Ok'd and closes I want to
>>> repaint the contents of Form A because they can change with the changes
>>> made in form B.
>>>
>>> Any ideas?
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>For additional commands, e-mail: users-help@wicket.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

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


RE: repaint content of modalwindow

Posted by Chris Colman <ch...@stepaheadsoftware.com>.
Do I need to create a wicket tag in the markup corresponding to the WebMarkupContainer? If so should I put it in a span or div? (or other?)

Should this WebMarkupContainer work if I place it inside a <form>?

>-----Original Message-----
>From: Ernesto Reinaldo Barreiro [mailto:reiern70@gmail.com]
>Sent: Thursday, 16 September 2010 4:43 PM
>To: users@wicket.apache.org
>Subject: Re: repaint content of modalwindow
>
>Isn't it enough to:
>
>1-put a the contents of your modal A in a WebMapkupContainer X (with
>X.setOutputMarkupId(true))
>2-update the contents of X (X.addOrReplace(new content))
>3- and do ajaxRequestTarget.addComponent(X)
>
>?
>
>Regards,
>
>Ernesto
>
>On Thu, Sep 16, 2010 at 4:26 AM, Chris Colman
><ch...@stepaheadsoftware.com> wrote:
>>>
>>>I am using modalwindow its content is a fragment. On ajxaRequest I want
>> to
>>>repaint the content of modal window please tell me   how can I do this
>> ?
>>>
>>
>> I have a similar request:
>>
>> Modal Form A opens Modal Form B. When B is Ok'd and closes I want to
>> repaint the contents of Form A because they can change with the changes
>> made in form B.
>>
>> Any ideas?
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>For additional commands, e-mail: users-help@wicket.apache.org


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


Re: repaint content of modalwindow

Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
Isn't it enough to:

1-put a the contents of your modal A in a WebMapkupContainer X (with
X.setOutputMarkupId(true))
2-update the contents of X (X.addOrReplace(new content))
3- and do ajaxRequestTarget.addComponent(X)

?

Regards,

Ernesto

On Thu, Sep 16, 2010 at 4:26 AM, Chris Colman
<ch...@stepaheadsoftware.com> wrote:
>>
>>I am using modalwindow its content is a fragment. On ajxaRequest I want
> to
>>repaint the content of modal window please tell me   how can I do this
> ?
>>
>
> I have a similar request:
>
> Modal Form A opens Modal Form B. When B is Ok'd and closes I want to
> repaint the contents of Form A because they can change with the changes
> made in form B.
>
> Any ideas?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

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


RE: repaint content of modalwindow

Posted by Chris Colman <ch...@stepaheadsoftware.com>.
>
>I am using modalwindow its content is a fragment. On ajxaRequest I want
to
>repaint the content of modal window please tell me   how can I do this
?
>

I have a similar request:

Modal Form A opens Modal Form B. When B is Ok'd and closes I want to
repaint the contents of Form A because they can change with the changes
made in form B.

Any ideas?


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