Johan Compagner wrote:
> 
> getModel() needs to be final
> there are to many internal methods of Component and MarkupContainer
> that are directly accessing the model field. Because getModel() does an
> initModel()
> and sometimes you don't want that..
> 

We overwrite getModel() to allow components to return their own
implementation of IModel (JDK5 feature): quite handy, no ugly typecasts.

The initModel() is another story: I posted performance problems due to the
call to initModel() within getModel() before. For now, we have that code
commented on our side: no more recursive calls and gone are the performance
problems.


Johan Compagner wrote:
> 
> i think add() was always final in 1.x.x that was completely rewritten in
> 2.0
> 
> I would say dont call parent.add(child) if you don't want the child to be
> in
> that parent ;)
> 

Yes, it has always been final, but it would have been a way for us to
implement something similar to the IAlternativeParent pattern: we don't want
users of our high-level components to know about the internal containers
where the components get added. It can be f.i. a form within the body of a
border component.

Jan
-- 
View this message in context: 
http://www.nabble.com/Timeframe-to-move-wicket---wicket-ext-projects-to-JDK1.5-tf3638110.html#a10182730
Sent from the Wicket - Dev mailing list archive at Nabble.com.

Reply via email to