| java.lang.Object com.icesoft.util.SeamUtilities
SeamUtilities | public class SeamUtilities (Code) | | author: ICEsoft Technologies, Inc. author: Purpose of this class is to localize Seam Introspection code author: in one place, and get rid of the variables cluttering up a few author: of the ICEfaces classes author: Jun 2007 - removed reference to ConversationIsLongRunningParameter author: since seam1.3.0.ALPHA has removed all reference to it in Manager Class |
encodeSeamConversationId | public static String encodeSeamConversationId(String uri, String viewId)(Code) | | Called on a redirect to invoke any Seam redirection code. Seam uses
the sendRedirect method to preserve temporary conversations for the
duration of redirects. ICEfaces does not call this method, so this
method attempts to call the same Seam code introspectively. Seam will
encode the conversationId to the end of the argument URI.
Parameters: uri - the redirect URI to redirect to, before theconversationId is encoded the URI, with the conversationId if Seam is detected |
getConversationIdParameterName | public static String getConversationIdParameterName()(Code) | | Seam 1.0.1 uses an element 'conversationId' as the
parameter name, whereas Seam 1.1 has it as a configurable item. This method
will call the Manager instance to retrieve the current parameter name
defining containing the conversation ID. This method must only be called
when the EventContext is valid (and thus the Manager
instance is retrievable). The parameter is configurable on a
per application basis, so it wont change at runtime.
Calling this method also fills in the conversationIdParameter,
the conversationIsLongRunningParameter, and the conversationParentIdParameter
fields, as they are all configurable, and used in the encoding conversation
id method
the appropriate parameter name for the application |
getFlowIdParameterName | public static String getFlowIdParameterName()(Code) | | Return the parameter name for the Spring Flow Id
the appropriate parameter name for the application |
getPageContextKey | public static String getPageContextKey()(Code) | | Retrieve the PageContext key. Equivalent to
ScopeType.PAGE.getPrefix() . Can be used to
manipulate the PageContext, without loading the class.
This String is used as the key to store the PageContext in the
ViewRoot attribute map, and does not equal the string
"org.jboss.seam.PAGE"
The String Key that can be used to find the Seam PageContext |
getSeamConversationId | public static String getSeamConversationId()(Code) | | Retrieve the current Seam conversationId (if any) by introspection from
the SeamManager. The seam Conversation must be a long running
conversation, otherwise it isn't useful to encode it in the form. Long
running conversations are started by Seam components at various parts of
the application lifecycle, and their Id is necessary during a partial
submit to continue the thread of the conversation.
The current conversation id, or null if not a seam environment,or there is no current long running conversation. |
getSeamDebugPhaseListenerClassLoader | public static ClassLoader getSeamDebugPhaseListenerClassLoader()(Code) | | |
getSpringFlowId | public static String getSpringFlowId()(Code) | | Retrieve the current Spring flowId (if any).
The current Spring flowId. |
isSeamEnvironment | public static boolean isSeamEnvironment()(Code) | | Utility method to determine if the Seam classes can be loaded.
true if Seam classes can be loaded |
isSpringEnvironment | public static boolean isSpringEnvironment()(Code) | | Utility method to determine if Spring WebFlow is active.
true if Spring WebFlow is enabled |
removeSeamDebugPhaseListener | public static void removeSeamDebugPhaseListener(Lifecycle lifecycle)(Code) | | ICE-1084 : We have to turn off Seam's PhaseListener that makes
it's debug page appear, so that our SeamDebugResourceResolver
can do its work.
Parameters: lifecycle - The Lifecycle maintains the list of PhaseListeners |
requiresSeamExpressionFactory | public static boolean requiresSeamExpressionFactory()(Code) | | Utility method to determine if D2DSeamFaceletViewHandler requires
SeamExpressionFactory Class
false if Seam version 1.3.0.ALPHAfalse otherwise |
|
|