Package javax.faces.application

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


  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

      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

      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

        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

      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

        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

      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

        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

      UIComponent component = parentTag.getComponentInstance();

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

        try {
          listener = (org.richfaces.event.NodeSelectedListener) 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.