/** * Stores the given view-id as next view-id e.g. after a navigation occurred * @param windowContext current window-context * @param newViewId next view-id */ public static void storeViewIdAsNewViewId(WindowContext windowContext, String newViewId) { windowContext.setAttribute(NEW_VIEW_ID_KEY, newViewId); }
private boolean isDefaultExceptionValue(CloseConversationGroup closeConversationGroup) { return RuntimeException.class.getName().equals(closeConversationGroup.on().getName()); } }
private static Class<?> getConversationGroup(ConversationRequired conversationRequired, Bean<?> foundBean) { Class<?> conversationGroup; if(ConversationRequired.class.equals(conversationRequired.conversationGroup())) { conversationGroup = ConversationUtils.getConversationGroup(foundBean); } else { conversationGroup = conversationRequired.conversationGroup(); } return conversationGroup; }
/** * Exposes the prev. view-id. * @return prev. view-id */ public static String getOldViewId() { return getWindowContextManager().getCurrentWindowContext().getAttribute(OLD_VIEW_ID_KEY, String.class); }
void observeRenderedView(String viewId) { if(viewId != null /*in case of an invalid view*/ && !viewId.equals(this.lastViewId)) { if(this.conversation != null) { this.conversation.close(); } expire(); } }
protected String getCurrentWindowId() { //TODO return RequestCache.getWindowContextManager().getCurrentWindowContext().getId(); }
/** * Exposes the next view-id. * @return next view-id */ public static String getNewViewId() { return getWindowContextManager().getCurrentWindowContext().getAttribute(NEW_VIEW_ID_KEY, String.class); }
/** * Stores the given view-id as next view-id e.g. after a navigation occurred * @param windowContext current window-context * @param newViewId next view-id */ public static void storeViewIdAsNewViewId(WindowContext windowContext, String newViewId) { windowContext.setAttribute(NEW_VIEW_ID_KEY, newViewId); }
private boolean isDefaultExceptionValue(CloseConversationGroup closeConversationGroup) { return RuntimeException.class.getName().equals(closeConversationGroup.on().getName()); } }
void observeRenderedView(String viewId) { if(viewId != null /*in case of an invalid view*/ && !viewId.equals(this.lastViewId)) { if(this.conversation != null) { this.conversation.close(); } expire(); } }
protected String getCurrentWindowId() { //TODO return RequestCache.getWindowContextManager().getCurrentWindowContext().getId(); }
private static Class<?> getConversationGroup(ConversationRequired conversationRequired, Bean<?> foundBean) { Class<?> conversationGroup; if(ConversationRequired.class.equals(conversationRequired.conversationGroup())) { conversationGroup = ConversationUtils.getConversationGroup(foundBean); } else { conversationGroup = conversationRequired.conversationGroup(); } return conversationGroup; }
/** * Exposes the next view-id. * @return next view-id */ public static String getNewViewId() { return getWindowContextManager().getCurrentWindowContext().getAttribute(NEW_VIEW_ID_KEY, String.class); }
/** * Stores the given view-id as next view-id e.g. after a navigation occurred * @param windowContext current window-context * @param newViewId next view-id */ public static void storeViewIdAsNewViewId(WindowContext windowContext, String newViewId) { windowContext.setAttribute(NEW_VIEW_ID_KEY, newViewId); }
private boolean isDefaultExceptionValue(CloseConversationGroup closeConversationGroup) { return RuntimeException.class.getName().equals(closeConversationGroup.on().getName()); } }
void observeRenderedView(String viewId) { if(viewId != null /*in case of an invalid view*/ && !viewId.equals(this.lastViewId)) { if(this.conversation != null) { this.conversation.close(); } expire(); } }
protected String getCurrentWindowId() { //TODO return RequestCache.getWindowContextManager().getCurrentWindowContext().getId(); }
/** * Exposes the prev. view-id. * @return prev. view-id */ public static String getOldViewId() { return getWindowContextManager().getCurrentWindowContext().getAttribute(OLD_VIEW_ID_KEY, String.class); }
/** * Exposes the next view-id. * @return next view-id */ public static String getNewViewId() { return getWindowContextManager().getCurrentWindowContext().getAttribute(NEW_VIEW_ID_KEY, String.class); }
/** * Exposes the prev. view-id. * @return prev. view-id */ public static String getOldViewId() { return getWindowContextManager().getCurrentWindowContext().getAttribute(OLD_VIEW_ID_KEY, String.class); }