Package com.apress.progwt.client.domain.dto

Examples of com.apress.progwt.client.domain.dto.ForumBootstrap


        initServices();
        initConstants();

        String uniqueForumID = getParam("uniqueForumID");

        ForumBootstrap bootstrapped = (ForumBootstrap) getBootstrapped();

        VerticalPanel mainPanel = new VerticalPanel();
        mainPanel.setStylePrimaryName("Forum");

        forumDisplay = new ForumDisplay(this);
        mainPanel.add(forumDisplay);

        show(mainPanel);

        String initToken = History.getToken();
        if (initToken.length() == 0 && uniqueForumID != null) {
            initToken = uniqueForumID;
            History.newItem(initToken);
        }
        ForumCommand fc = ForumCommand.getFromLocation();

        // prioritize this over uniqueID
        // used when we've forwarded to /secure/
        if (fc != null) {
            Log.info("Forum Processing From Location " + fc);
            process(fc);

        } else if (bootstrapped != null) {
            Log.info("ForumApp Running off Bootstrap");

            load(0, bootstrapped.getPostsList(), false, bootstrapped
                    .getForumTopic(), FORUM_POST_MAX, false);

            History.newItem(bootstrapped.getForumTopic()
                    .getUniqueForumID());

        } else if (initToken.length() > 0) {
            Log.info("ForumApp token:" + initToken);
            // onHistoryChanged() is not called when the application first
View Full Code Here


        } else {

            RecentForumPostTopic rfpt = new RecentForumPostTopic();
            PostsList postList = schoolService.getForum(rfpt, 0, 15);

            ForumBootstrap bootstrap = new ForumBootstrap(gwtSerializer,
                    postList, rfpt);

            rtn.addAttribute("bootstrap", bootstrap);

        }
View Full Code Here

                    + schoolName);
            return getNotFoundView();
        }

        PostsList forumPosts = schoolService.getForum(school, 0, 10);
        ForumBootstrap forumBootstrap = new ForumBootstrap(serializer,
                forumPosts, school);
        model.addAttribute("forumBootstrap", forumBootstrap);

        model.addAttribute("school", school);
        model.addAttribute("interestedIn", schoolService
View Full Code Here

TOP

Related Classes of com.apress.progwt.client.domain.dto.ForumBootstrap

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.