You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Uwe Schäfer <us...@thomas-daily.de> on 2012/11/08 16:20:15 UTC

Another safe way to build PropertyModels

Hi

After playing around with both lambdaJ and SafeModel, here is our take 
on safe property model creation (that shamelessly steals from the above 
ones):

IModel<Person> p=...
IModel<Street> pm = model(from(p).getAddress().getStreet())
or
assert("address.street", path(from(p).getAddress().getStreet()) );

in short: API=SafeModel-ish, Speed=lambdaJ-ish

http://wicketeer.org/wicket-modelfactory/

this is heavily used in several production projects.
we'd love to get feedback of any kind.

uwe

PS: Kudos to C.E.Menzel and M.Fusco for their respective work

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org