You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Igor Drobiazko (JIRA)" <de...@tapestry.apache.org> on 2008/02/07 12:48:07 UTC
[jira] Created: (TAPESTRY-2129) JSON and quoting
JSON and quoting
----------------
Key: TAPESTRY-2129
URL: https://issues.apache.org/jira/browse/TAPESTRY-2129
Project: Tapestry
Issue Type: Bug
Components: XHR/dhtml/Ajax
Affects Versions: 5.0.10
Reporter: Igor Drobiazko
JSONObject#valueToString is always quoting all the string elements of a JSONObject. It would be nice to have a possibility to put strings into JSONObject that are not quoted. Let's have a look at an example:
I'm trying to create a patch which adds further parameters to the mixin Autocomplete. For example "afterUpdateElement" (see http://wiki.script.aculo.us/scriptaculous/show/Ajax.Autocompleter).
Since the name of the JavaScript function is quoted Ajax.Autocompleter throws following error:
this.options.afterUpdateElement is not a function
[Break on this error] this.options.afterUpdateElement(this.element, selectedElement);
The reason is that it expects the function names to be not quoted.
We had the same issue for T4 https://issues.apache.org/jira/browse/TAPESTRY-1795
But this was solved by a workaround for a single component. I think we need a general solution for T5.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Closed: (TAPESTRY-2129) JSON and quoting
Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-2129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship closed TAPESTRY-2129.
------------------------------------------
Resolution: Duplicate
Assignee: Howard M. Lewis Ship
Duplicate of TAPESTRY-1939.
> JSON and quoting
> ----------------
>
> Key: TAPESTRY-2129
> URL: https://issues.apache.org/jira/browse/TAPESTRY-2129
> Project: Tapestry
> Issue Type: Bug
> Components: XHR/dhtml/Ajax
> Affects Versions: 5.0.10
> Reporter: Igor Drobiazko
> Assignee: Howard M. Lewis Ship
>
> JSONObject#valueToString is always quoting all the string elements of a JSONObject. It would be nice to have a possibility to put strings into JSONObject that are not quoted. Let's have a look at an example:
> I'm trying to create a patch which adds further parameters to the mixin Autocomplete. For example "afterUpdateElement" (see http://wiki.script.aculo.us/scriptaculous/show/Ajax.Autocompleter).
> Since the name of the JavaScript function is quoted Ajax.Autocompleter throws following error:
> this.options.afterUpdateElement is not a function
> [Break on this error] this.options.afterUpdateElement(this.element, selectedElement);
> The reason is that it expects the function names to be not quoted.
> We had the same issue for T4 https://issues.apache.org/jira/browse/TAPESTRY-1795
> But this was solved by a workaround for a single component. I think we need a general solution for T5.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org