/** * Derive a NavigationCase from a flow node. * * @param flowNode * @return */ private NavigationCase createNavigationCase(String fromViewId, String outcome, String toViewId) { return new NavigationCase(fromViewId, null, outcome, null, toViewId, null, false, false); }
private NavigationCase createNavigationCase(String fromViewId, String outcome, String toViewId, String toFlowDocumentId) { return new NavigationCase(fromViewId, null, outcome, null, toViewId, toFlowDocumentId, null, false, false); }
navigationCase = new NavigationCase("*", null, null,
new NavigationCase(fromViewId, action, outcome,
NavigationCase cnc = new NavigationCase(fromViewId, action, outcome, condition, toViewId, toFlowDocumentId, parameters, redirect, includeViewParams); if (LOGGER.isLoggable(Level.FINE)) {
NavigationCase cnc = new NavigationCase(fromViewId, action, outcome, condition, toViewId, toFlowDocumentId, parameters, redirect, includeViewParams); if (LOGGER.isLoggable(Level.FINE)) {
navigationCase = new NavigationCase("*", null, null,
navigationCase = new NavigationCase("*", null, null,
navigationCase.add(new NavigationCase("*", null, null,
.equals(viewMetaData.viewParams()); navigationCase.add(new NavigationCase("*", null, null,
.equals(viewMetaData.viewParams()); navigationCase.add(new NavigationCase("*", null, null,
private Set<NavigationCase> convertNavigationCasesToAPI(NavigationRule rule) { Collection<? extends org.apache.myfaces.config.element.NavigationCase> configCases = rule.getNavigationCases(); Set<NavigationCase> apiCases = new HashSet<NavigationCase>(configCases.size()); for(org.apache.myfaces.config.element.NavigationCase configCase : configCases) { if(configCase.getRedirect() != null) { String includeViewParamsAttribute = configCase.getRedirect().getIncludeViewParams(); boolean includeViewParams = false; // default value is false if (includeViewParamsAttribute != null) { includeViewParams = new Boolean(includeViewParamsAttribute); } apiCases.add(new NavigationCase(rule.getFromViewId(),configCase.getFromAction(),configCase.getFromOutcome(),configCase.getIf(),configCase.getToViewId(),configCase.getRedirect().getViewParams(),true,includeViewParams)); } else { apiCases.add(new NavigationCase(rule.getFromViewId(),configCase.getFromAction(),configCase.getFromOutcome(),configCase.getIf(),configCase.getToViewId(),null,false,false)); } } return apiCases; }
private Set<NavigationCase> convertNavigationCasesToAPI(NavigationRule rule) { Collection<? extends org.apache.myfaces.config.element.NavigationCase> configCases = rule.getNavigationCases(); Set<NavigationCase> apiCases = new HashSet<NavigationCase>(configCases.size()); for(org.apache.myfaces.config.element.NavigationCase configCase : configCases) { if(configCase.getRedirect() != null) { String includeViewParamsAttribute = configCase.getRedirect().getIncludeViewParams(); boolean includeViewParams = false; // default value is false if (includeViewParamsAttribute != null) { includeViewParams = new Boolean(includeViewParamsAttribute); } apiCases.add(new NavigationCase(rule.getFromViewId(),configCase.getFromAction(),configCase.getFromOutcome(),configCase.getIf(),configCase.getToViewId(),configCase.getRedirect().getViewParams(),true,includeViewParams)); } else { apiCases.add(new NavigationCase(rule.getFromViewId(),configCase.getFromAction(),configCase.getFromOutcome(),configCase.getIf(),configCase.getToViewId(),null,false,false)); } } return apiCases; }
apiCases.add(new javax.faces.application.NavigationCase(rule.getFromViewId(), configCase.getFromAction(), configCase.getFromOutcome(),configCase.getIf(), apiCases.add(new javax.faces.application.NavigationCase(rule.getFromViewId(), configCase.getFromAction(), configCase.getFromOutcome(),configCase.getIf(),
private Set<NavigationCase> convertNavigationCasesToAPI(NavigationRule rule) { Collection<? extends org.apache.myfaces.config.element.NavigationCase> configCases = rule.getNavigationCases(); Set<NavigationCase> apiCases = new HashSet<NavigationCase>(configCases.size()); for(org.apache.myfaces.config.element.NavigationCase configCase : configCases) { if(configCase.getRedirect() != null) { String includeViewParamsAttribute = configCase.getRedirect().getIncludeViewParams(); boolean includeViewParams = false; // default value is false if (includeViewParamsAttribute != null) { includeViewParams = Boolean.valueOf(includeViewParamsAttribute); } apiCases.add(new NavigationCase(rule.getFromViewId(),configCase.getFromAction(), configCase.getFromOutcome(),configCase.getIf(),configCase.getToViewId(), configCase.getRedirect().getViewParams(),true,includeViewParams)); } else { apiCases.add(new NavigationCase(rule.getFromViewId(),configCase.getFromAction(), configCase.getFromOutcome(),configCase.getIf(), configCase.getToViewId(),null,false,false)); } } return apiCases; }
result = new CaseStruct(); result.viewId = toViewId; result.navCase = new NavigationCase(context.getViewRoot().getViewId(), fromAction, outcome, null, toViewId, FlowHandler.NULL_FLOW, null, false, false);
result = new CaseStruct(); result.viewId = toViewId; result.navCase = new NavigationCase(context.getViewRoot().getViewId(), fromAction, outcome,
result = new CaseStruct(); result.viewId = toViewId; result.navCase = new NavigationCase(context.getViewRoot().getViewId(), fromAction, outcome, null, toViewId, FlowHandler.NULL_FLOW, null, false, false);
result = new CaseStruct(); result.viewId = toViewId; result.navCase = new NavigationCase(context.getViewRoot().getViewId(), fromAction, outcome, null, toViewId, FlowHandler.NULL_FLOW, null, false, false);
@Override public NavigationCase getNavigationCase(FacesContext context, String fromAction, String outcome) { if (SpringFacesContext.getCurrentInstance() != null) { PreRenderComponentEvent preRenderComponentEvent = MvcNavigationSystemEventListener .getLastPreRenderComponentEvent(context); UIComponent component = (preRenderComponentEvent == null ? null : preRenderComponentEvent.getComponent()); String defaultDestinationViewId = getDefaultDestinationViewId(context, fromAction, outcome); NavigationContext navigationContext = new NavigationContextImpl(fromAction, outcome, true, component, defaultDestinationViewId); if (this.navigationOutcomeResolver.canResolve(context, navigationContext)) { try { NavigationOutcome navigationOutcome = this.navigationOutcomeResolver.resolve(context, navigationContext); Assert.state(navigationOutcome != null, "Unable to resolve required navigation outcome '" + outcome + "'"); UIViewRoot root = context.getViewRoot(); String fromViewId = (root != null ? root.getViewId() : null); String toViewId = this.destinationAndModelRegistry.put(context, new DestinationAndModel( navigationOutcome, preRenderComponentEvent)); return new NavigationCase(fromViewId, fromAction, outcome, null, toViewId, null, false, false); } catch (Exception e) { throw new FacesException(e); } } } return super.getNavigationCase(context, fromAction, outcome); }