Examples of ConversationIdParameter


Examples of org.jboss.seam.navigation.ConversationIdParameter

    * Add the conversation id to a URL, if necessary
    */
   public String encodeConversationId(String url, String viewId)
   {
      //DONT BREAK, icefaces uses this
      ConversationIdParameter cip = Pages.instance().getPage(viewId).getConversationIdParameter();
      return encodeConversationIdParameter( url, cip.getParameterName(), cip.getParameterValue() );
   }
View Full Code Here

Examples of org.jboss.seam.navigation.ConversationIdParameter

    * Add the conversation id to a URL, if necessary
    */
   public String encodeConversationId(String url, String viewId, String conversationId)
   {
      //DONT BREAK, icefaces uses this
      ConversationIdParameter cip = Pages.instance().getPage(viewId).getConversationIdParameter();
      return encodeConversationIdParameter( url, cip.getParameterName(), cip.getParameterValue(conversationId) );
   }
View Full Code Here

Examples of org.jboss.seam.navigation.ConversationIdParameter

    * Add the conversation id to a URL, if necessary
    */
   public String encodeConversationId(String url, String viewId)
   {
      //DONT BREAK, icefaces uses this
      ConversationIdParameter cip = Pages.instance().getPage(viewId).getConversationIdParameter();
      return encodeConversationIdParameter( url, cip.getParameterName(), cip.getParameterValue() );
   }
View Full Code Here

Examples of org.jboss.seam.navigation.ConversationIdParameter

    * Add the conversation id to a URL, if necessary
    */
   public String encodeConversationId(String url, String viewId, String conversationId)
   {
      //DONT BREAK, icefaces uses this
      ConversationIdParameter cip = Pages.instance().getPage(viewId).getConversationIdParameter();
      return encodeConversationIdParameter( url, cip.getParameterName(), cip.getParameterValue(conversationId) );
   }
View Full Code Here

Examples of org.jboss.seam.navigation.ConversationIdParameter

               return ce.redirect();
            }
         }
         else if (conversation != null && !"".equals(conversation))
         {
            ConversationIdParameter param = Pages.instance().getConversationIdParameter(conversation);
            if (param != null)
            {
               ConversationEntry ce = ConversationEntries.instance().getConversationEntry(param.getConversationId());
               if (ce != null)
               {
                  return ce.redirect();
               }
            }           
View Full Code Here

Examples of org.jboss.seam.navigation.ConversationIdParameter

      {
         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
View Full Code Here

Examples of org.jboss.seam.navigation.ConversationIdParameter

     
      FacesContext facesContext = FacesContext.getCurrentInstance();
      String currentViewId = Pages.getViewId(facesContext);
      if ( viewId!=null && currentViewId!=null )
      {
         ConversationIdParameter currentPage = Pages.instance().getPage(currentViewId).getConversationIdParameter();
         ConversationIdParameter targetPage = Pages.instance().getPage(viewId).getConversationIdParameter();
         if ( isDifferentConversationId(currentPage, targetPage) )
         {
            updateCurrentConversationId( targetPage.getConversationId() );
         }     
      }
   }
View Full Code Here

Examples of org.jboss.seam.navigation.ConversationIdParameter

               return ce.redirect();
            }
         }
         else if (conversation != null && !"".equals(conversation))
         {
            ConversationIdParameter param = Pages.instance().getConversationIdParameter(conversation);
            if (param != null)
            {
               ConversationEntry ce = ConversationEntries.instance().getConversationEntry(param.getConversationId());
               if (ce != null)
               {
                  return ce.redirect();
               }
            }           
View Full Code Here

Examples of org.jboss.seam.navigation.ConversationIdParameter

    * Add the conversation id to a URL, if necessary
    */
   public String encodeConversationId(String url, String viewId)
   {
      //DONT BREAK, icefaces uses this
      ConversationIdParameter cip = Pages.instance().getPage(viewId).getConversationIdParameter();
      return encodeConversationIdParameter( url, cip.getParameterName(), cip.getParameterValue() );
   }
View Full Code Here

Examples of org.jboss.seam.navigation.ConversationIdParameter

    * Add the conversation id to a URL, if necessary
    */
   public String encodeConversationId(String url, String viewId, String conversationId)
   {
      //DONT BREAK, icefaces uses this
      ConversationIdParameter cip = Pages.instance().getPage(viewId).getConversationIdParameter();
      return encodeConversationIdParameter( url, cip.getParameterName(), cip.getParameterValue(conversationId) );
   }
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.