Examples of Pages


Examples of org.jboss.seam.navigation.Pages

                  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() );
            }
            else if(pages.hasDescription(viewId))
            {
               conversation.setDescription( pages.renderDescription(viewId) )
            }
            conversation.setTimeout( pages.getTimeout(viewId) );
            conversation.setConcurrentRequestTimeout( pages.getConcurrentRequestTimeout(viewId) );
         }
      }
      else
      {
         //use stuff from the pageflow definition
View Full Code Here

Examples of org.jboss.seam.navigation.Pages

                  log.info("done redeploying");
               }
              
               WarRootDeploymentStrategy warRootDeploymentStrategy = new WarRootDeploymentStrategy(Thread.currentThread().getContextClassLoader(), warRoot);
               warRootDeploymentStrategy.scan();
               Pages pages = (Pages) ServletLifecycle.getServletContext().getAttribute(Seam.getComponentName(Pages.class));
               if (pages!= null) {
                   pages.initialize(warRootDeploymentStrategy.getDotPageDotXmlFileNames());
               }
           
               ServletLifecycle.getServletContext().removeAttribute( Seam.getComponentName(Exceptions.class) );                
            }
         }
View Full Code Here

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

Examples of org.jboss.seam.navigation.Pages

   
   
    private List<Pattern> getAllPatterns() {
        List<Pattern> allPatterns = new ArrayList<Pattern>();
       
        Pages pages = (Pages) getServletContext().getAttribute(Seam.getComponentName(Pages.class));
        if (pages != null) {
            Collection<String> ids = pages.getKnownViewIds();

            for (String id: ids) {
                 Page page = pages.getPage(id);
                 allPatterns.addAll(page.getRewritePatterns());
            }
        } else {
            log.warn("Pages is null for incoming request!");
        }
View Full Code Here

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

Examples of org.jboss.seam.navigation.Pages

                  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() );
            }
            else if(pages.hasDescription(viewId))
            {
               conversation.setDescription( pages.renderDescription(viewId) )
            }
            conversation.setTimeout( pages.getTimeout(viewId) );
            conversation.setConcurrentRequestTimeout( pages.getConcurrentRequestTimeout(viewId) );
         }
      }
      else
      {
         //use stuff from the pageflow definition
View Full Code Here

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

Examples of org.jboss.seam.navigation.Pages

                  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

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

Examples of org.jboss.seam.navigation.Pages

                  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
Copyright © 2018 www.massapi.com. 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.