Doh! Turns out this is a user-error because I should be using
WebMarkupContainer instead of WebComponent. The error message is very
misleading though, can we fix that? It should say "WebComponent may not
have a body" or something like that... I can file a bug report for it if
you wish.
Gili
Gili wrote:
I'm seeing this too. I have a page works properly but if I insert:
<div wicket:id="noImages" id="noImages">No images</div>
into my code suddenly I get a parsing error message from Wicket. It
isn't identical to the one reported by Ayodeji. He got:
wicket.markup.MarkupException: Tag '<tr>' (line 40, column 21) has a
> mismatched close tag at '</table>' (line 184, column 17)
whereas I get:
01:34:20,688 ERROR RequestCycle:964 - Expected close tag for <div
wicket:id="noImages" id="noImages">
[markup =
file:/C:/Documents%20and%20Settings/Gili/My%20Documents/blueeye/trunk/desktopbeautifier/Server/netbeans6.0/build/web/WEB-INF/classes/desktopbeautifier/web/gallery/Page.html,
index = 88, current = [Raw markup]]
wicket.markup.MarkupException: Expected close tag for <div
wicket:id="noImages" id="noImages">
If I comment out the <div> from the HTML code it works fine. If I
uncomment it, I get the above exception again. That's got to be a bug
right? Also, I noticed I only get this exception if I bind the <div> to
a WebComponent. If I bind it to a Label instead it works fine.
On an unrelated note, the junit tests fail on ObjectsTest; you might
want to fix that.
Gili
--
http://www.desktopbeautifier.com/
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user