Johan Compagner wrote:
> 
> ahh ok.
> But if you are already in the validator then you also don't really  know
> about components
> so where  do you do then the call to component.getRootModel()?
> 

onAttach().  And, yes, i /could/ cut and paste that while loop, but i think
it's generally useful functionality that can't really hurt anyone to access.
I would be happy with just getRootModel() with no param.


Johan Compagner wrote:
> 
> This we could do (one made per request)
> and i dont think we need a boolean because we already know what models we
> can clear:
> implementing IWrapModel
> (and maybe some other check if the getParentModel() ==
> IWrapModel.getNestedModel())
> 
> So it won't cost is any extra space.
> 

Good call.

-- 
View this message in context: 
http://www.nabble.com/getRootModel-and-tf3476307.html#a9713603
Sent from the Wicket - Dev mailing list archive at Nabble.com.

Reply via email to