toString method of JsonObject would double quote our value. One way is to create some data type extends jsonobject to encapsule your data and override the toString method. I haven't tried it yet.
public String toString() { return "Element.show"; } Thanks, DH ----- Original Message ----- From: "Nicolas Charles" <nchar...@linagora.com> To: "Tapestry users" <users@tapestry.apache.org> Sent: Monday, March 09, 2009 7:35 PM Subject: Re: Tapestry JSONObject : no 'function' type, any workaround ? > Francois Armand wrote: >> Rico Landefeld wrote: >>> Hello, >>> >>> I had the same annoying problem, but the patch works for me. But my >>> question >>> is: when will be a tapestry maintenance release which contains >>> already this >>> patch? btw, the same problem was solved in tapestry 4.1 long ago. >>> >> I would like - much prefer in fact - a workaround that does not imply >> to have my own version of T5... Already does that some times ago for >> an UTF-8 problem in URLs, and it's a mess to maintain (pom with non >> standard T5 repos, etc.). >> >> So, if someone has a less disruptive workaround, I will be glad to >> hear it :) (nonetheless, I keep in mind this solution...) >> >> > Nobody has a "real" solution ? (real being not patching the framework > and maintaining by myself) > What I need to do is to create a Window from the Window Prototype. And > I'd like to choose the parameters for this object. The js Window object > argument is a Javascript Array, with parameters : parameter : value. > However some value are Javascript object, for instance showEffect : > Element.show > > What Tapestry write when outputing the JSONObject is "showEffect" : > "Element.show". > And "Element.show" is definitively not a JS object. So it fails. > > Any idea ? > > Regards, > Nicolas > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >