Package net.sf.wfnm

Examples of net.sf.wfnm.NavigationManager


     * @param currentIfNotExists indicates to reload the current page if it does not exists
     *
     * @return the url of the previous webflow (top page) with name 'webflowName'
     */
    public static String getPreviousWebflow(HttpSession session, String webflowName, final boolean currentIfNotExists) {
        NavigationManager navigationManager = getNavigationManager(session);

        String page = navigationManager.getPreviousWebflow(webflowName);

        if ((page == null) && currentIfNotExists) {
            page = getCurrentPage(session);
        }

View Full Code Here


     * @param webflowName the webflow name
     *
     * @return true if the webflow has been visited
     */
    public static boolean isWebflowVisited(HttpSession session, String webflowName) {
        NavigationManager navigationManager = getNavigationManager(session);

        return navigationManager.isWebflowVisited(webflowName);
    }
View Full Code Here

        if (!Config.getInstance().isEnabled()) {
            buffer1.append("<tr><td bordercolor='#C0C0C0' align='center'>\n");
            buffer1.append("Framework disabled\n");
        } else {
            AttributeContainer ac = (AttributeContainer) HttpSessionWrapper.wrapItIfNecessary(pageContext.getSession());
            NavigationManager manager = NavigationManagerFactory.getInstance(ac);

            Set sessionSet = new HashSet();

            for (Enumeration e = pageContext.getSession().getAttributeNames(); e.hasMoreElements();) {
                String key = (String) e.nextElement();
                sessionSet.add(key);
            }

            buffer1.append("<tr valign='bottom'><td bordercolor='#C0C0C0' align='center'>\n");
            buffer1.append("<table width='100%' cellSpacing='1' cellPadding='1' bgcolor='#C0C0C0'>\n");

            StringBuffer buffer2 = new StringBuffer();
            int count = 1;

            Stack webflowStack = manager.getWebflowStack();

            for (int i = webflowStack.size() - 1; i >= 0; i--) {
                count++;

                Webflow webflow = (Webflow) webflowStack.elementAt(i);
View Full Code Here

TOP

Related Classes of net.sf.wfnm.NavigationManager

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.