kent lai wrote:
Hi,
There was an interesting case recently, whereby Wicket seemed to
be not updating my page properly with an ajax request.
I have 3 classes, A, which is a page, B and C which are panels.
A will add B initially, and after an ajax request (triggered by a
button), replace B with C. The parent container will be added as an
ajax component update.
Once updated, the content after the component all disappeared.
My markup look like something below
A.html
<html>
<body>
<div>[some content]</div>
<span wicket:id="container">
<span wicket:id="b">b</span>
</span>
<div>[more content]</div>
</body>
</html>
B.html
<html>
<body>
<wicket:panel>
<div>[even more content]</div>
<div class="something" />
</wicket:panel>
</body>
</html>
C.html
<html>
<body>
<wicket:panel>
<div>[even even more content]</div>
<div class="something" />
</wicket:panel>
</body>
</html>
I did managed to resolve the issue, by replacing <div
class="something" /> with <div class="something"></div>. It seemed
that somehow wicket just went on ahead to remove all the tags after
<div class="something" /> as well.
Does anyone have the same issue? I am using 1.3 beta 4.
Kent
I don't remember where I saw it, but this morning either in an email or
one of the forums, I saw a note that basically said that wicket will not
work (in the situation you describe) unless you have separate <div> and
</div> tags...
nbc
---------------------------------------------------------------------
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]