Yeah agreed. I was just wondering if a sanity check is needed at that point
in the code.
Thanks.

On 6/11/07, Alex Objelean <[EMAIL PROTECTED]> wrote:


You just have to respect the hierarchy you have defined in the markup.


Nart Seine wrote:
>
> Hello,
>
> I made an innocent programming error that day by adding a Form as a
child
> component of a TextField thats already the child of the Form. In that
> case,
> execution gets stuck in an infinite loop in Component.findParent(final
> Class
> c). I still am only scratching the surface of wicket, but are there any
> cases when two component can be parents of each other, as in, is this
the
> case with some component types? Could a check be added in the code to
> prevent adding a component, if the component being added is already the
> parent of 'this' component? Or should I just ensure I have enough
caffeine
> in my system before I start putting together component hierarchies ? :)
>
> Thanks
>
>
-------------------------------------------------------------------------
> 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
>
>

--
View this message in context:
http://www.nabble.com/Cyclic-parent-child-relationship-tf3900804.html#a11058487
Sent from the Wicket - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
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

-------------------------------------------------------------------------
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