History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: XW-229
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Rainer Hermanns
Reporter: Andrei Ivanov
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
XWork

acceptableErrorValue should return null

Created: 29/Sep/04 12:25 PM   Updated: 23/Mar/06 12:46 PM
Component/s: Type Conversion
Affects Version/s: 1.0.4
Fix Version/s: 1.1.3


 Description  « Hide
Currently there is no way to know if a user entered the default value for an object (as defined in acceptableErrorValue) or if he didn't supply any value.
If the user doesn't supply a value, the object should be left null and no tinitialized to a default value.

 All   Comments   Change History      Sort Order:
Mark Woon - [08/Mar/05 05:20 PM ]
I don't think there's any way to resolve this issue. When someone fills out a form, we won't know whether they entered an empty string or just didn't fill in an entry at all, so we can never know when to use null and when to instantiate an object.

Andrei Ivanov - [09/Mar/05 09:39 AM ]
All I want is a check, if the string to be converted is the empty string, to return null and not 0

When a text box is not filled, the browser sends the empty string
 => "" == null

Rainer Hermanns - [23/Mar/06 12:32 PM ]
Shold be fixed in CVS by XW-370