Package javax.faces.application

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


        {
            ValueBinding vb = facesContext.getApplication().createValueBinding(_converterId);
            return application.createConverter((String)vb.getValue(facesContext));
        }

        return application.createConverter(_converterId);

    }

    /**
     * @throws JspException 
View Full Code Here


    // 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

    // 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

                {
                    al.setValue(_value);
                }
                if (_converter != null)
                {
                    Converter converter = application.createConverter(_converter);
                    al.setConverter(converter);
                }
                ((ActionSource)component).addActionListener(al);
            }
            else
View Full Code Here

        FacesContext facesContext = FacesContext.getCurrentInstance();
        Application application = facesContext.getApplication();
        if (UIComponentTag.isValueReference(_converterId))
        {
            ValueBinding vb = facesContext.getApplication().createValueBinding(_converterId);
            return application.createConverter((String)vb.getValue(facesContext));
        }
        else
        {
            return application.createConverter(_converterId);
        }
View Full Code Here

            ValueBinding vb = facesContext.getApplication().createValueBinding(_converterId);
            return application.createConverter((String)vb.getValue(facesContext));
        }
        else
        {
            return application.createConverter(_converterId);
        }
    }

}
View Full Code Here

  @Override
  protected Converter createConverter() throws JspException
  {
    String converterId = DateTimeConverter.CONVERTER_ID;
    Application appl = FacesContext.getCurrentInstance().getApplication();
    DateTimeConverter converter = (DateTimeConverter)appl.createConverter(converterId);
    _setProperties(converter);
    return converter;
  }

  private void _setProperties(
View Full Code Here

  @Override
  protected Converter createConverter() throws JspException
  {
    String converterId = NumberConverter.CONVERTER_ID;
    Application appl = FacesContext.getCurrentInstance().getApplication();
    NumberConverter converter = (NumberConverter)appl.createConverter(converterId);
    _setProperties(converter);
    return converter;
  }

  private void _setProperties(
View Full Code Here

  @Override
  protected Converter createConverter() throws JspException
  {
    String converterId = ColorConverter.CONVERTER_ID;
    Application appl = FacesContext.getCurrentInstance().getApplication();
    ColorConverter converter = (ColorConverter)appl.createConverter(converterId);
    _setProperties(converter);
    return converter;
  }

  private void _setProperties(
View Full Code Here

        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

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.