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");

				@Override
				public String convertToModel(Date value,
						Class<? extends String> targetType, Locale locale)
						throws com.vaadin.data.util.converter.Converter.ConversionException {
					return df.format(value);
				}

				@Override
				public Date convertToPresentation(String value,
						Class<? extends Date> targetType, Locale locale)
						throws com.vaadin.data.util.converter.Converter.ConversionException {
					try {
						return df.parse(value);
					} catch (ParseException e) {
						System.err.println("Error formatting the date");
						e.printStackTrace();
						
					}
					return null;
				}

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

				@Override
				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


com.vaadin.data.util.converter.StringToDateConverter.convertToModel....

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.

Thanks,

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