I'm not sure why this was working for you in the first place (that should make you feel better, right? :-))
The problem is the PropertyEditors. In 1.3 (and before? Not sure...) If your properties are not String properties, then they will add error messages to your action... If your Action extends ActionSupport, then these errors will keep doExecute from being called, and it will just return INPUT for you... I personally hate this default behavior from ActionSupport, and I'm not too happy to see it back in WW2... In the current CVS, in preparation for a 1.3.1 release, the PropertyEditors have been changed to quietly set nulls for "", as this was seen as a better default behavior. Jason > -----Original Message----- > From: Porter, Mike [mailto:[EMAIL PROTECTED] > Sent: Friday, June 20, 2003 1:04 PM > To: [EMAIL PROTECTED] > 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? > > Thanks, > > Mike Porter > > > > ------------------------------------------------------- > 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 > ------------------------------------------------------- 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