Try it.

The problem is that getConverter(Class) is defined in Component which
has no type parametrization.
FormComponent extends Component and has the type but cannot break the
signature...

On Mon, Aug 15, 2011 at 3:33 PM, Fabio Cechinel Veronez
<[email protected]> wrote:
> heheh ... well, in my opinion the best solution is to change
> definition of Component.getConverter in way its generic type is bound
> to FormComponent's T generic type ...
>
> Is there any change to have it changed?
>
> On Mon, Aug 15, 2011 at 9:24 AM, Martin Grigorov <[email protected]> wrote:
>> If you find better solution please send it back to us :-)
>>
>> On Mon, Aug 15, 2011 at 3:14 PM, Fabio Cechinel Veronez
>> <[email protected]> wrote:
>>> Hello Martin, thanks for you prompt response..
>>>
>>> I had saw that solution but it uses an "unchecked" cast that was
>>> exactly what I was trying to avoid.
>>>
>>> I guess generics were introduced just to avoid those types of casts.
>>>
>>>
>>> On Mon, Aug 15, 2011 at 9:04 AM, Martin Grigorov <[email protected]> 
>>> wrote:
>>>> See how we do it at:
>>>> http://svn.apache.org/viewvc/wicket/trunk/wicket-datetime/src/main/java/org/apache/wicket/datetime/markup/html/form/DateTextField.java?view=markup
>>>>
>>>> On Mon, Aug 15, 2011 at 2:57 PM, Fabio Cechinel Veronez
>>>> <[email protected]> wrote:
>>>>> Hello everybody,
>>>>>
>>>>> I'm using wicket 1.5-RC5.1 and I'm having problem to override
>>>>> getConverter method of in a FormCompont subclass.
>>>>>
>>>>> Well, lets say I have a TextField<Date> (I'm using j.u.Date here just
>>>>> as example, could be any type) when I try to to provide a specific
>>>>> converter for my instance I
>>>>>
>>>>> --
>>>>> Fabio Cechinel Veronez
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: [email protected]
>>>>> For additional commands, e-mail: [email protected]
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Martin Grigorov
>>>> jWeekend
>>>> Training, Consulting, Development
>>>> http://jWeekend.com
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: [email protected]
>>>> For additional commands, e-mail: [email protected]
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> Fabio Cechinel Veronez
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [email protected]
>>> For additional commands, e-mail: [email protected]
>>>
>>>
>>
>>
>>
>> --
>> Martin Grigorov
>> jWeekend
>> Training, Consulting, Development
>> http://jWeekend.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>
>
>
> --
> Fabio Cechinel Veronez
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to