This is the error I'm getting:

 

[DEBUG LoadAdDataInterceptor] Loaded
AdData:[EMAIL PROTECTED] 

[ERROR RequestCycle] Cannot format given Object as a Number 

java.lang.IllegalArgumentException: Cannot format given Object as a
Number

            at java.text.DecimalFormat.format(DecimalFormat.java:480)

            at java.text.Format.format(Format.java:133)

            at
org.apache.wicket.util.convert.converters.AbstractNumberConverter.conver
tToString(AbstractNumberConverter.java:109)

            at
org.apache.wicket.util.lang.PropertyResolverConverter.convert(PropertyRe
solverConverter.java:84)

 

I'm using List<SelectOption> to populate the DropDownChoice, as per the
online example:

 

http://cwiki.apache.org/WICKET/another-dropdownchoice-example-by-adam.ht
ml

 

The only change I made to SelectOption is to set the 'value' field to an
Integer (which I need for my model).

 

Anyone any ideas as to what's going on? I'm pretty sure I didn't swap
the label/value pairs as the labels show up properly.

 

Thanks,

 

Michael

Reply via email to