setConverter not working with PopupDateField.

I have a PopupDateField which I am trying to bind in vaadin 7. In the model it is a string. In the presentation it takes a Date object. Therefore I have created a Converter for it:

			failDate.setConverter(new Converter<Date, String>(){

				private static final long serialVersionUID = 1L;
				SimpleDateFormat df = new SimpleDateFormat("MM/dd/yyyy");

				public String convertToModel(Date value,
						Class<? extends String> targetType, Locale locale)
						throws {
					return df.format(value);

				public Date convertToPresentation(String value,
						Class<? extends Date> targetType, Locale locale)
						throws {
					try {
						return df.parse(value);
					} catch (ParseException e) {
						System.err.println("Error formatting the date");
					return null;

				public Class<String> getModelType() {
					return String.class;

				public Class<Date> getPresentationType() {

					return Date.class;
			fieldBinder.bind(failDate, "warrantyInfo.failDate");

However, I am gettting an error sayiing it cannot convert ‘09/19/2013’ to java.util.Date.
Also in the log it is referencing

Why is it using a different converter when I have created an annonymous implementation of the one I want it to use to convert?

Any response is appreciated.


Because the bind method overrides your settings, most likely. Try setting the converter after you have bound the property.