Bugs item #1461977, was opened at 2006-03-31 09:48
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1461977&group_id=119783

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: 1.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Karthik Guru (karthik_g)
Assigned to: Nobody/Anonymous (nobody)
Summary: PropertyResolver seems to update the model with blank value 

Initial Comment:
I have a TextField having a model of type int and I
attached a
NumberValidator and set type to int.class
The field is not marked 'required' though.
if i leave the field blank , i see

Root cause:

java.lang.IllegalArgumentException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at java.lang.reflect.Method.invoke(Method.java:585)
...
...

wicket.WicketRuntimeException: Error calling method:
public void
com.witckettutorial.common.UserProfile.setPin(int) on
object:
[EMAIL PROTECTED]
    at
wicket.util.lang.PropertyResolver$MethodGetAndSet.setValue(PropertyResolver.java:838)
    at
wicket.util.lang.PropertyResolver$ObjectAndGetSetter.setValue(PropertyResolver.java:440)


I wonder why is it trying to update model when the
field has been left
blank and it anyway isn't marked required.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1461977&group_id=119783


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to