Package org.apache.beehive.netui.pageflow.requeststate

Examples of org.apache.beehive.netui.pageflow.requeststate.NameService


            // name the tree if it hasn't been named already
            INameable in = (INameable) treeRoot;
            String o = in.getObjectName();
            if (o == null) {
                NameService ns = NameService.instance(pageContext.getSession());
                ns.nameObject("Tree", in);
                ns.put(in);
            }
        }


        // prepare to render the tree
View Full Code Here


                if (hasErrors())
                    reportAndExit(SKIP_BODY);

                // name the divPanel so we can post state back to this state object.
                NameService ns = NameService.instance(pageContext.getSession());
                ns.nameObject("DivPanel", state);
                ns.put(state);
            }
        }

        WriteRenderAppender writer = new WriteRenderAppender(pageContext);
View Full Code Here

    {
        String dp = req.getParameter("divPanel");
        String fp = req.getParameter("firstPage");
        //System.err.println("DivPanel Command: switch, DivPanel:" + dp + " Node:" + fp);

        NameService ns = NameService.instance(req.getSession());
        assert(ns != null);

        // get the tree from the name service
        INameable n = ns.get(dp);
        if (n == null) {
            System.err.println("DivPanel '" + dp + "' was not found in the NameService");
            return;
        }
        if (!(n instanceof DivPanelState)) {
View Full Code Here

            // name the tree if it hasn't been named already
            INameable in = (INameable) treeRoot;
            String o = in.getObjectName();
            if (o == null) {
                NameService ns = NameService.instance(pageContext.getSession());
                ns.nameObject("Tree", in);
                ns.put(in);
            }
        }


        // prepare to render the tree
View Full Code Here

        String node = req.getParameter("node");
        String expandSvr = req.getParameter("expandOnServer");
        //System.err.println("TreeCommand:" + ((expand) ? "expand" : "collapse") +
        //        " Tree:" + tree + " Node:" + node + " expandSvr:" + expandSvr);

        NameService ns = NameService.instance(req.getSession());
        assert(ns != null);

        // get the tree from the name service
        INameable n = ns.get(tree);
        if (n == null) {
            logger.error("Tree '" + tree + "' was not found in the NameService");
            return;
        }
        if (!(n instanceof ITreeRootElement)) {
View Full Code Here

                if (hasErrors())
                    reportAndExit(SKIP_BODY);

                // name the divPanel so we can post state back to this state object.
                NameService ns = NameService.instance(pageContext.getSession());
                ns.nameObject("DivPanel", state);
                ns.put(state);
            }
        }

        WriteRenderAppender writer = new WriteRenderAppender(pageContext);
View Full Code Here

        String node = req.getParameter("node");
        String expandSvr = req.getParameter("expandOnServer");
        //System.err.println("TreeCommand:" + ((expand) ? "expand" : "collapse") +
        //        " Tree:" + tree + " Node:" + node + " expandSvr:" + expandSvr);

        NameService ns = NameService.instance(req.getSession());
        assert(ns != null);

        // get the tree from the name service
        INameable n = ns.get(tree);
        if (n == null) {
            logger.error("Tree '" + tree + "' was not found in the NameService");
            return;
        }
        if (!(n instanceof ITreeRootElement)) {
View Full Code Here

            // name the tree if it hasn't been named already
            INameable in = (INameable) treeRoot;
            String o = in.getObjectName();
            if (o == null) {
                NameService ns = NameService.instance(pageContext.getSession());
                ns.nameObject("Tree", in);
                ns.put(in);
            }
        }


        // prepare to render the tree
View Full Code Here

        String dp = request.getParameter("divPanel");
        String fp = request.getParameter("firstPage");
        //System.err.println("DivPanel Command: switch, DivPanel:" + dp + " Node:" + fp);

        NameService ns = NameService.instance(request.getSession());
        assert(ns != null);

        // get the DivPanel from the name service
        INameable n = ns.get(dp);
        if (n == null) {
            System.err.println("DivPanel '" + dp + "' was not found in the NameService");
            return;
        }
        if (!(n instanceof DivPanelState)) {
View Full Code Here

            // name the tree if it hasn't been named already
            // or if no longer stored in the NameService, add it.
            INameable in = (INameable) treeRoot;
            String o = in.getObjectName();
            NameService ns = NameService.instance(pageContext.getSession());
            if (o == null) {
                ns.nameObject("Tree", in);
                ns.put(in);
            }
            else if (ns.get(o) == null) {
                ns.put(in);
            }
        }


        // prepare to render the tree
View Full Code Here

TOP

Related Classes of org.apache.beehive.netui.pageflow.requeststate.NameService

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.