please see this thread

http://www.nabble.com/Border+and+markup+inheritance+problem-t1639150.html#a4475258

for explanation why this happens and solutions

-Igor


On 5/22/06, smallufo <[EMAIL PROTECTED]> wrote:
Hi
I am learning Markup Inheritance .
According to this article : http://www.javalobby.org/java/forums/t69357.html

In the Base.html
<div id="body">
<wicket:child />
</div>

I want the child content surrounded by a BoxBorder , so I change to :
            <span wicket:id = "bodyBorder">
              <wicket:child/>
            </span>

and In the Base.java :
add(new BoxBorder("bodyBorder"));

But in child pages , how do I correctly add content ?
If I use :

ChildPage.html
  <wicket:extend>
      <span wicket:id="label1"></span>
  </wicket:extend>

add(new Label("label1", "This is in the subclass Page1"));

It will throw this Exception :

WicketMessage: Unable to find component with id 'label1' in
[MarkupContainer [Component id = _extend, page = ChildPage, path =
0:bodyBorder:_child:_extend.MarkupInheritanceResolver$TransparentWebMarkupContainer,
isVisible = true, isVersioned = true]]. This means that you declared
wicket:id=label1 in your markup, but that you either did not add the
component to your page at all, or that the hierarchy does not match.


How do I solve this ?


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmdlnk&kid0709&bid&3057&dat1642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to