org.apache.myfaces.extensions.cdi.jsf.impl.util
Class ConversationRequiredUtils

java.lang.Object
  extended by org.apache.myfaces.extensions.cdi.jsf.impl.util.ConversationRequiredUtils

@Typed
public abstract class ConversationRequiredUtils
extends Object

Helper methods for ConversationRequired


Method Summary
static void ensureExistingConversation(javax.faces.context.FacesContext facesContext)
          Checks if the page-bean for the current view hosts ConversationRequired and the conversation has been started or the current page is an allowed entry-point for the conversation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

ensureExistingConversation

public static void ensureExistingConversation(javax.faces.context.FacesContext facesContext)
Checks if the page-bean for the current view hosts ConversationRequired and the conversation has been started or the current page is an allowed entry-point for the conversation. If a violation is detected, the default-entry-point (specified by ConversationRequired) will be used as new view which will be rendered.

Parameters:
facesContext - current faces-context


Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.