/** * @see javax.faces.component.UIComponent#getValueBinding(java.lang.String) * @deprecated */ public ValueBinding getValueBinding(String name) { return parent.getValueBinding(name); }
/** * @see javax.faces.component.UIComponent#getValueBinding(java.lang.String) * @deprecated */ @Override public ValueBinding getValueBinding(String name) { return parent.getValueBinding(name); }
/** * @see javax.faces.component.UIComponent#getValueBinding(java.lang.String) * @deprecated */ @Override public ValueBinding getValueBinding(String name) { return parent.getValueBinding(name); }
private boolean copyValueBinding(UIComponent source, UIComponent target, String binding) { ValueBinding valueBinding = source.getValueBinding(binding); if (valueBinding == null) return false; target.setValueBinding(binding, valueBinding); return true; }
private static String getValue(UIComponent uiComponent, String value, String attributeName) { if (value != null) { return value; } ValueBinding vb = uiComponent.getValueBinding(attributeName); return vb != null ? (String) vb.getValue(FacesContext.getCurrentInstance()) : null; }
public static boolean hasValueBindingOrValueExpression(UIComponent component, String name) { if (USE_BINDING) { return component.getValueBinding(name) != null; } else { return FacesUtilsEL.hasValueBindingOrValueExpression(component, name); } }
public static String getClassName(UIComponent uiComponent, String styleClass, String styleClassAsString, String defaultStyleClass) { if (styleClass != null) { return styleClass; } ValueBinding vb = uiComponent.getValueBinding(styleClassAsString); return vb != null ? (String) vb.getValue(FacesContext.getCurrentInstance()) : defaultStyleClass; }
public static Object getBindingValue(UIComponent component, String propertyName) { ValueBinding binding = component.getValueBinding(propertyName); if (binding != null) { FacesContext ctx = FacesContext.getCurrentInstance(); return binding.getValue(ctx); } return null; }
protected Validator getStaticValidator(FacesContext context, UIComponent component, Object value) { ValueBinding vb = component.getValueBinding("value"); if (vb != null) { String expression = vb.getExpressionString(); return ValidatorResource.getValidator(expression); } return null; }
public static Object getValueFromValueBindingOrValueExpression( FacesContext context, UIComponent component, String name) { if (USE_BINDING) { return component.getValueBinding(name).getValue(context); } else { return FacesUtilsEL.getValueFromValueBindingOrValueExpression(context, component, name); } }
public static void setValueOfBindingOrExpression( FacesContext context, Object value, UIComponent component, String bindingName) { if (USE_BINDING) { ValueBinding vb = component.getValueBinding(bindingName); if (vb != null) { vb.setValue(context, value); } } else { FacesUtilsEL.setValueOfBindingOrExpression(context, value, component, bindingName); } }
public static void copyValueBindingOrValueExpression( UIComponent fromComponent, String fromName, UIComponent toComponent, String toName) { if (USE_BINDING) { ValueBinding vb = fromComponent.getValueBinding(fromName); if (vb != null) { toComponent.setValueBinding(toName, vb); } } else { FacesUtilsEL.copyValueBindingOrValueExpression(fromComponent, fromName, toComponent, toName); } }
public static Comparator getBindingOrExpressionComparator( FacesContext facesContext, UIComponent child, String var, boolean descending, Comparator comparator) { if (USE_BINDING) { ValueBinding valueBinding = child.getValueBinding("value"); return new ValueBindingComparator(facesContext, var, valueBinding, descending, comparator); } else { return FacesUtilsEL.getBindingOrExpressionComparator(facesContext, child, var, descending, comparator); } }
public static Object getValueBindingValue(UIComponent component, String bindingName) { ValueBinding vb = component.getValueBinding(bindingName); return (vb != null) ? vb.getValue(component.getFacesContext()) : null; }
public static boolean isReadonlyValueBindingOrValueExpression( FacesContext context, UIComponent component, String name) { if (USE_BINDING) { return component.getValueBinding(name).isReadOnly(context); } else { return FacesUtilsEL.isReadonlyValueBindingOrValueExpression(context, component, name); } }
public static String getExpressionString(UIComponent component, String name) { if (USE_BINDING) { return component.getValueBinding(name).getExpressionString(); } else { return FacesUtilsEL.getExpressionString(component, name); } }
@Override public void decode(FacesContext facesContext, UIComponent uiComponent) { super.decode(facesContext, uiComponent); String scrollPositionParameter = uiComponent.getClientId(facesContext) + SCROLL_POSITION_SUFFIX; String scrollPosition = facesContext.getExternalContext().getRequestParameterMap().get(scrollPositionParameter); if (scrollPosition != null) { ValueBinding vb = uiComponent.getValueBinding("scrollPosition"); if (vb != null) { vb.setValue(facesContext, scrollPosition); } } }
public ValueBinding getValueBinding(String name) { setupPerspective(); ValueBinding retVal = innerGetDelegate().getValueBinding(name); teardownPerspective(); return retVal; }
protected String getCssId( UIComponent metawidget ) { ValueBinding binding = metawidget.getValueBinding( "value" ); if ( binding == null ) { return null; } return StringUtils.camelCase( FacesUtils.unwrapExpression( binding.getExpressionString() ), StringUtils.SEPARATOR_DOT_CHAR ); }
protected String getCssId( UIComponent metawidget ) { ValueBinding binding = metawidget.getValueBinding( "value" ); if ( binding == null ) { return null; } return StringUtils.camelCase( FacesUtils.unwrapExpression( binding.getExpressionString() ), StringUtils.SEPARATOR_DOT_CHAR ); }