> findParent(EditPanel.class)

That's a good solution if you want to help keep your code clean.
However, having direct references - while it can get messy when you
have very deep nestings, means that your code is statically bound,
which can be an advantage when you have to refactor or navigate your
code. It's subjective, but I find working with nested classes
convenient, and this can save you from having to pass variables in
constructors all the time.

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