What I need is not what I want in this case.. I want to reuse wicket
components as much as possible. I don't want to reinvent the wheel.

In wicket, there are two separate, Date-specific TextField components:
- org.apache.wicket.extensions.markup.html.form.DateTextField
- org.apache.wicket.datetime.markup.html.form.DateTextField

Both use different DateConverters, to be located at:
- org.apache.wicket.util.convert.converter.DateConverter
- org.apache.wicket.datetime.DateConverter

The components in wicket-datetime are more convenient and powerful, so I'm
gonna use them. The only drawback I see is the spartanic
ConversionException, in which e.g. the dateformat information is missing.
The exception created by wicket-etensions's DateConverter holds that
information. So yes, I guess this is a break.


That also raises a much bigger question: Why is that legacy code (my guess)
in wicket-extensions still there? Why don't consolidate those two? As I see
it, same authors were working on both packages?


2012/11/5 Martin Grigorov <mgrigo...@apache.org>

> Hi,
>
> We follow users@ mailing list too :-)
>
> Since
> 1) DateConverter is not final
> 2) the related methods in it are public, non-final
> 3) it is possible to register custom converter for Date.class in
> ConverterLocator
>
> I think you should be able to do what you need.
> Are there any breaks ?
>
> On Sun, Nov 4, 2012 at 1:59 PM, Simon B <simon.bott...@gmail.com> wrote:
> > Hi Benedikt
> >
> > Should this be posted on the "Forum for Wicket Core developers" forum?
> >
> > Simon
> >
> >
> >
> > --
> > View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/format-value-missing-in-ConversionException-thrown-by-wicket-datetime-s-DateConverter-tp4653598p4653603.html
> > Sent from the Users forum mailing list archive at Nabble.com.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to