Package org.apache.beehive.netui.pageflow

Examples of org.apache.beehive.netui.pageflow.PageFlowController


    }

    public static final PageFlowController getPageFlow(ServletRequest request, ServletResponse response) {
        assert request instanceof HttpServletRequest;

        PageFlowController jpf = PageFlowUtils.getCurrentPageFlow((HttpServletRequest)request);
        if(jpf != null)
            return jpf;
        else {
            // @todo: i18n
            RuntimeException re = new RuntimeException("There is no current PageFlow for the expression.");
View Full Code Here


           
            try
            {
                ServletContext servletContext = ( ServletContext ) extContext;
                FlowControllerFactory fcFactory = FlowControllerFactory.get( servletContext );
                PageFlowController pfc = fcFactory.getPageFlowForRequest( new RequestContext( httpRequest, httpResponse ) );
                PageFlowUtils.getCurrentPageFlow( httpRequest );
   
                if ( pfc != null )
                {
                    if ( outcome != null )
View Full Code Here

        //
        // Save the current view state in the PreviousPageInfo structure of the current page flow.
        //
        if ( request != null )
        {
            PageFlowController curPageFlow = PageFlowUtils.getCurrentPageFlow( request );
           
            if ( curPageFlow != null && ! curPageFlow.isPreviousPageInfoDisabled() )
            {
                //
                // Only save the previous page info if the JSF view-ID is the same as the current forward path.
                // Note that we strip the file extension from the view-ID -- different JSF implementations give
                // us different things (foo.jsp vs. foo.faces).
                //
                viewID = FileUtils.stripFileExtension( viewID );
                String currentForwardPath = FileUtils.stripFileExtension( curPageFlow.getCurrentForwardPath() );
                if ( viewID.equals( currentForwardPath ) )
                {
                    PreviousPageInfo prevPageInfo = curPageFlow.getCurrentPageInfo();
                    FacesBackingBean backingBean = InternalUtils.getFacesBackingBean( request );
                    prevPageInfo.setClientState( new PageClientState( viewRoot, backingBean ) );
                }
            }
        }
View Full Code Here

        // Save the current view state in the PreviousPageInfo structure of the current page flow.
        //
        if ( request != null )
        {
            ServletContext servletContext = ( ServletContext ) externalContext.getContext();
            PageFlowController curPageFlow = PageFlowUtils.getCurrentPageFlow( request, servletContext );
           
            if ( curPageFlow != null && ! curPageFlow.isPreviousPageInfoDisabled() )
            {
                //
                // Only save the previous page info if the JSF view-ID is the same as the current forward path.
                // Note that we strip the file extension from the view-ID -- different JSF implementations give
                // us different things (foo.jsp vs. foo.faces).
                //
                viewID = FileUtils.stripFileExtension( viewID );
                String currentForwardPath = FileUtils.stripFileExtension( curPageFlow.getCurrentForwardPath() );
                if ( viewID.equals( currentForwardPath ) )
                {
                    PreviousPageInfo prevPageInfo = curPageFlow.getCurrentPageInfo();
                    FacesBackingBean backingBean = InternalUtils.getFacesBackingBean( request, servletContext );
                    prevPageInfo.setClientState( new PageClientState( viewRoot, backingBean ) );
                }
            }
        }
View Full Code Here

                //
                // We only forward to Page Flow actions if there's a page flow appropriate for this request.
                //
                ServletContext servletContext = ( ServletContext ) extContext;
                FlowControllerFactory fcFactory = FlowControllerFactory.get( servletContext );
                PageFlowController pfc = fcFactory.getPageFlowForRequest( new RequestContext( httpRequest, httpResponse ) );
   
                if ( pfc != null )
                {
                    if ( outcome != null )
                    {
View Full Code Here

                //
                // We only forward to Page Flow actions if there's a page flow appropriate for this request.
                //
                ServletContext servletContext = ( ServletContext ) extContext;
                FlowControllerFactory fcFactory = FlowControllerFactory.get( servletContext );
                PageFlowController pfc = fcFactory.getPageFlowForRequest( new RequestContext( httpRequest, httpResponse ) );
   
                if ( pfc != null )
                {
                    if ( outcome != null )
                    {
View Full Code Here

     * @return the page flow
     */
    public static PageFlowController getPageFlow(ServletRequest request, ServletResponse response) {
        assert request instanceof HttpServletRequest;

        PageFlowController jpf = PageFlowUtils.getCurrentPageFlow((HttpServletRequest)request);
        if(jpf != null)
            return jpf;
        else {
            String message = "There is no current Page Flow!";
            LOGGER.error(message);
View Full Code Here

        // Save the current view state in the PreviousPageInfo structure of the current page flow.
        //
        if ( request != null )
        {
            ServletContext servletContext = ( ServletContext ) externalContext.getContext();
            PageFlowController curPageFlow = PageFlowUtils.getCurrentPageFlow( request, servletContext );
           
            if ( curPageFlow != null && ! curPageFlow.isPreviousPageInfoDisabled() )
            {
                //
                // Only save the previous page info if the JSF view-ID is the same as the current forward path.
                // Note that we strip the file extension from the view-ID -- different JSF implementations give
                // us different things (foo.jsp vs. foo.faces).
                //
                viewID = FileUtils.stripFileExtension( viewID );
                String currentForwardPath = FileUtils.stripFileExtension( curPageFlow.getCurrentForwardPath() );
                if ( viewID.equals( currentForwardPath ) )
                {
                    PreviousPageInfo prevPageInfo = curPageFlow.theCurrentPageInfo();
                    FacesBackingBean backingBean = InternalUtils.getFacesBackingBean( request, servletContext );
                    prevPageInfo.setClientState( new PageClientState( viewRoot, backingBean ) );
                }
            }
        }
View Full Code Here

TOP

Related Classes of org.apache.beehive.netui.pageflow.PageFlowController

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.