@SuppressWarnings("unchecked") private Collection<String> getCollectionValue(String propertyName, Collection<String> collection) { if (collection!= null) { return collection; } Collection<String> result = null; ValueExpression expression = getValueExpression(propertyName); if (expression != null) { FacesContext ctx = FacesContext.getCurrentInstance(); Object value = expression.getValue(ctx.getELContext()); if (value != null) { if (value instanceof Collection) { // Unchecked cast to Collection<String> return (Collection<String>)value; } result = toList(propertyName, expression, value); } } return result == null ? Collections.<String>emptyList() : result; }
private void setLiteralValue(String propertyName, ValueExpression expression) { assert(expression.isLiteralText()); Object value; ELContext context = FacesContext.getCurrentInstance().getELContext(); try { value = expression.getValue(context); } catch (ELException ele) { throw new FacesException(ele); } if (ONEVENT.equals(propertyName)) { onevent = (String)value; } else if (ONERROR.equals(propertyName)) { onerror = (String)value; } else if (IMMEDIATE.equals(propertyName)) { immediate = (Boolean)value; } else if (DISABLED.equals(propertyName)) { disabled = (Boolean)value; } else if (EXECUTE.equals(propertyName)) { execute = toList(propertyName, expression, value); } else if (RENDER.equals(propertyName)) { render = toList(propertyName, expression, value); } }
private void setLiteralValue(String propertyName, ValueExpression expression) { assert(expression.isLiteralText()); Object value; ELContext context = FacesContext.getCurrentInstance().getELContext(); try { value = expression.getValue(context); } catch (ELException ele) { throw new FacesException(ele); } if (ONEVENT.equals(propertyName)) { onevent = (String)value; } else if (DELAY.equals(propertyName)) { delay = (String)value; } else if (ONERROR.equals(propertyName)) { onerror = (String)value; } else if (IMMEDIATE.equals(propertyName)) { immediate = (Boolean)value; } else if (RESET_VALUES.equals(propertyName)) { resetValues = (Boolean)value; } else if (DISABLED.equals(propertyName)) { disabled = (Boolean)value; } else if (EXECUTE.equals(propertyName)) { execute = toList(propertyName, expression, value); } else if (RENDER.equals(propertyName)) { render = toList(propertyName, expression, value); } }
@SuppressWarnings("unchecked") private Collection<String> getCollectionValue(String propertyName, Collection<String> collection) { if (collection!= null) { return collection; } Collection<String> result = null; ValueExpression expression = getValueExpression(propertyName); if (expression != null) { FacesContext ctx = FacesContext.getCurrentInstance(); Object value = expression.getValue(ctx.getELContext()); if (value != null) { if (value instanceof Collection) { // Unchecked cast to Collection<String> return (Collection<String>)value; } result = toList(propertyName, expression, value); } } return result == null ? Collections.<String>emptyList() : result; }
@SuppressWarnings("unchecked") private Collection<String> getCollectionValue(String propertyName, Collection<String> collection) { if (collection!= null) { return collection; } Collection<String> result = null; ValueExpression expression = getValueExpression(propertyName); if (expression != null) { FacesContext ctx = FacesContext.getCurrentInstance(); Object value = expression.getValue(ctx.getELContext()); if (value != null) { if (value instanceof Collection) { // Unchecked cast to Collection<String> return (Collection<String>)value; } result = toList(propertyName, expression, value); } } return result == null ? Collections.<String>emptyList() : result; }
@SuppressWarnings("unchecked") private Collection<String> getCollectionValue(String propertyName, Collection<String> collection) { if (collection!= null) { return collection; } Collection<String> result = null; ValueExpression expression = getValueExpression(propertyName); if (expression != null) { FacesContext ctx = FacesContext.getCurrentInstance(); Object value = expression.getValue(ctx.getELContext()); if (value != null) { if (value instanceof Collection) { // Unchecked cast to Collection<String> return (Collection<String>)value; } result = toList(propertyName, expression, value); } } return result == null ? Collections.<String>emptyList() : result; }
@SuppressWarnings("unchecked") private Collection<String> getCollectionValue(String propertyName, Collection<String> collection) { if (collection!= null) { return collection; } Collection<String> result = null; ValueExpression expression = getValueExpression(propertyName); if (expression != null) { FacesContext ctx = FacesContext.getCurrentInstance(); Object value = expression.getValue(ctx.getELContext()); if (value != null) { if (value instanceof Collection) { // Unchecked cast to Collection<String> return (Collection<String>)value; } result = toList(propertyName, expression, value); } } return result == null ? Collections.<String>emptyList() : result; }
@SuppressWarnings("unchecked") private Collection<String> getCollectionValue(String propertyName, Collection<String> collection) { if (collection!= null) { return collection; } Collection<String> result = null; ValueExpression expression = getValueExpression(propertyName); if (expression != null) { FacesContext ctx = FacesContext.getCurrentInstance(); Object value = expression.getValue(ctx.getELContext()); if (value != null) { if (value instanceof Collection) { // Unchecked cast to Collection<String> return (Collection<String>)value; } result = toList(propertyName, expression, value); } } return result == null ? Collections.<String>emptyList() : result; }
@SuppressWarnings("unchecked") private Collection<String> getCollectionValue(String propertyName, Collection<String> collection) { if (collection!= null) { return collection; } Collection<String> result = null; ValueExpression expression = getValueExpression(propertyName); if (expression != null) { FacesContext ctx = FacesContext.getCurrentInstance(); Object value = expression.getValue(ctx.getELContext()); if (value != null) { if (value instanceof Collection) { // Unchecked cast to Collection<String> return (Collection<String>)value; } result = toList(propertyName, expression, value); } } return result == null ? Collections.<String>emptyList() : result; }
@SuppressWarnings("unchecked") private Collection<String> getCollectionValue(String propertyName, Collection<String> collection) { if (collection!= null) { return collection; } Collection<String> result = null; ValueExpression expression = getValueExpression(propertyName); if (expression != null) { FacesContext ctx = FacesContext.getCurrentInstance(); Object value = expression.getValue(ctx.getELContext()); if (value != null) { if (value instanceof Collection) { // Unchecked cast to Collection<String> return (Collection<String>)value; } result = toList(propertyName, expression, value); } } return result == null ? Collections.<String>emptyList() : result; }
@SuppressWarnings("unchecked") private Collection<String> getCollectionValue(String propertyName, Collection<String> collection) { if (collection!= null) { return collection; } Collection<String> result = null; ValueExpression expression = getValueExpression(propertyName); if (expression != null) { FacesContext ctx = FacesContext.getCurrentInstance(); Object value = expression.getValue(ctx.getELContext()); if (value != null) { if (value instanceof Collection) { // Unchecked cast to Collection<String> return (Collection<String>)value; } result = toList(propertyName, expression, value); } } return result == null ? Collections.<String>emptyList() : result; }