Package org.jboss.seam.navigation

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


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

TOP

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

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.