Both TimestampConverter and DateConverter are left over from Struts 1.x in
AppFuse 1.x. I'm not entirely sure we need those anymore.

Matt

On Tue, Apr 7, 2009 at 4:29 AM, tibi <t...@dds.nl> wrote:

> hi list,
>
> I'm looking at the TimestampConverter.
> as i understand the converters it works like this:
> the convert method is called by struts:
>
> public Object convert(final Class type, final Object value) {
>
> When i look at the dateConverter i see the convert method.
> and this method delegates its work to two sub methods:
>    protected Object convertToDate(final Class<?> type, final Object
> value, final String pattern);
>     protected Object convertToString(final Object value);
>
> The TimestampConverter extends the dateConverter. not implementing the
> convert method it will use that one.
> but here is my problem:
> there are two methods one of them beeing:
>    protected Object convertToDate(final Class<?> type, final Object value);
> i would expect this method to overwrite the one from the date. wich it
> will not.
> so what is the use of this method?
> and on close inspection i see that the DateConverter already takes care
> of the Timestamp conversion...
>
> my suggestsion is make the timestampConverter totaly empty. so its only
> there so struts will pick it.
> or extend teh dateConverter and overwrite the methods and remove all
> teimstamp stuff.
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>
>

Reply via email to