RE: repaint content of modalwindow

2010-09-15 Thread Chris Colman
>
>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-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: repaint content of modalwindow

2010-09-15 Thread Ernesto Reinaldo Barreiro
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
 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-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



RE: repaint content of modalwindow

2010-09-16 Thread Chris Colman
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 ?

>-Original Message-
>From: Ernesto Reinaldo Barreiro [mailto:reier...@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
> 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-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
>-
>To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>For additional commands, e-mail: users-h...@wicket.apache.org


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



Re: repaint content of modalwindow

2010-09-16 Thread Ernesto Reinaldo Barreiro
I would use a div.





---

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

You can have a  inside a . So, why would it not work?

Regards,

Ernesto


On Thu, Sep 16, 2010 at 9:48 AM, Chris Colman
 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 ?
>
>>-Original Message-
>>From: Ernesto Reinaldo Barreiro [mailto:reier...@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
>> 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-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>>-
>>To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>For additional commands, e-mail: users-h...@wicket.apache.org
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



RE: repaint content of modalwindow

2010-09-17 Thread Chris Colman
That works really well, thanks!

Chris

>-Original Message-
>From: Ernesto Reinaldo Barreiro [mailto:reier...@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.
>
>
>
>
>
>---
>
>context = new WebMarkupContainer("context");
>context.setOutputMarkupId(true);
>add(context);
>context.add(new YourContentsPanel("contents"));
>
>You can have a  inside a . So, why would it not work?
>
>Regards,
>
>Ernesto
>
>
>On Thu, Sep 16, 2010 at 9:48 AM, Chris Colman
> 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 ?
>>
>>>-Original Message-
>>>From: Ernesto Reinaldo Barreiro [mailto:reier...@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
>>> 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-unsubscr...@wicket.apache.org
>>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>>
>>>>
>>>
>>>-
>>>To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>>For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
>-
>To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>For additional commands, e-mail: users-h...@wicket.apache.org


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