Hi,
Perhaps this is what you're looking for?
http://code.google.com/p/bindgen-wicket/
add(new Label("state", new PropertyModel(person, "address.state.code")));
becomes
add(new Label("state", new PropertyModel(person, new
PersonBinding().address().state().code().getPath())));
Type safe and refactor safe.
// Leo
>Hi all
>I am new to Wicket and investigating if usable for our project or not. I
>have a minor question related to type safety and the creation of models.
It
>seems to me, that existing bean models are used by referencing the bean
>fields using Strings, e.g.
>public PojoStockQuotePage()
>{
> StockQuote quote = new StockQuote("IBM");
> add(new Label("stockIBM", new PropertyModel(quote, "quote"));
>}
>I seem to remember, that I've seen an example of a Wicket extension,
which
>allows me to write type safe field references. Does any one have a clue,
>which extension I stumbled into or how to perform type safe references?