just my 2c note. From a logical point of view that is correct because
hellomessage is contained (XML) within myBox. That is how all wicket
components work. But I wonder one can add a compoment (helloworld) to
the container (myBox). myBox is automatically created (you do not need
any java code). Thus, and that is probably the bug, children should
automatically be added to the container. I'm fairly sure, we don't do
it by now. Not doing it keeps <wicket:component> however almost
useless. I'll try to into it as soon as possible.
Juergen
On Tue, 01 Feb 2005 14:56:31 -0500, Gili <[EMAIL PROTECTED]> wrote:
>
> I've modified the HelloWorld example to contain the following
> HTML sniplet:
>
> <wicket:component name="myBox"
> class="wicket.markup.html.border.RoundCornerBorder" width="100%">
> <span id="wicket-hellomessage">Here comes the hello world
> message...</span>
> </wicket:component>
>
> and I get this error when I run it:
>
> wicket.markup.MarkupException: Unable to find component named
> 'hellomessage' in [path = 0.myBox, children = {width=[path =
> 0.myBox.width]}]
> [markup =
> file:/C:/Program%20Files/wicket-examples-0.9.17-beta/src/Netbeans4/build
> /web/WEB-INF/classes/wicket/examples/helloworld/HelloWorld.html, index
> = 5, current = '<span id="wicket-hellomessage">' (line 10, colum
> 7)]
> wicket.markup.MarkupStream.throwMarkupException(MarkupStream.jav
> a:247)
> wicket.Container.renderNext(Container.java:909)
> wicket.Container.renderBody(Container.java:606)
> wicket.markup.html.border.Border.resolveComponent(Border.java:15
> 5)
> [snip]
>
> I'm expecting wicket-hellomessage to resolve within the scope
> of HelloWorld (the Page) but it's trying to resolve it within my
> Border. Any idea why?
>
> Gili
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
> Tool for open source databases. Create drag-&-drop reports. Save time
> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
> Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user