private Map<String, Object> doBeforeEnterFlow(FacesContext context, Flow flow, FlowCallNode outboundCallNode) { Map<String, Object> outboundParameters = null; if (outboundCallNode != null && !outboundCallNode.getOutboundParameters().isEmpty()) { outboundParameters = new HashMap<String, Object>(); for (Map.Entry<String, Parameter> entry : outboundCallNode.getOutboundParameters().entrySet()) { Parameter parameter = entry.getValue(); if (parameter.getValue() != null) { outboundParameters.put(entry.getKey(), parameter.getValue().getValue(context.getELContext())); } } } return outboundParameters; }
private void assignInboundParameters(FacesContext context, Flow calledFlow, Map<String, Object> evaluatedParams) { // Now the new flow is active, it's time to evaluate the inbound // parameters. if (null != evaluatedParams) { Map<String, Parameter> inboundParameters = calledFlow.getInboundParameters(); ELContext elContext = context.getELContext(); String curName; ValueExpression toSet; for (Map.Entry<String, Object> curOutbound : evaluatedParams.entrySet()) { curName = curOutbound.getKey(); assert(inboundParameters.containsKey(curName)); toSet = inboundParameters.get(curName).getValue(); toSet.setValue(elContext, curOutbound.getValue()); } } }
private void assignInboundParameters(FacesContext context, Flow calledFlow, Map<String, Object> evaluatedParams) { // Now the new flow is active, it's time to evaluate the inbound // parameters. if (null != evaluatedParams) { Map<String, Parameter> inboundParameters = calledFlow.getInboundParameters(); ELContext elContext = context.getELContext(); String curName; ValueExpression toSet; for (Map.Entry<String, Object> curOutbound : evaluatedParams.entrySet()) { curName = curOutbound.getKey(); assert(inboundParameters.containsKey(curName)); toSet = inboundParameters.get(curName).getValue(); toSet.setValue(elContext, curOutbound.getValue()); } } }
private void assignInboundParameters(FacesContext context, Flow calledFlow, Map<String, Object> evaluatedParams) { // Now the new flow is active, it's time to evaluate the inbound // parameters. if (null != evaluatedParams) { Map<String, Parameter> inboundParameters = calledFlow.getInboundParameters(); ELContext elContext = context.getELContext(); String curName; ValueExpression toSet; for (Map.Entry<String, Object> curOutbound : evaluatedParams.entrySet()) { curName = curOutbound.getKey(); assert(inboundParameters.containsKey(curName)); toSet = inboundParameters.get(curName).getValue(); toSet.setValue(elContext, curOutbound.getValue()); } } }
private void assignInboundParameters(FacesContext context, Flow calledFlow, Map<String, Object> evaluatedParams) { // Now the new flow is active, it's time to evaluate the inbound // parameters. if (null != evaluatedParams) { Map<String, Parameter> inboundParameters = calledFlow.getInboundParameters(); ELContext elContext = context.getELContext(); String curName; ValueExpression toSet; for (Map.Entry<String, Object> curOutbound : evaluatedParams.entrySet()) { curName = curOutbound.getKey(); assert(inboundParameters.containsKey(curName)); toSet = inboundParameters.get(curName).getValue(); toSet.setValue(elContext, curOutbound.getValue()); } } }
private void doAfterEnterFlow(FacesContext context, Flow flow, Map<String, Object> outboundParameters) { getFacesFlowProvider(context).doAfterEnterFlow(context, flow); if (outboundParameters != null) { for (Map.Entry<String, Parameter> entry : flow.getInboundParameters().entrySet()) { Parameter parameter = entry.getValue(); if (parameter.getValue() != null && outboundParameters.containsKey(entry.getKey())) { parameter.getValue().setValue(context.getELContext(), outboundParameters.get(entry.getKey())); } } } if (flow.getInitializer() != null) { flow.getInitializer().invoke(context.getELContext(), null); } }
evaluatedParams.put(curName, curOutbound.getValue().getValue().getValue(elContext));
evaluatedParams.put(curName, curOutbound.getValue().getValue().getValue(elContext));
evaluatedParams.put(curName, curOutbound.getValue().getValue().getValue(elContext));
evaluatedParams.put(curName, curOutbound.getValue().getValue().getValue(elContext));
parameters[i] = param.getValue().getValue(facesContext.getELContext()); clazzes[i] = param.getName() != null ? ClassUtils.simpleJavaTypeToClass(param.getName()) :
ELContext elContext = context.getELContext(); for (Parameter cur : paramList) { params[i++] = cur.getValue().getValue(elContext);
ELContext elContext = context.getELContext(); for (Parameter cur : paramList) { params[i++] = cur.getValue().getValue(elContext);
ELContext elContext = context.getELContext(); for (Parameter cur : paramList) { params[i++] = cur.getValue().getValue(elContext);
ELContext elContext = context.getELContext(); for (Parameter cur : paramList) { params[i++] = cur.getValue().getValue(elContext);