You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Michael Prescott <mi...@gmail.com> on 2011/11/10 17:58:41 UTC

Binding form fields to map elements

Can you bind form fields to map elements?

In OGNL, you can access map elements as parameters, such as:
myMap.width

This is a read/writable property expression that corresponds to
myMap.get("width") and .put("width", value ).

By way of background -

In my domain model, I have a collection of entities, each of which has a
bundle of dynamic properties stored by a Map<String,String>.  The entities
are rendered a table, with their properties as columns.  The fully dynamic
implementation is a little scary, and a map-value property expression would
save some complexity.