When adding a Javascript expression on a LiveDataSeries, double quotes are not parsed correctly (expression is taken to be a string), while using simple quotes works. This happens even though the double quotes are escaped.
I have noticed this while using a drop down list to select an id and trying to print it out in the LiveDataSeries' update() method.
When adding a Javascript expression on a LiveDataSeries, double quotes are not parsed correctly (expression is taken to be a string), while using simple quotes works. This happens even though the double quotes are escaped.
I have noticed this while using a drop down list to select an id and trying to print it out in the LiveDataSeries' update() method.
HTML snippet:
Wicket code snippet:
In the console, the update() method of LiveDataSeries prints:
If I change it to
addJavaScriptParameter("cableID", "document.getElementById('cableselect').selectedIndex")
, it works perfectly:My configuration: Apache Wicket 6.16.0 Wicked Charts POM Dependency: