Package org.jboss.seam.navigation

Examples of org.jboss.seam.navigation.Page


     
      //First, try to get the conversation id from the request parameter defined for the page
      String viewId = Pages.getCurrentViewId();
      if ( viewId!=null )
      {
         Page page = Pages.instance().getPage(viewId);
        
         if(conversationName != null)
         {
             ConversationIdParameter currentConversationIdParameter = Pages.instance().getConversationIdParameter(conversationName);
            
             if(currentConversationIdParameter == null)
             {
                 throw new IllegalStateException("The conversationName specified: " + conversationName + ", does not exist.");
             }
             // Try to restore the conversation from parameters (the user has specified the exact conversation to restore using f:param)
             conversationId = currentConversationIdParameter.getRequestConversationId(parameters);
            
             // NOTE: If conversationId is still null, don't try to resolve the EL here because we don't yet
             // have a conversation and therefore things may blow up; resolve EL in getInitialConversationId()
         }
         else
         {
             conversationId = page.getConversationIdParameter().getRequestConversationId(parameters);
         }        
         //TODO: how about the parent conversation id?
      }

   }
View Full Code Here


     
      //First, try to get the conversation id from the request parameter defined for the page
      String viewId = Pages.getCurrentViewId();
      if ( viewId!=null )
      {
         Page page = Pages.instance().getPage(viewId);
        
         if(conversationName != null)
         {
             ConversationIdParameter currentConversationIdParameter = Pages.instance().getConversationIdParameter(conversationName);
            
             if(currentConversationIdParameter == null)
             {
                 throw new IllegalStateException("The conversationName specified: " + conversationName + ", does not exist.");
             }
             // Try to restore the conversation from parameters (the user has specified the exact conversation to restore using f:param)
             conversationId = currentConversationIdParameter.getRequestConversationId(parameters);
            
             // NOTE: If conversationId is still null, don't try to resolve the EL here because we don't yet
             // have a conversation and therefore things may blow up; resolve EL in getInitialConversationId()
         }
         else
         {
             conversationId = page.getConversationIdParameter().getRequestConversationId(parameters);
         }        
         //TODO: how about the parent conversation id?
      }

   }
View Full Code Here

      Conversation conversation = Conversation.instance();
      if ( !conversation.isNested() || conversation.isLongRunning() )
      {
         if (getViewId()!=null)
         {
            Page page = Pages.instance().getPage(getViewId());
            return page.getConversationIdParameter().getParameterValue();
         }
         else
         {
            return conversation.getId();
         }
View Full Code Here

        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

     
      //First, try to get the conversation id from the request parameter defined for the page
      String viewId = Pages.getCurrentViewId();
      if ( viewId!=null )
      {
         Page page = Pages.instance().getPage(viewId);
        
         if(conversationName != null)
         {
             ConversationIdParameter currentConversationIdParameter = Pages.instance().getConversationIdParameter(conversationName);
            
             if(currentConversationIdParameter == null)
             {
                 throw new IllegalStateException("The conversationName specified: " + conversationName + ", does not exist.");
             }
             // Try to restore the conversation from parameters (the user has specified the exact conversation to restore using f:param)
             conversationId = currentConversationIdParameter.getRequestConversationId(parameters);
            
             // NOTE: If conversationId is still null, don't try to resolve the EL here because we don't yet
             // have a conversation and therefore things may blow up; resolve EL in getInitialConversationId()
         }
         else
         {
             conversationId = page.getConversationIdParameter().getRequestConversationId(parameters);
         }        
         //TODO: how about the parent conversation id?
      }

   }
View Full Code Here

     
      //First, try to get the conversation id from the request parameter defined for the page
      String viewId = Pages.getCurrentViewId();
      if ( viewId!=null )
      {
         Page page = Pages.instance().getPage(viewId);
        
         if(conversationName != null)
         {
             ConversationIdParameter currentConversationIdParameter = Pages.instance().getConversationIdParameter(conversationName);
            
             if(currentConversationIdParameter == null)
             {
                 throw new IllegalStateException("The conversationName specified: " + conversationName + ", does not exist.");
             }
             // Try to restore the conversation from parameters (the user has specified the exact conversation to restore using f:param)
             conversationId = currentConversationIdParameter.getRequestConversationId(parameters);
            
             // NOTE: If conversationId is still null, don't try to resolve the EL here because we don't yet
             // have a conversation and therefore things may blow up; resolve EL in getInitialConversationId()
         }
         else
         {
             conversationId = page.getConversationIdParameter().getRequestConversationId(parameters);
         }        
         //TODO: how about the parent conversation id?
      }

   }
View Full Code Here

   {
      //First, try to get the conversation id from the request parameter defined for the page
      String viewId = Pages.getCurrentViewId();
      if ( viewId!=null )
      {
         Page page = Pages.instance().getPage(viewId);
         conversationId = page.getConversationIdParameter().getRequestConversationId(parameters);
         //TODO: how about the parent conversation id?
      }
   }
View Full Code Here

   {
      //First, try to get the conversation id from the request parameter defined for the page
      String viewId = Pages.getCurrentViewId();
      if ( viewId!=null )
      {
         Page page = Pages.instance().getPage(viewId);
         conversationId = page.getConversationIdParameter().getRequestConversationId(parameters);
         //TODO: how about the parent conversation id?
      }
      // TODO handle conversationName
   }
View Full Code Here

   {
      //First, try to get the conversation id from the request parameter defined for the page
      String viewId = Pages.getCurrentViewId();
      if ( viewId!=null )
      {
         Page page = Pages.instance().getPage(viewId);
        
         if(conversationName != null)
         {
             ConversationIdParameter currentConversationIdParameter = Pages.instance().getConversationIdParameter(conversationName);
            
             if(currentConversationIdParameter == null)
             {
                 throw new IllegalStateException("The conversationName specified: " + conversationName + ", does not exist.");
             }
             // Try to restore the conversation from parameters (the user has specified the exact conversation to restore using f:param)
             conversationId = currentConversationIdParameter.getRequestConversationId(parameters);
             if (conversationId == null)
             {
                // Try to restore the conversation from the EL expression on the conversation definition
                conversationId = currentConversationIdParameter.getConversationId();
             }
         }
         else
         {
             conversationId = page.getConversationIdParameter().getRequestConversationId(parameters);
         }        
         //TODO: how about the parent conversation id?
      }

   }
View Full Code Here

TOP

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

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.