I understand now. First, I'm +1 on automatically adding
children into components created using <wicket:component>. Please let
me know when you've added it (send me updated a snapshot build via
email). I'm itching to complete RoundCornerBorder already.

        Second, I guess you've clarified my question: Are nested tags
add()ed into the surrounding Page or surrounding components? The wicket
approach is rather intuitive from a OO point of view but totally
unintuitive if you've got any JSP background (you'd expect to add()
into the Page). I think this is something we should explicitly address
in our user documentation.

        What would really clarify this is to add a Border example to
the examples package. I'd want to see a Page, a component within and a
component within that.

Gili

On Tue, 1 Feb 2005 23:52:10 +0100, Juergen Donnerstag wrote:

>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
>




-------------------------------------------------------
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

Reply via email to