Hi,

On Sun, Nov 27, 2011 at 3:52 PM, kamiseq <kami...@gmail.com> wrote:
> well yeah this is exactly the same except for locator.
>
> code like this
> public final <C> IConverter<C> getConverter(Class<C> clazz)
> {
>    if (Date.class.isAssignableFrom(clazz))
>    {
>        return (IConverter<C>)converter;
>    }
>    else
>    {
>    return super.getConverter(clazz);
>    }
> }
> should always ring bells that something is wrong.

Care to explain what exactly is wrong ?

>
> anyway I think that type checking should be done while registering the
> converter and not while getting it.
>
> pozdrawiam
> Paweł Kamiński
>
> kami...@gmail.com
> pkaminski....@gmail.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