As Jason already pointed out this has been fixed in CVS.
It is interesting that you write that this USED to work, because the way the
code was written it was never supposed to work.
After some thinking however I recall a bug that I reported myself early in
the 1.3 cycle:
http://jira.opensymphony.com/secure/ViewIssue.jspa?key=WW-76
When you were setting values on your beans using someBean/someAttribute as
you do, then those property editor exceptions were ignored before, so you
did not get the errors even when you wanted them! So this is probably why it
worked for you before 1.3 (if you were using 1.2.1 or earlier).
Cheers,
Dick Zetterberg
[EMAIL PROTECTED]
----- Original Message -----
From: "Porter, Mike" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 20, 2003 7:04 PM
Subject: [OS-webwork] Null Long Parameter Setting
> Hi,
>
> I am having a very strange problem. I am using WW1.3.
> I have a form that has this tag:
> <input type=hidden name="caseBean/id" value='ww:property
value="caseBean/id"/>'>
> My case bean looks like this..
> public void setId(Long id) {
> this.id = id;
> }
>
> If I the bean has an id property everything is OK! But if the bean is NEW
as in the case of an Insert I get "Unable to set value for " errors.
>
> I post to a Action class, but the doExecute is never getting called. I
have traced it back to the LongEditor line 26. It seems like the value is
being sent in a "". So I am getting a NumberFormatException. This MAKES
SENSE.
>
> The part that is driving me crazy, is that this code USED to work! And my
doExecute was getting called and my id was still null. Thats the behavior
that I want.
>
> So, my question is, how does WW recognize that a "" mapped to a Long
should really be null? And why is it no longer working for me?
>
-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork