Package net.sourceforge.pebble.web.view.impl

Examples of net.sourceforge.pebble.web.view.impl.CommentFormView


    getModel().put(Constants.BLOG_ENTRY_KEY, blogEntry);
    getModel().put(Constants.COMMENT_KEY, comment);
    request.getSession().setAttribute("rememberMe", request.getParameter("rememberMe"));

    if (submitType == null || submitType.equalsIgnoreCase(previewButton) || context.hasErrors()) {
      return new CommentFormView();
    } else {
      CommentConfirmationStrategy strategy = blog.getCommentConfirmationStrategy();

      Comment clonedComment = (Comment)comment.clone();
      request.getSession().setAttribute(Constants.COMMENT_KEY, comment);
View Full Code Here


        Comment parentComment = blogEntry.getComment(Long.parseLong(parentCommentId));
        blog.getContentDecoratorChain().decorate(decoratorContext, parentComment);
        getModel().put("parentComment", parentComment);
      }

      return new CommentFormView();
    }
  }
View Full Code Here

TOP

Related Classes of net.sourceforge.pebble.web.view.impl.CommentFormView

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.