Hi,

I encountered the following problem when nesting components and using the
<wicket:body/> tag.
My markup looks like this:

<span wicket:id="menuBorder">
Name: <input type="text" wicket:id="name"><br>
Firstname: <input type="text" wicket:id="firstname"><br>
</span>

The border component is this:

<wicket:border>
        <span wicket:id="navigationMenu" />
        <div id="tabContent">
        <form wicket:id="menuForm">
                        <wicket:body/>
                </form>
        </div>
</wicket:border>

When accessing the page I get the following error:

wicket.markup.MarkupException: Unable to find component with id 'name' in
[MarkupContainer [Component id = menuBorder, page =
wicket.examples.navmenu.Home, path = 0:menuBorder.MenuBorder, isVisible =
true, isVersioned = true]].

I was expecting that the <wicket:body/> tag would be replaced by the "name"
and "firstname" input fields and Wicket would look
up these fields in the surrounding form component. In my class I added the
fields to the form correctly.

Is this supposed to be so or is it a bug.

Greets,
jd



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to