Package org.jboss.seam.wiki.core.action

Examples of org.jboss.seam.wiki.core.action.Pager


    public List<BlogEntry> getBlogEntries(WikiPluginMacro macro) {
        BlogPreferences prefs = Preferences.instance().get(BlogPreferences.class, macro);

        if (pager == null) {
            log.debug("creating new pager with page size from macro preferences: " + prefs.getPageSize());
            pager = new Pager(prefs.getPageSize());
            pager.setPage(page);
        }

        if (blogEntries == null || !pager.getPageSize().equals(prefs.getPageSize())) {
            log.debug("blog entries list is null or pager is outdated, loading blog entries");
View Full Code Here


        BlogPreferences prefs = Preferences.instance().get(BlogPreferences.class);
        List<BlogEntry> recentBlogEntriesNonAggregated =
            blogDAO.findBlogEntriesInDirectory(
                    currentDirectory,
                    currentDocument,
                    new Pager(prefs.getRecentEntriesItems()),
                    null, null, null,
                    null, false
            );

        // Now aggregate by day
View Full Code Here

    @In("#{preferences.get('Forum')}")
    ForumPreferences forumPrefs;

    @RequestParameter
    public void setPage(Integer page) {
        if (pager == null) pager = new Pager(forumPrefs.getTopicsPerPage());
        pager.setPage(page);
        Contexts.getSessionContext().set(TOPIC_PAGE, page);
    }
View Full Code Here

TOP

Related Classes of org.jboss.seam.wiki.core.action.Pager

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.