[
https://issues.apache.org/jira/browse/TAP5-39?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12680161#action_12680161
]
Davor Hrg commented on TAP5-39:
-------------------------------
I did find a solution that does not require a patch :D:D
/** Workarround to add raw content to JSON, like function references and such.
* Number instances are not quoted and are trusted, so we use it.*/
final class JSONRaw extends Number {
private final String rawText;
JSONRaw(String rawText) {
this.rawText = rawText;
}
@Override public double doubleValue() {return 0;}
@Override public float floatValue() {return 0;}
@Override public int intValue() {return 0;}
@Override public long longValue() {return 0;}
@Override public String toString() {
return rawText;
}
}
> Autocomplete / JSONObject config surrounds parameter with double qoute
> ----------------------------------------------------------------------
>
> Key: TAP5-39
> URL: https://issues.apache.org/jira/browse/TAP5-39
> Project: Tapestry 5
> Issue Type: Bug
> Affects Versions: 5.0.15
> Reporter: Sven Homburg
> Attachments: TAPESTRY-2234-tapestry-project.patch
>
>
> the JSONObject config in mixin Autocomplete surrounds parameters with double
> qoute.
> so Ajax.Autocompleter dont know how to interpreting the callbacks like
> "afterUpdateElement"
> and throws an exception "function not found".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.