You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Ivan Dudko <iv...@gmail.com> on 2010/04/28 13:17:46 UTC

Modal window and panels replacement

Hi all,

I am trying to replace panels in modal window.
I have two panels:
1) with datatable and link to second panel
2) with edit form and link to datatable

Each panel have a feedback.

For the first panel all is fine.
But when i am replace first panel with second i see this difference through
ajax-debug:

<script type="text/javascript"
src="resources/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.js"></script>
<link rel="stylesheet" type="text/css"
href="resources/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.css"
/>

Modal is versioned. And when i close it with displayed second panel and open
again then all is fine with second panel, until i replace it.


Please help.

Thanks in advance!
Allgo

Re: Modal window and panels replacement

Posted by Ivan Dudko <iv...@gmail.com>.
Thank you a lot, Sven, for notice.
Now all works!

2010/4/28 Sven Meier <sv...@meiers.net>

>
> See ModalWindow javadoc:
>
> "If you want to use form in modal window component make sure that you put
> the modal window itself in another form ..."
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Modal-window-and-panels-replacement-tp2068998p2069096.html
> Sent from the Wicket - User 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: Modal window and panels replacement

Posted by Sven Meier <sv...@meiers.net>.
See ModalWindow javadoc:

"If you want to use form in modal window component make sure that you put
the modal window itself in another form ..."
-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Modal-window-and-panels-replacement-tp2068998p2069096.html
Sent from the Wicket - User 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: Modal window and panels replacement

Posted by Ivan Dudko <iv...@gmail.com>.
Yes, i want replace whole Modal content via AJAX.

2010/4/28 Ernesto Reinaldo Barreiro <re...@gmail.com>

> I do not understand well what is you problem...  Do you want to change
> Modal contents without reloading whole Modal via AJAX?
>
> Ernesto
>
> On Wed, Apr 28, 2010 at 1:17 PM, Ivan Dudko <iv...@gmail.com> wrote:
> > Hi all,
> >
> > I am trying to replace panels in modal window.
> > I have two panels:
> > 1) with datatable and link to second panel
> > 2) with edit form and link to datatable
> >
> > Each panel have a feedback.
> >
> > For the first panel all is fine.
> > But when i am replace first panel with second i see this difference
> through
> > ajax-debug:
> >
> > <script type="text/javascript"
> >
> src="resources/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.js"></script>
> > <link rel="stylesheet" type="text/css"
> >
> href="resources/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.css"
> > />
> >
> > Modal is versioned. And when i close it with displayed second panel and
> open
> > again then all is fine with second panel, until i replace it.
> >
> >
> > Please help.
> >
> > Thanks in advance!
> > Allgo
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Modal window and panels replacement

Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
I do not understand well what is you problem...  Do you want to change
Modal contents without reloading whole Modal via AJAX?

Ernesto

On Wed, Apr 28, 2010 at 1:17 PM, Ivan Dudko <iv...@gmail.com> wrote:
> Hi all,
>
> I am trying to replace panels in modal window.
> I have two panels:
> 1) with datatable and link to second panel
> 2) with edit form and link to datatable
>
> Each panel have a feedback.
>
> For the first panel all is fine.
> But when i am replace first panel with second i see this difference through
> ajax-debug:
>
> <script type="text/javascript"
> src="resources/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.js"></script>
> <link rel="stylesheet" type="text/css"
> href="resources/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.css"
> />
>
> Modal is versioned. And when i close it with displayed second panel and open
> again then all is fine with second panel, until i replace it.
>
>
> Please help.
>
> Thanks in advance!
> Allgo
>

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