src/org/tiefaces/components/websheet/service/DateTimeCustomConverter.java
@Override
	public final String getAsString(final FacesContext context,
			final UIComponent component, final Object value) {
		if (value == null) {
			return "";
		}
		if (value instanceof String) {
			return (String) value;
		}
		if (context == null || component == null) {
			throw new NullPointerException();
		}

		try {
			String pattern = (String) component.getAttributes()
					.get(TieConstants.WIDGET_ATTR_PATTERN);
			SimpleDateFormat dateFormat = new SimpleDateFormat(pattern,
					getLocale(context, component));
			return dateFormat.format(value);

		} catch (Exception e) {
			throw new ConverterException(e);
		}
	}
@Override
	public final String getAsString(final FacesContext context,
			final UIComponent component, final Object value) {
		if (value == null) {
			return "";
		}
		if (value instanceof String) {
			return (String) value;
		}
		if (context == null || component == null) {
			throw new NullPointerException();
		}

		try {
			String pattern = (String) component.getAttributes()
					.get(TieConstants.WIDGET_ATTR_PATTERN);
			SimpleDateFormat dateFormat = new SimpleDateFormat(pattern,
					getLocale(context, component));
			return dateFormat.format(value);

		} catch (Exception e) {
			throw new ConverterException(e);
		}
	}
/*
(non-Javadoc)

@see javax.faces.convert.Converter#getAsString(javax.faces.context.
FacesContext , javax.faces.component.UIComponent, java.lang.Object)