On Thu, 28 Jul 2011 12:44:14 +0200 Thomas Matthijs <li...@selckin.be> wrote:
> > ...into this, gaining refactor-safety: > > > > IModel<String> childNameModel = > > model(from(myBean).getChild().getName()); > > > > > > Does it require a default constructor? In the above example, myBean is any sort of regular Java bean. That means: regular getters and setters. Default constructors may not be needed, I did not test that. SafeModel does not instantiate your objects. PropertyModel (which is what I'm using under the hood) may run into issues, but I'd suggest just giving it a shot. It will fail quickly if it doesn't work :) Carl-Eric www.wicketbuch.de --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org