Package org.jboss.seam.navigation

Examples of org.jboss.seam.navigation.Pages


      {
         warRootDeploymentStrategy.scan();
         if (warRootDeploymentStrategy.getTimestamp() > init.getWarTimestamp())
         {
            log.debug("redeploying page descriptors...");
            Pages pages = (Pages) ServletLifecycle.getServletContext().getAttribute(Seam.getComponentName(Pages.class));
            if (pages != null)
            {
               // application context is needed for creating expressions
               Lifecycle.setupApplication();
               pages.initialize(warRootDeploymentStrategy.getDotPageDotXmlFileNames());
               Lifecycle.cleanupApplication();
            }
            ServletLifecycle.getServletContext().removeAttribute(Seam.getComponentName(Exceptions.class));
            init.setWarTimestamp(warRootDeploymentStrategy.getTimestamp());
            log.debug("done redeploying page descriptors");
View Full Code Here


                  Pageflow.instance().getPage() : null;
     
      if (page==null)
      {
         //handle stuff defined in pages.xml
         Pages pages = Pages.instance();
         if (pages!=null) //for tests
         {
            String viewId = Pages.getViewId(facesContext);
            org.jboss.seam.navigation.Page pageEntry = pages.getPage(viewId);
            if ( pageEntry.isSwitchEnabled() )
            {
               conversation.setViewId(viewId);
            }
            if ( pageEntry.hasDescription() )
            {
               conversation.setDescription( pageEntry.renderDescription() );
            }
            conversation.setTimeout( pages.getTimeout(viewId) );
         }
      }
      else
      {
         //use stuff from the pageflow definition
View Full Code Here

            {
               warRootDeploymentStrategy.scan();
               if (warRootDeploymentStrategy.getTimestamp() > init.getWarTimestamp())
               {
                  log.debug("redeploying page descriptors...");
                  Pages pages = (Pages) ServletLifecycle.getServletContext().getAttribute(Seam.getComponentName(Pages.class));
                  if (pages != null) {
                     // application context is needed for creating expressions
                     Lifecycle.setupApplication();
                     pages.initialize(warRootDeploymentStrategy.getDotPageDotXmlFileNames());
                     Lifecycle.cleanupApplication();
                  }
                  ServletLifecycle.getServletContext().removeAttribute(Seam.getComponentName(Exceptions.class));
                  init.setWarTimestamp(warRootDeploymentStrategy.getTimestamp());
                  log.debug ("done redeploying page descriptors");
View Full Code Here

                  Pageflow.instance().getPage() : null;
     
      if (page==null)
      {
         //handle stuff defined in pages.xml
         Pages pages = Pages.instance();
         if (pages!=null) //for tests
         {
            String viewId = Pages.getViewId(facesContext);
            org.jboss.seam.navigation.Page pageEntry = pages.getPage(viewId);
            if ( pageEntry.isSwitchEnabled() )
            {
               conversation.setViewId(viewId);
            }
            if ( pageEntry.hasDescription() )
            {
               conversation.setDescription( pageEntry.renderDescription() );
            }
            conversation.setTimeout( pages.getTimeout(viewId) );
         }
      }
      else
      {
         //use stuff from the pageflow definition
View Full Code Here

                  Pageflow.instance().getPage() : null;
     
      if (page==null)
      {
         //handle stuff defined in pages.xml
         Pages pages = Pages.instance();
         if (pages!=null) //for tests
         {
            String viewId = Pages.getViewId(facesContext);
            org.jboss.seam.navigation.Page pageEntry = pages.getPage(viewId);
            if ( pageEntry.isSwitchEnabled() )
            {
               conversation.setViewId(viewId);
            }
            if ( pageEntry.hasDescription() )
            {
               conversation.setDescription( pageEntry.renderDescription() );
            }
            conversation.setTimeout( pages.getTimeout(viewId) );
         }
      }
      else
      {
         //use stuff from the pageflow definition
View Full Code Here

TOP

Related Classes of org.jboss.seam.navigation.Pages

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.