Map<String, String> requestParams = context.getExternalContext().getRequestParameterMap(); NavigationCase navCase = getNavigationCase(context, fromAction, dialogOutcome); String toViewId = navCase.getToViewId(context); Map<String, Object> options = (Map<String, Object>) attrs.get(Constants.DIALOG_FRAMEWORK.OPTIONS); Map<String, List<String>> params = (Map<String, List<String>>) attrs.get(Constants.DIALOG_FRAMEWORK.PARAMS);
String toViewId = navCase.getToViewId(context); boolean isIncludeViewParams = isIncludeViewParams(outcomeTarget, navCase); Map<String, List<String>> params = getParams(context, navCase, outcomeTarget);
/** * To look for the Flow or Node by the id, the '/' in the id got from navCase should be trimmed. * * @param ctx the {@link FacesContext} for the current request * @param caseStruct the {@link CaseStruct} to look for the to view id * @return id of possible Node or Flow without '/' in the string */ private String convertToViewIdToFlowOrNodeId(FacesContext ctx, CaseStruct caseStruct) { String viewId = caseStruct.navCase.getToViewId(ctx); return viewId.substring(viewId.lastIndexOf('/')+1); }
/** * To look for the Flow or Node by the id, the '/' in the id got from navCase should be trimmed. * * @param ctx the {@link FacesContext} for the current request * @param caseStruct the {@link CaseStruct} to look for the to view id * @return id of possible Node or Flow without '/' in the string */ private String convertToViewIdToFlowOrNodeId(FacesContext ctx, CaseStruct caseStruct) { String viewId = caseStruct.navCase.getToViewId(ctx); return viewId.substring(viewId.lastIndexOf('/') + 1); }
/** * To look for the Flow or Node by the id, the '/' in the id got from navCase should be trimmed. * * @param ctx the {@link FacesContext} for the current request * @param caseStruct the {@link CaseStruct} to look for the to view id * @return id of possible Node or Flow without '/' in the string */ private String convertToViewIdToFlowOrNodeId(FacesContext ctx, CaseStruct caseStruct) { String viewId = caseStruct.navCase.getToViewId(ctx); return viewId.substring(viewId.lastIndexOf('/') + 1); }
/** * To look for the Flow or Node by the id, the '/' in the id got from navCase should be trimmed. * * @param ctx the {@link FacesContext} for the current request * @param caseStruct the {@link CaseStruct} to look for the to view id * @return id of possible Node or Flow without '/' in the string */ private String convertToViewIdToFlowOrNodeId(FacesContext ctx, CaseStruct caseStruct) { String viewId = caseStruct.navCase.getToViewId(ctx); return viewId.substring(viewId.lastIndexOf('/') + 1); }
/** * 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); }
/** * 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); }
@Override public String getToViewId(FacesContext context) { return getWrapped().getToViewId(context); }
/** * 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); }
@Override public String getToViewId(FacesContext context) { return getWrapped().getToViewId(context); }
public String getToViewId(FacesContext context) { return getWrapped().getToViewId(context); }
@Override public String getToViewId(FacesContext context) { return getWrapped().getToViewId(context); }
@Override public String getToViewId(FacesContext context) { return getWrapped().getToViewId(context); }
@Override public Map<String, List<String>> getParameters() { if (parameters == null) { parameters = super.getParameters(); if (parameters == null) { FacesContext facesContext = FacesContext.getCurrentInstance(); parameters = URLUtil.parseParameterMapValuesList(wrappedNavigationCase.getToViewId(facesContext)); } } return parameters; }
@Override public Map<String, List<String>> getParameters() { if (parameters == null) { parameters = super.getParameters(); if (parameters == null) { FacesContext facesContext = FacesContext.getCurrentInstance(); parameters = URLUtil.parseParameterMapValuesList(wrappedNavigationCase.getToViewId(facesContext)); } } return parameters; }
public URL getActionURL(FacesContext context) throws MalformedURLException { ExternalContext externalContext = context.getExternalContext(); return new URL(externalContext.getRequestScheme(), externalContext.getRequestServerName(), externalContext.getRequestServerPort(), context.getApplication().getViewHandler().getActionURL(context, getToViewId(context))); }
public URL getResourceURL(FacesContext context) throws MalformedURLException { ExternalContext externalContext = context.getExternalContext(); return new URL(externalContext.getRequestScheme(), externalContext.getRequestServerName(), externalContext.getRequestServerPort(), context.getApplication().getViewHandler().getResourceURL(context, getToViewId(context))); }
public URL getBookmarkableURL(FacesContext context) throws MalformedURLException { ExternalContext externalContext = context.getExternalContext(); return new URL(externalContext.getRequestScheme(), externalContext.getRequestServerName(), externalContext.getRequestServerPort(), context.getApplication().getViewHandler().getBookmarkableURL(context, getToViewId(context), _NavigationUtils.getEvaluatedNavigationParameters(context, getParameters()), isIncludeViewParams())); }
public URL getRedirectURL(FacesContext context) throws MalformedURLException { ExternalContext externalContext = context.getExternalContext(); return new URL(externalContext.getRequestScheme(), externalContext.getRequestServerName(), externalContext.getRequestServerPort(), context.getApplication().getViewHandler().getRedirectURL(context, getToViewId(context), _NavigationUtils.getEvaluatedNavigationParameters(context, getParameters()), isIncludeViewParams())); }