You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by leechj <le...@gmail.com> on 2009/04/14 22:06:45 UTC
T5 Chenillekit: @OnEvent problem with JSONObject/JSONArray
Hi All,
I'm trying to utilize the OnEvent Mixin to dynamically change the data in a
SelectBox when a user clicks a RadioButton.
In the function that is annotated by OnEvent, I return a JSONArray with
values and descriptions to populate my SelectBox.
My problem is that if the JSONArray is larger than 3 elements, I get a
client side error message stating: "Error Communication with the server:
response is undefined"
For some reason, after I return my JSONArray and before my client function
is called, something decides that it isn't going to write my JSONArray to
the response if the array contains more than 3 elements... If it only has 3
or less elements, everything works fine!
Can anyone help me? Thanks in Advance!
--
View this message in context: http://www.nabble.com/T5-Chenillekit%3A-%40OnEvent-problem-with-JSONObject-JSONArray-tp23046971p23046971.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5 Chenillekit: @OnEvent problem with JSONObject/JSONArray
Posted by leechj <le...@gmail.com>.
This will be my last post on this as I was able to find a solution!!
My problem was related to this:
https://issues.apache.org/jira/browse/TAP5-469
A workaround in that link is given that fixes the issue.
Hopefully this will help anyone else out experiencing the same thing I was.
leechj wrote:
>
> Okay I found out that it's not the amount of elements in the Array, but
> how big the entire object is total. Is there something in the request or
> response I need to look into to change the allowable size of what gets
> returned from an ajax call when using this mixin?
>
>
> leechj wrote:
>>
>> My problem is that if the JSONArray is larger than 3 elements, I get a
>> client side error message stating: "Error Communication with the server:
>> response is undefined"
>>
>
>
--
View this message in context: http://www.nabble.com/T5-Chenillekit%3A-%40OnEvent-problem-with-JSONObject-JSONArray-tp23046971p23060353.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5 Chenillekit: @OnEvent problem with JSONObject/JSONArray
Posted by leechj <le...@gmail.com>.
Okay I found out that it's not the amount of elements in the Array, but how
big the entire object is total. Is there something in the request or
response I need to look into to change the allowable size of what gets
returned from an ajax call when using this mixin?
leechj wrote:
>
> My problem is that if the JSONArray is larger than 3 elements, I get a
> client side error message stating: "Error Communication with the server:
> response is undefined"
>
--
View this message in context: http://www.nabble.com/T5-Chenillekit%3A-%40OnEvent-problem-with-JSONObject-JSONArray-tp23046971p23059405.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org