I have one question and one suggestion:

Question: what is wrong with doing all the scanning (and add()ing) in
the render code?

Suggestion: If you really must add() in the constructor, force the user
to invoke scanForPresentationComponents() at the end of his
constructor. This would be an optional call (so no overhead if his
component does not contain any presentation components). I'm sure we
could clean this up further but this is just one idea.

Gili

On Wed, 2 Feb 2005 17:57:21 +0100, Juergen Donnerstag wrote:

>>        From the discussion below (constructor time versus render time)
>> it seems pretty clear to me that you'd like <wicket:component> to be
>> added during Page construction time so that you could add its children
>> there so that people can navigate through the model (including them in
>> the hierarchy) before rendering time. So the solution seems pretty
>> clear to me: just scan the Page for <wicket:component> and add() them
>> at construction time... can't we do that?
>> 
>
>How would you handle a <wicket:component> within another component. E.g. 
><span id="wicket-myTest">
>  <wicket:component>
>    <span id="wicket-hellomessage">...</span>
>  </wicket:component>
></span>
>
>myTest is usually added within the constructor. At which time do want
>to scan markup and add <wicket:component>. Neither at the beginning of
>the constructor nor at the end would do.
>
>Juergen
>
>
>-------------------------------------------------------
>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