Frank,
you have to add the child components to the
weConfigureTheStyleAtributeOnThis container. Now you add them directly
to the page.
Martijn
On 6/19/06, Frank Bille Jensen <[EMAIL PROTECTED]> wrote:
> 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
>
--
Download Wicket 1.2 now! Write Ajax applications without touching JavaScript!
-- http://wicketframework.org
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user