You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Martin Dietze <di...@fh-wedel.de> on 2014/02/06 13:17:42 UTC
Re: Strange: Ajax-updates from a form inside a modal dialogue
"echoed" in the page underneath
Martin,
thanks a lot for your advice!
On Thu, February 06, 2014, Martin Grigorov wrote:
> Check the Ajax response after selecting a component.
> It contains <ajax-response> with <component id="..."> elements. The id
> attribute is used to find the old HTML element and to replace it with the
> new content.
> Since Wicket uses document.getElementByid() to find the old one I see no
> way how it will replace/update more than one HTML element in the page per
> <component>. So I guess there are <component>s for both the elements in the
> modal and in the page.
>
> The best is to debug it and fix it.
> A workaround is to use a Page for the Modal instead of a Panel.
Using the Ajax Debug panel I could track the problem down rather
easily. While the actual form components were "clean" I found
out that their surrounding containers, some of which were, too,
updated using Ajax were given fixed markup IDs from within the
Java code, so that I had two of them with the same IDs. Need to
do a 'git blame' on that one :)
Cheers,
M'bert
--
----------- / http://herbert.the-little-red-haired-girl.org / -------------
=+=
manche meinen, lechts und rinks kann man nicht velwechsern.
werch ein illtum! -- elnst jandr
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org