ApplicationImpl(RuntimeConfig runtimeConfig) { if (runtimeConfig == null) { throw new IllegalArgumentException("runtimeConfig must mot be null"); } // set default implementation in constructor // pragmatic approach, no syncronizing will be needed in get methods _viewHandler = new JspViewHandlerImpl(); _navigationHandler = new NavigationHandlerImpl(); _actionListener = new ActionListenerImpl(); _defaultRenderKitId = "HTML_BASIC"; _stateManager = new JspStateManagerImpl(); _elContextListeners = new ArrayList<ELContextListener>(); _runtimeConfig = runtimeConfig; if (log.isTraceEnabled()) log.trace("New Application instance created"); }
Map<String, Set<NavigationCase>> casesMap = getNavigationCases(); NavigationCase navigationCase = null; navigationCase = calcMatchingNavigationCase(facesContext, casesSet, fromAction, outcome); for (String fromViewId : getSortedWildcardKeys()) if (casesSet != null) navigationCase = calcMatchingNavigationCase(facesContext, casesSet, fromAction, outcome); if (navigationCase != null) break; if (casesSet != null) navigationCase = calcMatchingNavigationCase(facesContext, casesSet, fromAction, outcome); if (navigationCase != null) break; navigationCase = getOutcomeNavigationCase (facesContext, fromAction, outcome);
/** * Returns the view ID that would be created for the given action and outcome */ public String getViewId(FacesContext context, String fromAction, String outcome) { return this.getNavigationCase(context, fromAction, outcome).getToViewId(context); }
String fromAction, String outcome) Map<String, Set<NavigationCase>> casesMap = getNavigationCases(); NavigationCase navigationCase = null; navigationCase = calcMatchingNavigationCase(facesContext, casesSet, fromAction, outcome); List<_WildcardPattern> wildcardPatterns = getSortedWildcardPatterns(); if (casesSet != null) navigationCase = calcMatchingNavigationCase(facesContext, casesSet, fromAction, outcome); if (navigationCase != null)
Map<String, List> casesMap = getNavigationCases(facesContext); NavigationCase navigationCase = null; navigationCase = calcMatchingNavigationCase(casesList, fromAction, outcome); List<String> keys = getSortedWildcardKeys(); for (int i = 0, size = keys.size(); i < size; i++) if (casesList != null) navigationCase = calcMatchingNavigationCase(casesList, fromAction, outcome); if (navigationCase != null) break; if (casesList != null) navigationCase = calcMatchingNavigationCase(casesList, fromAction, outcome); if (navigationCase != null) break;
NavigationCase navigationCase = getNavigationCommandFromGlobalNavigationCases( facesContext, viewId, navigationContext, fromAction, outcome); if (outcome != null && navigationCase == null) Flow targetFlow = calculateTargetFlow(facesContext, outcome, flowHandler, activeFlows, toFlowDocumentId); Flow currentFlow = navigationContext.getCurrentFlow(facesContext); FlowCallNode targetFlowCallNode = null; navigationCase = getNavigationCaseFromFlowStructure(facesContext, flowNavigationStructure, fromAction, outcome, viewId); if (navigationCase != null) outcomeToGo = resolveStartNodeOutcome(targetFlow); checkFlowNode = true; startFlow = false; outcomeToGo = calculateSwitchOutcome(facesContext, (SwitchNode) flowNode); targetFlow = calculateFlowCallTargetFlow(facesContext, flowHandler, flowCallNode, currentFlow); if (targetFlow != null) String vdlViewIdentifier = calculateVdlViewIdentifier(facesContext, methodCallNode); navigationCase = getNavigationCommand(facesContext, navigationContext, actionToGo, outcomeToGo, FlowHandler.NULL_FLOW); if (navigationCase != null) navigationCase = createNavigationCase(
if (set == null) set = new HashSet<NavigationCase>(convertNavigationCasesToAPI(rule)); cases.put(fromViewId, set); if (fromViewId.endsWith(ASTERISK)) set.addAll(convertNavigationCasesToAPI(rule));
navigationCase = calcMatchingNavigationCase(facesContext, casesSet, fromAction, outcome); if (casesSet != null) navigationCase = calcMatchingNavigationCase(facesContext, casesSet, fromAction, outcome); if (navigationCase != null)
if (set == null) set = new HashSet<NavigationCase>(convertNavigationCasesToAPI(rule)); cases.put(fromViewId, set); if (fromViewId.endsWith(ASTERISK)) set.addAll(convertNavigationCasesToAPI(rule));
Map<String, Set<NavigationCase>> casesMap = getNavigationCases(); NavigationCase navigationCase = null; navigationCase = calcMatchingNavigationCase(facesContext, casesSet, fromAction, outcome); for (String fromViewId : getSortedWildcardKeys()) if (casesSet != null) navigationCase = calcMatchingNavigationCase(facesContext, casesSet, fromAction, outcome); if (navigationCase != null) break; if (casesSet != null) navigationCase = calcMatchingNavigationCase(facesContext, casesSet, fromAction, outcome); if (navigationCase != null) break; navigationCase = getOutcomeNavigationCase (facesContext, fromAction, outcome);
/** * Returns the view ID that would be created for the given action and outcome */ public String getViewId(FacesContext context, String fromAction, String outcome) { return this.getNavigationCase(context, fromAction, outcome).getToViewId(); }
ApplicationImpl(final RuntimeConfig runtimeConfig) { if (runtimeConfig == null) { throw new IllegalArgumentException("runtimeConfig must mot be null"); } // set default implementation in constructor // pragmatic approach, no syncronizing will be needed in get methods _viewHandler = new ViewHandlerImpl(); _navigationHandler = new NavigationHandlerImpl(); _actionListener = new ActionListenerImpl(); _defaultRenderKitId = "HTML_BASIC"; _stateManager = new JspStateManagerImpl(); _elContextListeners = new ArrayList<ELContextListener>(); _resourceHandler = new ResourceHandlerImpl(); _runtimeConfig = runtimeConfig; if (log.isLoggable(Level.FINEST)) log.finest("New Application instance created"); }
if (set == null) set = new HashSet<NavigationCase>(convertNavigationCasesToAPI(rule)); cases.put(fromViewId, set); if (fromViewId.endsWith(ASTERISK)) set.addAll(convertNavigationCasesToAPI(rule));
/** * Returns the view ID that would be created for the given action and outcome */ public String getViewId(FacesContext context, String fromAction, String outcome) { return this.getNavigationCase(context, fromAction, outcome).getToViewId(context); }
ApplicationImpl(final RuntimeConfig runtimeConfig) { if (runtimeConfig == null) { throw new IllegalArgumentException("runtimeConfig must mot be null"); } // set default implementation in constructor // pragmatic approach, no syncronizing will be needed in get methods _viewHandler = new ViewHandlerImpl(); _navigationHandler = new NavigationHandlerImpl(); _actionListener = new ActionListenerImpl(); _defaultRenderKitId = "HTML_BASIC"; _stateManager = new StateManagerImpl(); _elContextListeners = new ArrayList<ELContextListener>(); _resourceHandler = new ResourceHandlerImpl(); _runtimeConfig = runtimeConfig; if (log.isLoggable(Level.FINEST)) log.finest("New Application instance created"); String configParam = getFaceContext().getExternalContext().getInitParameter(DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE_PARAM_NAME); if (configParam != null && configParam.toLowerCase().equals("true")) { _dateTimeConverterDefaultTimeZoneIsSystemTimeZone = true; } }
/** * Returns the view ID that would be created for the given action and outcome */ public String getViewId(FacesContext context, String fromAction, String outcome) { return this.getNavigationCase(context, fromAction, outcome).getToViewId(context); }
ApplicationImpl(final RuntimeConfig runtimeConfig) { if (runtimeConfig == null) { throw new IllegalArgumentException("runtimeConfig must mot be null"); } // set default implementation in constructor // pragmatic approach, no syncronizing will be needed in get methods _viewHandler = new ViewHandlerImpl(); _navigationHandler = new NavigationHandlerImpl(); _actionListener = new ActionListenerImpl(); _defaultRenderKitId = "HTML_BASIC"; _stateManager = new StateManagerImpl(); _elContextListeners = new ArrayList<ELContextListener>(); _resourceHandler = new ResourceHandlerImpl(); _flowHandler = new FlowHandlerImpl(); _searchExpressionHandler = new SearchExpressionHandlerImpl(); _runtimeConfig = runtimeConfig; if (log.isLoggable(Level.FINEST)) { log.finest("New Application instance created"); } String configParam = getFaceContext().getExternalContext(). getInitParameter(Converter.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE_PARAM_NAME); if (configParam != null && configParam.toLowerCase().equals("true")) { _dateTimeConverterDefaultTimeZoneIsSystemTimeZone = true; } }
NavigationCase navigationCase = getNavigationCase(facesContext, fromAction, outcome);
@Override public void handleNavigation(FacesContext facesContext, String fromAction, String outcome) NavigationCase navigationCase = getNavigationCase(facesContext, fromAction, outcome);
@Override public void handleNavigation(FacesContext facesContext, String fromAction, String outcome) NavigationCase navigationCase = getNavigationCase(facesContext, fromAction, outcome);