So now I'm trying to apply this. First problem I'm facing now is validation and ID assignment. I can get a component by It's ID from the ComponentResources (i.e. I'm writing a component for this) service but how can I identify the field to which a certain value is assigned ? Is it possible for example to obtain the latest generated component ID ?
On Thu, Feb 14, 2013 at 8:00 PM, Muhammad Gelbana <m.gelb...@gmail.com>wrote: > You've been so generous with your knowledgeable replies, thank you :) > > > On Thu, Feb 14, 2013 at 7:41 PM, Lance Java <lance.j...@googlemail.com>wrote: > >> I've just added a mapprop: binding prefix to tapestry-stitch. The binding >> is >> a two-way binding which can get() and put() to a map. I've created a demo >> which generates dynamic textfields and updates a serverside map. >> Expressions >> are of the form "mapprop:mapexpression[keyexpression]" where mapexpression >> and keyexpression are normal tapestry property expressions >> >> Demo: >> >> https://github.com/uklance/tapestry-stitch-demo/blob/master/src/main/resources/org/lazan/t5/stitch/demo/pages/MapPropBindingDemo.tml >> >> https://github.com/uklance/tapestry-stitch-demo/blob/master/src/main/java/org/lazan/t5/stitch/demo/pages/MapPropBindingDemo.java >> >> Source Code: >> >> https://github.com/uklance/tapestry-stitch/blob/master/src/main/java/org/lazan/t5/stitch/binding/MapPropBindingFactory.java >> >> https://github.com/uklance/tapestry-stitch/blob/master/src/main/java/org/lazan/t5/stitch/binding/MapPropBinding.java >> >> https://github.com/uklance/tapestry-stitch/blob/master/src/main/java/org/lazan/t5/stitch/services/StitchModule.java >> >> Enjoy! >> >> >> >> >> -- >> View this message in context: >> http://tapestry.1045711.n5.nabble.com/t5-3-6-Constructing-Forms-from-Maps-tp5719952p5720034.html >> Sent from the Tapestry - User mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> >