Package org.jboss.seam.core

Examples of org.jboss.seam.core.Manager


         //writeConversationIdToResponse( facesContext.getExternalContext().getResponse() );
         afterRenderResponse(facesContext);
      }
      else if ( event.getPhaseId() == INVOKE_APPLICATION || facesContext.getRenderResponse() || facesContext.getResponseComplete() )
      {
         Manager manager = Manager.instance();
         manager.beforeRedirect();
         if ( manager.isLongRunningConversation() )
         {
            setPortletRenderParameter(
                  facesContext.getExternalContext().getResponse(),
                  manager.getConversationIdParameter(),
                  manager.getCurrentConversationId()
               );
         }
         afterResponseComplete(facesContext);
      }
     
View Full Code Here


      return selectItems;
   }
     
   private String getLongRunningConversationId()
   {
      Manager manager = Manager.instance();
      if ( manager.isLongRunningConversation() )
      {
         return manager.getCurrentConversationId();
      }
      else if ( manager.isNestedConversation() )
      {
         return manager.getParentConversationId();
      }
      else
      {
         //TODO: is there any way to set it to the current outcome, instead of null?
         return null;
View Full Code Here

         //writeConversationIdToResponse( facesContext.getExternalContext().getResponse() );
         afterRenderResponse(facesContext);
      }
      else if ( event.getPhaseId() == INVOKE_APPLICATION || facesContext.getRenderResponse() || facesContext.getResponseComplete() )
      {
         Manager manager = Manager.instance();
         manager.beforeRedirect();
         if ( manager.isLongRunningConversation() )
         {
            setPortletRenderParameter(
                  facesContext.getExternalContext().getResponse(),
                  manager.getConversationIdParameter(),
                  manager.getCurrentConversationId()
               );
         }
         afterResponseComplete(facesContext);
      }
     
View Full Code Here

         }
      }

      private void updateConversationId()
      {
         Manager manager = Manager.instance();
         conversationId = manager.isLongRunningConversation() ? manager.getCurrentConversationId() : manager.getParentConversationId();
      }
View Full Code Here

    * Write out the conversation id as a servlet response header or portlet
    * render parameter.
    */
   private static void writeConversationIdToResponse(Object response)
   {
      Manager manager = Manager.instance();
      if ( manager.isLongRunningConversation() )
      {
         setPortletRenderParameter(
               response,
               manager.getConversationIdParameter(),
               manager.getCurrentConversationId()
            );
         setPortletRenderParameter(
               response,
               manager.getConversationIsLongRunningParameter(),
               Boolean.toString(manager.isReallyLongRunningConversation())
            );
      }
   }
View Full Code Here

   public void handle(Exception e) throws Exception
   {
      log.error("redirecting to debug page", e);
      org.jboss.seam.core.Redirect redirect = org.jboss.seam.core.Redirect.instance();
      redirect.setViewId("/debug.xhtml");
      Manager manager = Manager.instance();
      manager.beforeRedirect("/debug.xhtml");
      redirect.setParameter( manager.getConversationIdParameter(), manager.getCurrentConversationId() );
     
      try
      {
         redirect.execute();
      }
View Full Code Here

TOP

Related Classes of org.jboss.seam.core.Manager

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.