I created a github repo with a complete binding module: https://github.com/criedel/tapestry-json-binding
I tried to get all the syntax features inside that we were talking about: ${json:json.inner.inner2} ${json:jarr[1].inner.inner2} ${json:json.inner[0].inner2} …and also with guarding '?' ${json:json.inner?.inner2} ${json:jarr[1]?.inner.inner2} ${json:json?.inner[0].inner2} If you think the syntax is complete with that feature set you could easily put the whole module into tapestry with the next release. I know the implementation is not really clean and maybe not as efficient as the stuff in tapestry-core but I thought if someone wants to use it and likes some improvements it's going to be easier if there's a github repo to start with :-) Am 28.07.2012 um 05:25 schrieb Angelo C.: > That's a good solution, can you have a maven entry for that? > also, does it handle nested json objects? > > Thanks, > > > Christian Riedel-4 wrote >> >> This might be solved using a custom PropertyBinding and should look like >> ${json:property.name}… >> Challenge accepted! >> >> https://gist.github.com/3187796 >> >> >> Am 27.07.2012 um 02:16 schrieb Angelo C.: >> >>> Hi, >>> >>> you have this in the code, >>> >>> public JSONObject getJS() { >>> JSONObject js = new JSONObject(); >>> js.put("name1","123"); >>> return js; >>> } >>> >>> then in the template: >>> ${js.get('name1')} >>> >>> considering json objects are used often nowadays, possible to have a >>> direct >>> support in template? maybe some other prefix like: >>> #{js.name1} >>> >>> what do you think? >>> >>> Angelo >>> >>> >>> >>> >>> >>> >>> >>> -- >>> View this message in context: >>> http://tapestry.1045711.n5.nabble.com/json-support-in-template-tp5714820.html >>> Sent from the Tapestry - User mailing list archive at Nabble.com. >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscribe@.apache >>> For additional commands, e-mail: users-help@.apache >>> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@.apache >> For additional commands, e-mail: users-help@.apache >> > > > > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/json-support-in-template-tp5714820p5714846.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 > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org