# HG changeset patch # User Martin Rexa # Date 1263389777 -3600 # Node ID 9dc1915485ba96c08309ea60f69f487545f0d430 # Parent f861f40cabc3126276b3010fcb4470e6b9af1288 Handling parameter, and passing it to fmt diff -r f861f40cabc3 -r 9dc1915485ba freemarkerdor/src/main/java/cz/xelfi/quoridor/freemarkerdor/UI.java --- a/freemarkerdor/src/main/java/cz/xelfi/quoridor/freemarkerdor/UI.java Wed Jan 13 14:35:28 2010 +0100 +++ b/freemarkerdor/src/main/java/cz/xelfi/quoridor/freemarkerdor/UI.java Wed Jan 13 14:36:17 2010 +0100 @@ -376,13 +376,13 @@ @Path("elo") @Produces(MediaType.TEXT_HTML) public Response getEloList( - @QueryParam("historyId") @DefaultValue("0") String historyId){ + @QueryParam("historyId") @DefaultValue("0") Integer historyId){ Viewable v = checkLogin(); if (v != null) { return Response.status(Response.Status.FORBIDDEN).entity(v).build(); } - final Document got = stat.path("elo").path("list").path(historyId).accept(MediaType.TEXT_XML).get(Document.class); - return Response.ok(viewable("elo.fmt", got)).build(); + final Document got = stat.path("elo").path("list").path(historyId.toString()).accept(MediaType.TEXT_XML).get(Document.class); + return Response.ok(viewable("elo.fmt", got, "historyId", historyId)).build(); } @GET