Don’t skip the call to the parent method.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 16 Oct 2010 01:14:46 +0000 (03:14 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 16 Oct 2010 01:14:46 +0000 (03:14 +0200)
src/main/java/net/pterodactylus/sone/web/CreateReplyPage.java
src/main/java/net/pterodactylus/sone/web/ViewPostPage.java

index 496f184..8fb4480 100644 (file)
@@ -50,6 +50,7 @@ public class CreateReplyPage extends SoneTemplatePage {
         */
        @Override
        protected void processTemplate(Request request, Template template) throws RedirectException {
+               super.processTemplate(request, template);
                String postId = request.getHttpRequest().getPartAsStringFailsafe("post", 36);
                String text = request.getHttpRequest().getPartAsStringFailsafe("text", 65536).trim();
                if (request.getMethod() == Method.POST) {
index a013198..0918e55 100644 (file)
@@ -48,6 +48,7 @@ public class ViewPostPage extends SoneTemplatePage {
         */
        @Override
        protected void processTemplate(Request request, Template template) throws RedirectException {
+               super.processTemplate(request, template);
                String postId = request.getHttpRequest().getParam("post");
                Post post = webInterface.core().getPost(postId);
                template.set("post", post);