The DateTextField class reads like

        Class DateTextField {
                private IConverter converter = null;


                public DateTextField(String id, IModel model, String
datePattern)
                {
                        super(id, model, Date.class);
                        this.datePattern = datePattern;
                        this.converter = new SqlDateConverter() {....};
                }

                public IConverter getConverter(Class type)
                {
                        if (converter == null)
                        {
                                return super.getConverter(type);
                        }
                        else
                        {
                                return converter;
                        }
                }
        }

So it never uses my own Dateconverter since the local veriable
"converter" is always "not null". Of cource, I can override the
getConverter method but that seems not to be the optimal way when I
already registered my own DateConverter in my Application class. What do
think about this?

Stefan


Reply via email to