Examples of createValueBinding()


Examples of javax.faces.application.Application.createValueBinding()

      ApplicationFactory factory = (ApplicationFactory)
        FactoryFinder.getFactory(FactoryFinder.APPLICATION_FACTORY);
      Application application = factory.getApplication();
      try
      {
        _binding = application.createValueBinding(_expression);
      }
      catch (ReferenceSyntaxException rse)
      {
        _LOG.warning(rse);
      }
View Full Code Here

Examples of javax.faces.application.Application.createValueBinding()

  public static ValueBinding getValueBinding(String valueBindingExpression)
  {
    FacesContext context = FacesContext.getCurrentInstance();
    Application app = context.getApplication();
    ValueBinding vb = app.createValueBinding(valueBindingExpression);
    return vb;
  }

  public static void assertNotNull(Object object)
  {
View Full Code Here

Examples of javax.faces.application.Application.createValueBinding()

        String from = _from;
        if (parentELContext != null)
          from = parentELContext.transformExpression(from);

        listener.setValueBinding(SetActionListener.FROM_KEY,
                                 application.createValueBinding(from));
      }
      else
      {
        listener.setFrom(_from);
      }
View Full Code Here

Examples of javax.faces.application.Application.createValueBinding()

        String to = _to;
        if (parentELContext != null)
          to = parentELContext.transformExpression(to);

        listener.setValueBinding(SetActionListener.TO_KEY,
                                 application.createValueBinding(to));
      }
      else
      {
        throw new JspException("setActionListener's 'to' attribute must " +
                               "be an EL expression.");
View Full Code Here

Examples of javax.faces.application.Application.createValueBinding()

      {
        if (parentELContext != null)
          value = parentELContext.transformExpression(value);

        listener.setValueBinding(ReturnActionListener.VALUE_KEY,
                                 application.createValueBinding(value));
      }
      else
      {
        listener.setValue(value);
      }
View Full Code Here

Examples of javax.faces.application.Application.createValueBinding()

            MapEntry entry = (MapEntry) iterator.next();
            Object key = entry.getKey();

            if (UIComponentTag.isValueReference((String) key))
            {
                valueBinding = application.createValueBinding((String) key);
                key = valueBinding.getValue(facesContext);
            }

            if (entry.isNullValue())
            {
View Full Code Here

Examples of javax.faces.application.Application.createValueBinding()

            else
            {
                Object value = entry.getValue();
                if (UIComponentTag.isValueReference((String) value))
                {
                    valueBinding = application.createValueBinding((String) value);
                    value = valueBinding.getValue(facesContext);
                }
                map.put(ClassUtils.convertToType(key, keyClass), ClassUtils.convertToType(value, valueClass));
            }
        }
View Full Code Here

Examples of javax.faces.application.Application.createValueBinding()

            else
            {
                Object value = entry.getValue();
                if (UIComponentTag.isValueReference((String) value))
                {
                    valueBinding = application.createValueBinding((String) value);
                    value = valueBinding.getValue(facesContext);
                }
                list.add(ClassUtils.convertToType(value, valueClass));
            }
        }
View Full Code Here

Examples of javax.faces.application.Application.createValueBinding()

  public static void setConverterProperty(UIComponent component, String name, String value) {
    if (value != null && component instanceof ValueHolder) {
      final FacesContext facesContext = FacesContext.getCurrentInstance();
      final Application application = facesContext.getApplication();
      if (UIComponentTag.isValueReference(value)) {
        ValueBinding valueBinding = application.createValueBinding(value);
        component.setValueBinding(name, valueBinding);
      } else {
        Converter converter = application.createConverter(value);
        ((ValueHolder) component).setConverter(converter);
      }
View Full Code Here

Examples of javax.faces.application.Application.createValueBinding()

   * to save memory without the knowledge of the scope.
   * Also useful to enforce a new creation of a managed-bean.
   */
  public static void clearVariable(FacesContext context, String variable) {
    Application application = context.getApplication();
    ValueBinding valueBinding = application.createValueBinding("#{" + variable + "}");
    valueBinding.setValue(context, null);
  }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.