Hi

I'm having a problem with the following html markup (example):

Parent.html:
...
<div wicket:id="weConfigureTheStyleAttributeOnThis">
<wicket:child />
</div>
...

Parent.java
...
public class Parent extends Panel {
        public Parent() {
                WebMarkupContainer styleFrame = new 
WebmarkupContainer("weConfigureTheStyleAttributeOnThis");
                styleFrame.add(new SimpleAttributeModifier("style", "SOME 
STYLESHEET DEFINITIONS"));
                add(styleFrame);
        }
}


Child.html:
...
<wicket:extend>
<span wicket:id="name">Name</span>
</wicket:extend>
...


Child.java:
...
public class Child extends Parent {
        public Child() {
                add(new Label("name", "SOME NAME"));
        }
}
...


----------------

I get the "Unable to find component with id 'name'..." exception. If I
move the "name" component up to Parent (only in java; not in html) and
add it to "styleFrame", it works fine. But that is not what I wanted.

Any ideas on how to model what I'm trying to do?


Regards
Frank Bille



_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to