Alberto, it would be interesting to learn what exactly you plan to do.
The before render listener should be pretty useful actually, also if
you want to add behaviors or set properties of components etc. The
construction of the components is one thing, but as long as they are
not rendered yet, it is still possible to change some of their
behavior.

Eelco


On 6/18/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > wrap() is final. but getmodel() calls initmodel() which is not!
>
> Yeah, but that isn't called in wrap, so whatever he is doing in the
> listener, it won't be broken more than it would be now.
>
> > we are just
> > heading for a lot of trouble if we allow this! we are dealing with
> > unconstructed objects here, we should be as strict as possible.
>
> Yeah, that's been the danger with that listener from the beginning. So
> we either keep it as strict as possible (though we should always set
> the id) and limit the things you can do with it, or we add this case,
> which may help out people, but possibly open up a can of worms.
>
> > and who is to say wrap() will stay final, that looks like a pretty handy
> > method to have nonfinal if you want to post/preprocess the model in some
> > way.
>
> If that is the case, that call shouldn't be made before calling the
> listener. Otoh, we've been here before, discussing methods that might
> be non-final someday. If I look at that method, I currently see no
> good reason to ever remove final tbh. Whatever the wrapping does, it
> is delegated to that model, which gets the component passed in.
> Opening up wrap would make the idea of wrapping much fuzzier, as now
> it's not only an extension point of models, but also of components!
>
> Anyway, if you are serious, and think you can imagine good use cases,
> we should roll back the change and remove final on wrap.
>
> Eelco
>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to