wrong JSONArray :) sorry :)
-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org
At first, I thought I embarassingly overlooked I was quoting the data
by myself, but nevertheless (strangely) I still get the same behaviour:
in the template:
var routes = ${routes};
in rendered page:
var routes = [["{\"longitude\":38.94441,\"latitude\":47.203542}",...
The corresponding code is
jsonRoutePoints.put(jsonPoint)
2010/1/7 Yury Luneff :
> Hello!
>
> I have following code:
> public String getRoutes() {
> List routes = routeDAO.findAll();
> JSONArray jsonRoutes = new JSONArray();
>
> for (Route route : routes) {
> JSONArray jsonRoutePoints = new J
Hello!
I have following code:
public String getRoutes() {
List routes = routeDAO.findAll();
JSONArray jsonRoutes = new JSONArray();
for (Route route : routes) {
JSONArray jsonRoutePoints = new JSONArray();
for (RoutePoint point : route.getPoints())