alternatively you can let your testmodel implement
IObjectClassAwareModel and return the type of object that the model
contains so that wicket can do the conversion automatically. this is
why you dont need to do this explicitly when using propertymodels
directly.

-igor

On Wed, Dec 30, 2009 at 1:01 PM, Igor Vaynberg <igor.vaynb...@gmail.com> wrote:
> you have to tell wicket that it should convert the string into an
> integer by either calling settype(integer.class) on the textfield or
> using the constructor that takes the class type arg
>
> -igor
>
> On Wed, Dec 30, 2009 at 12:52 PM, Josh Glassman <josh...@gmail.com> wrote:
>> Hi all,
>>
>> I am having a problem with Ajax updates from a
>> RequiredTextField<Integer>.  I get a ClassCastException when the model
>> object is updated, because the convertedInput value is a String.  I am
>> using a custom model, and I suspect I am missing something here
>> because it works if a PropertyModel is used.  Unfortunately that is
>> not sufficient for my needs.  I have attached a quickstart which
>> replicates the problem using a custom model around the Calendar class.
>>  If anyone has an idea of what I need to do, please let me know.
>>
>> Thanks in advance,
>> Josh
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to