Package org.apache.myfaces.trinidaddemo

Examples of org.apache.myfaces.trinidaddemo.NavigationHandlerBean$CategoryDisclosedStateEvalMap


        arrayList.add(new TrainNavigationItem("5.  You are done!", "trainYouAreDone", "/components/navigation/train/youAreDone.xhtml"));

        setViewIdProperty("viewId");

        FacesContext fc = FacesContext.getCurrentInstance();
        NavigationHandlerBean navigationHandler = (NavigationHandlerBean) FacesContext.getCurrentInstance().getApplication().getELResolver().getValue(fc.getELContext(), null, "navigationHandler");

        if (TrainDemo.VARIANTS.MaxVisited == navigationHandler.getCurrentComponentVariantDemo().getVariantId()) {
            setMaxPathKey("TRAIN_DEMO_MAX_PATH_KEY");
        }
       
        setWrappedData(new ChildPropertyTreeModel(arrayList,null));
    }
View Full Code Here


    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
        String requestURI = getRequestURI(request);

        FacesContext fc = getFacesContext(request, response);
        NavigationHandlerBean navigationHandler = (NavigationHandlerBean) fc.getApplication().getELResolver().getValue(fc.getELContext(), null, "navigationHandler");

        if (getDemoType(requestURI).equals(TYPES.component)){
            IComponentVariantDemo componentVariantDemo = getComponentVariantDemo(requestURI);
            navigationHandler.setCurrentComponentVariantDemo(componentVariantDemo);

            _LOG.log(Level.INFO,"Forwarding request [" + requestURI + "] to view [" + componentVariantDemo.getEntryPagePath()+"]");
            if (!response.isCommitted()) {
                request.getRequestDispatcher("/faces"+componentVariantDemo.getEntryPagePath()).forward(request, response);
            }
        }

        if (getDemoType(requestURI).equals(TYPES.feature)){
            IFeatureDemo featureDemo = getFeatureDemo(requestURI);
            navigationHandler.setCurrentFeatureDemo(featureDemo);

            _LOG.log(Level.INFO,"Forwarding request [" + requestURI + "] to view [" + featureDemo.getPagePath()+"]");
            if (!response.isCommitted()) {
                request.getRequestDispatcher("/faces"+featureDemo.getPagePath()).forward(request, response);
            }
View Full Code Here

TOP

Related Classes of org.apache.myfaces.trinidaddemo.NavigationHandlerBean$CategoryDisclosedStateEvalMap

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.