public String getExpressionString() { assert(null != binding); return binding.getExpressionString(); }
public String getExpressionString() { assert(null != binding); return binding.getExpressionString(); }
public String getExpressionString() { assert(null != binding); return binding.getExpressionString(); }
public String getExpressionString() { assert (null != binding); return binding.getExpressionString(); }
public int compare(Object o1, Object o2) { ValueBinding vb1 = (ValueBinding) o1; ValueBinding vb2 = (ValueBinding) o2; return vb1.getExpressionString().compareTo(vb2.getExpressionString()); } }
public static String extractBeanName(ValueBinding vb) { String valueBinding = vb.getExpressionString(); return valueBinding.substring(2, valueBinding.length()-1); }
@Override public String getExpressionString() { return getNotNullValueBinding().getExpressionString(); }
protected String toSource(Object value) { if (value instanceof ValueBinding) return ((ValueBinding)value).getExpressionString(); return super.toSource(value); }
@Override public String getExpressionString() { return getNotNullValueBinding().getExpressionString(); }
@Override public String getExpressionString() { return getNotNullValueBinding().getExpressionString(); }
public String getAsText() { Object value = getValue(); if (value instanceof ValueBinding) { return ((ValueBinding)value).getExpressionString(); } else if (facesDesignProperty != null && facesDesignProperty.isBound()) { return facesDesignProperty.getValueBinding().getExpressionString(); } return value != null ? value.toString() : ""; //NOI18N }
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 String getExpressionString(UIComponent component, String name) { if (USE_BINDING) { return component.getValueBinding(name).getExpressionString(); } else { return FacesUtilsEL.getExpressionString(component, name); } }
@Override protected UIComponent getPopup(ActionEvent actionEvent) { String id = (String) popupIdBinding.getValue(FacesContext.getCurrentInstance()); UIComponent popup = FindComponentUtils.findComponent(actionEvent.getComponent(), id); if (popup == null) { LOG.error("Found no popup for \"" + popupIdBinding.getExpressionString() + "\" := \"" + id + "\"! Search base componentId : " + actionEvent.getComponent().getClientId(FacesContext.getCurrentInstance())); } return popup; }
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 ); }
public static void elevateBean(FacesContext context, String conversationName, ValueBinding valueBinding) { Conversation conversation = ConversationManager.getInstance().getConversation(conversationName); if (conversation == null) { log.debug("no conversation named '" + conversationName + "' running - can't elevate bean '" + valueBinding.getExpressionString()); return; } ConversationManager.getInstance().getConversationBeanElevator().elevateBean(context, conversation, valueBinding); } }
void fill(String content, FacesContext facesContext){ ValueBinding intoVB; if (getLocalInto() == null) { intoVB = getValueBinding("into"); setInto(intoVB.getExpressionString()); } else { intoVB = facesContext.getApplication().createValueBinding( getLocalInto() ); } intoVB.setValue(facesContext, content); }
/** * If the selector component for the bean specified is bound to a converter, * returns the design bean for the converter. Otherwise returns null. */ protected static DesignBean getConverterBean(DesignBean designBean) { FacesDesignContext context = (FacesDesignContext) designBean.getDesignContext(); FacesDesignProperty converterProperty = (FacesDesignProperty) designBean.getProperty(CONVERTER); if (converterProperty == null || !converterProperty.isBound()) return null; String expression = converterProperty.getValueBinding().getExpressionString(); return getConverterBean(context, expression); }
/** * If the selector component for the bean specified is bound to an options * list, returns the design bean for the options list. Otherwise returns * null. */ protected static DesignBean getOptionsListBean(DesignBean selectorBean) { FacesDesignContext context = (FacesDesignContext) selectorBean.getDesignContext(); FacesDesignProperty itemsProperty = (FacesDesignProperty) selectorBean.getProperty(ITEMS); if (itemsProperty == null || !itemsProperty.isBound()) return null; String expression = itemsProperty.getValueBinding().getExpressionString(); return getOptionsListBean(context, expression); }