Mercurial > hg > AnnotationManagerN4J
changeset 27:6bc918105c9a
back to this.getReference, problem was with mod_proxy (ProxyPreserveHost).
author | casties |
---|---|
date | Mon, 24 Sep 2012 19:25:40 +0200 |
parents | f204ce7d1da8 |
children | 3be0ebb6d5ad |
files | src/main/java/de/mpiwg/itgroup/annotations/restlet/annotations_ui/GroupMembersResource.java |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/de/mpiwg/itgroup/annotations/restlet/annotations_ui/GroupMembersResource.java Mon Sep 24 18:24:03 2012 +0200 +++ b/src/main/java/de/mpiwg/itgroup/annotations/restlet/annotations_ui/GroupMembersResource.java Mon Sep 24 19:25:40 2012 +0200 @@ -41,13 +41,13 @@ return null; } String result = null; - Reference thisUrl = this.getRequest().getResourceRef(); + Reference thisUrl = this.getReference(); Reference groupsUrl = thisUrl.getParentRef(); result = "<html><body>\n<h1>Group members</h1>\n"; result += String.format("<p>Group: %s <a href=\"%s\">(%s)</a></p>\n", group.getName(), groupsUrl, group.getId()); result += "<p>Members:</p>\n"; + result += String.format("<form method=\"post\" action=\"%s\">", thisUrl); result += "<table>"; - result += String.format("<form method=\"post\" action=\"%s\">", thisUrl); List<Person> members = store.getMembersOfGroup(group); for (Person p : members) { result += String.format("<tr><td>%s</td><td>(%s)</td>", p.getName(), p.getIdString());