Examples of createConverter()


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

      // if getType returns a type for which we support a default
      // conversion, acquire an appropriate converter instance.

      try {
        Application application = context.getApplication();
        converter = application.createConverter(converterType);
        if (log.isDebugEnabled()) {
          log.debug("Created converter " + converter + "of type "
              + converterType + " while decoding component "
              + component.getId());
        }
View Full Code Here

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

     
    if (_bindingExpr != null)
      converter = (DateTimeConverter) _bindingExpr.getValue(elContext);

    if (converter == null) {
      converter = (DateTimeConverter) app.createConverter(id);

      if (_bindingExpr != null)
        _bindingExpr.setValue(elContext, converter);
    }
View Full Code Here

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

     
    if (_bindingExpr != null)
      converter = (NumberConverter) _bindingExpr.getValue(elContext);

    if (converter == null) {
      converter = (NumberConverter) app.createConverter(id);

      if (_bindingExpr != null)
        _bindingExpr.setValue(elContext, converter);
    }
View Full Code Here

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

      converter = (Converter) _bindingExpr.getValue(elContext);

    if (converter == null) {
      String id = (String) _converterIdExpr.getValue(elContext);

      converter = app.createConverter(id);

      if (_bindingExpr != null)
        _bindingExpr.setValue(elContext, converter);
    }
View Full Code Here

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

    if (converter == null) {
      // setting required default converter
      Application application
          = FacesContext.getCurrentInstance().getApplication();
      DateTimeConverter dateTimeConverter
          = (DateTimeConverter) application.createConverter(CONVERTER_ID);
      dateTimeConverter.setPattern("HH:mm");
      dateTimeConverter.setTimeZone(TimeZone.getDefault());
      setConverter(dateTimeConverter);
    }
    return converter;
View Full Code Here

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

        ValueBinding valueBinding = application.createValueBinding(converterId);
        if (valueHolder instanceof UIComponent) {
          ((UIComponent) valueHolder).setValueBinding(ATTR_CONVERTER, valueBinding);
        }
      } else {
        Converter converter = application.createConverter(converterId);
        valueHolder.setConverter(converter);
      }
    }
  }
View Full Code Here

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

    // if getType returns a type for which we support a default
    // conversion, acquire an appropriate converter instance.
    try
    {
      Application application = context.getApplication();
      return application.createConverter(converterType);
    }
    catch (Exception e)
    {
      return null;
    }
View Full Code Here

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

    // if getType returns a type for which we support a default
    // conversion, acquire an appropriate converter instance.
    try
    {
      Application application = context.getApplication();
      return application.createConverter(converterType);
    }
    catch (Exception e)
    {
      return null;
    }
View Full Code Here

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

    // if getType returns a type for which we support a default
    // conversion, acquire an appropriate converter instance.
    try
    {
      Application application = context.getApplication();
      return application.createConverter(converterType);
    }
    catch (FacesException e)
    {
      _LOG.warning("Tried to create converter for type {0}, but " +
                   "could not, likely because no converter is registered.",
View Full Code Here

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

        if (converterClass == null) {
            return null;
        }
        try {           
            Application application = context.getApplication();
            return (application.createConverter(converterClass));
        } catch (Exception e) {
            return (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.