Examples of createValueBinding()


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

        }

        if (_binding != null)
        {
            Application application = context.getApplication();
            ValueBinding componentBinding = application.createValueBinding(_binding);
            UIComponent component = application.createComponent(componentBinding,
                                                                context,
                                                                componentType);
            component.setId(id);
            component.setValueBinding("binding", componentBinding);
View Full Code Here

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

          if (metaData.getColumnType(i) == Types.INTEGER || metaData.getColumnType(i) == Types.FLOAT) {
            column.setAlign("right");
          }
          column.setLabel(name);
          String ref = "#{" + table.getVar() + "." + name + "}";
          ValueBinding binding = application.createValueBinding(ref);
          if (name.equals("NAME")) {
            UICommand command = (UICommand) application.createComponent(UICommand.COMPONENT_TYPE);
            command.setRendererType("Link");
            command.setValueBinding("label", binding);
            MethodBinding action = application.createMethodBinding("#{test.select}", new Class[0]);
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()

  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()

      return null;
    } else {
      Object value = null;
      Application application = context.getApplication();
      if (application != null) {
        ValueBinding vb = application.createValueBinding(expr);
        if (vb != null) {
          try {
          value = vb.getValue(context);
          } catch (PropertyNotFoundException e) {
            myLogger.error(e);
View Full Code Here

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

      UIComponent component = parentTag.getComponentInstance();

      // First try to access listener binding
      if (binding != null) {
        ValueBinding valueBinding = application
            .createValueBinding(binding);

        try {
          listener = (org.richfaces.event.NodeExpandedListener) valueBinding
              .getValue(context);
View Full Code Here

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

        String className = null;

        if (UIComponentTag.isValueReference(type)) {

          try {
            className = (String) application.createValueBinding(
                type).getValue(context);
          } catch (EvaluationException e) {
            throw new JspException(e);
          }
View Full Code Here

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

      UIComponent component = parentTag.getComponentInstance();

      // First try to access listener binding
      if (binding != null) {
        ValueBinding valueBinding = application
            .createValueBinding(binding);

        try {
          listener = (org.richfaces.event.DropListener) valueBinding
              .getValue(context);
View Full Code Here

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

        String className = null;

        if (UIComponentTag.isValueReference(type)) {

          try {
            className = (String) application.createValueBinding(
                type).getValue(context);
          } catch (EvaluationException e) {
            throw new JspException(e);
          }
View Full Code Here

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

      UIComponent component = parentTag.getComponentInstance();

      // First try to access listener binding
      if (binding != null) {
        ValueBinding valueBinding = application
            .createValueBinding(binding);

        try {
          listener = (org.richfaces.event.DragListener) valueBinding
              .getValue(context);
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.