That works really well, thanks! Chris
>-----Original Message----- >From: Ernesto Reinaldo Barreiro [mailto:[email protected]] >Sent: Thursday, 16 September 2010 6:03 PM >To: [email protected] >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 ><[email protected]> 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:[email protected]] >>>Sent: Thursday, 16 September 2010 4:43 PM >>>To: [email protected] >>>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 >>><[email protected]> 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: [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] >> >> > >--------------------------------------------------------------------- >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]
