Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Incorrect error message?

$
0
0
Hi

With 6.12.0 I have:

val border = new Border("border")
val l = new Label("l", "label")
l.setOutputMarkupId(true)
border.add(l)

and when handling an ajax call, I'm add/replacing it in the wrong spot in
the hierarchy:

val replacement = new Label("l", "labe2l")
replacement.setOutputMarkupId(true)
addOrReplace(replacement)
target.add(replacement)

Wicket gives me a MarkupNotFoundException which is a little odd and least
put me in the complete wrong direction. It doesn't seem like the correct
exception, right?

org.apache.wicket.markup.MarkupNotFoundException: Markup not found for
Component: [Component id = l]
at org.apache.wicket.Component.internalRender(Component.java:2347)
at org.apache.wicket.Component.render(Component.java:2307)

gr,
Thies

Viewing all articles
Browse latest Browse all 5648

Trending Articles