Hi

When you specify something as a JSONLiteral, it is displayed as is and no
quotes are applied. So the JSON is your case becomes

{ strkey: strvalue}

so javascript tries to find the variable strvalue which is not there.

When you don't specify JSONLiteral, JSON is

{strkey : "strvalue"}

which is fine.

 Have you debugged it in firebug or chrome, it may be showing undefined
variable or something

regards
Taha

On Thu, Jul 14, 2011 at 1:46 AM, iberck <ibe...@gmail.com> wrote:

> When I send the JSONObject: jsSupport.addInitializerCall("test1",
> jobj.toCompactString()); IT WORKS
>
> Thanks in advance ;)
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/T5-2-6-JSONLiteral-Bug-tp4584187p4584206.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>

Reply via email to