textfield.settype(Long.class)

-igor

On Tue, Apr 7, 2009 at 4:15 PM, David Brown
<[email protected]> wrote:
> Hello Wicket dev, gurus and mortals, I was successfully using Wicket to build 
> the UI for my new web-app gig. I have studied the javadoc: 
> org.apache.wicket.markup.html.form, org.apache.wicket.MarkupContainer and 
> others until bleary-eyed. The web-page I am using will display correctly the 
> values for Long and Integer in a HTML text input dialog but when I try to 
> Save (write the value back to the DB) I get the following error condition. I 
> can only work with String data and nothing else using the wicket ids. Please 
> advise, David.
>
> **************************************************************
> org.apache.wicket.WicketRuntimeException: Exception 
> 'java.lang.ClassCastException: java.lang.Long cannot be cast to 
> java.lang.String' occurred during validation 
> org.apache.wicket.validation.validator.StringValidator$MaximumLengthValidator 
> on component 1:editform:weight     at 
> org.apache.wicket.markup.html.form.FormComponent.validateValidators(FormComponent.java:1510)
>
> There are 10 kinds of people in this world: those who understand binary and 
> those who don’t (Valid only for 2's complement).
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

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

Reply via email to