protected boolean containsEL(List<String> values) { if (!values.isEmpty()) { // Both MyFaces and Mojarra use ArrayLists. Therefore, index loop can be used. for (int i = 0; i < values.size(); i++) { if (isExpression(values.get(i))) { return true; } } } return false; }
protected List<String> evaluateValueExpressions(FacesContext context, List<String> values) { // note that we have to create a new List here, because if we // change any value on the given List, it will be changed in the // NavigationCase too and the EL expression won't be evaluated again List<String> target = new ArrayList<>(values.size()); for (String value : values) { if (isExpression(value)) { // evaluate the ValueExpression value = context.getApplication().evaluateExpressionGet(context, value, String.class); } target.add(value); } return target; }
protected boolean containsEL(List<String> values) { if (!values.isEmpty()) { // Both MyFaces and Mojarra use ArrayLists. Therefore, index loop can be used. for (int i = 0; i < values.size(); i++) { if (isExpression(values.get(i))) { return true; } } } return false; }
protected List<String> evaluateValueExpressions(FacesContext context, List<String> values) { // note that we have to create a new List here, because if we // change any value on the given List, it will be changed in the // NavigationCase too and the EL expression won't be evaluated again List<String> target = new ArrayList<String>(values.size()); for (String value : values) { if (isExpression(value)) { // evaluate the ValueExpression value = context.getApplication().evaluateExpressionGet(context, value, String.class); } target.add(value); } return target; }