public void beforePhase(PhaseEvent phaseEvent)
{
if (phaseEvent.getPhaseId().equals(PhaseId.APPLY_REQUEST_VALUES))
{
ConversationContext context = (ConversationContext) manager.getContext(ConversationScoped.class);
if (JSFUtil.isPostBack())
{
logger.info("Activating the conversation context for view id : " + JSFUtil.getViewId());
context.setActive(true);
conversation.updateTimeOut();
}
}
else if (phaseEvent.getPhaseId().equals(PhaseId.RENDER_RESPONSE))
{
ConversationContext context = (ConversationContext) manager.getContext(ConversationScoped.class);
if (!JSFUtil.isPostBack())
{
logger.info("Activating the conversation context for view id : " + JSFUtil.getViewId());
context.setActive(true);
conversation.updateTimeOut();
}
if (conversation.isLongRunning())