Package cn.webwheel.results

Examples of cn.webwheel.results.TemplateResult


            articles = qr.query("select * from Article join ArticleTag on Article.id=ArticleTag.articleId where tag=? and authorId=? order by postDate desc limit ? offset ?", new BeanListHandler<Article>(Article.class),
                    tag, user.id, pageSize, (pg - 1) * pageSize);
            Integer n = user.getTagList().get(tag);
            itemCount = n == null ? 0 : n;
        }
        return new TemplateResult(this);
    }
View Full Code Here


        author = userService.findUser(topic.authorId);
        replies = topicService.listReply(topic.id, pg, 30);
        for (Reply reply : replies) {
            reply.author = userService.findUser(reply.authorId);
        }
        return new TemplateResult(this);
    }
View Full Code Here

                return new ErrorResult(404);
            }
        } else {
            article = new Article();
        }
        return new TemplateResult(this);
    }
View Full Code Here

                            list.add(comment);
                        }
                        return list;
                    }
                }, article.id, pageSize, (pg - 1) * pageSize);
        return new TemplateResult(this);
    }
View Full Code Here

    @Inject
    LoginService loginService;

    @Action
    public Object html() {
        return new TemplateResult(this);
    }
View Full Code Here

                for (String uid : board.masterIds) {
                    board.masters.add(userService.findUser(uid));
                }
            }
        }
        return new TemplateResult(this);
    }
View Full Code Here

        board = boardService.findBoard(id);
        if (board == null) {
            return new ErrorResult(404);
        }
        topics = topicService.listBoardTopic(id, pg, 30);
        return new TemplateResult(this);
    }
View Full Code Here

import cn.webwheel.results.TemplateResult;

public class index extends BaseAction {
    @Action
    public Object html() {
        return new TemplateResult(this);
    }
View Full Code Here

    public String oldpwd;

    @Action("register.html")
    public Object registerPage() {
        return new TemplateResult(this);
    }
View Full Code Here

        return ok();
    }

    @Action("login.html")
    public Object loginPage() {
        return new TemplateResult(this);
    }
View Full Code Here

TOP

Related Classes of cn.webwheel.results.TemplateResult

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.