I understand. Looks like a solid answer to me. Erik.
Igor Vaynberg schreef: > On 10/30/06, *Erik van Oosten* <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > If did see something else, if you look at Component#initModel > there is a > for loop that iterates up to the root of the component hierarchy. > In the > loop body Component#getModel is called. Note however that getModel > will > potentially recursively call initModel again. Is this intentional? > This > will work of course, but it looks like both a loop and recursion is > redundant and could (in some corner cases) cause unexpected behavior. > > > we have to do that because both getModel() and initModel() are > nonfinal. so yes, there are cases where you can do something weird, > but it will be a user error because you overrode one or both of those > and did not do it properly. > > i dont really think there is much we can do about that. > > -igor -- Erik van Oosten http://day-to-day-stuff.blogspot.com/ ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user