Affects Version/s: 5.0.10
Fix Version/s: 5.0.10
This was initially reported on the dev list by Geoff Callender.
When submitting a form containing a textfield and nothing has been typed into that textfield, the value will be submitted as null rather than the empty string. In past version, the empty string would be submitted.
The net result is NPEs and coercion issues. If the textfield is bound to a String and that String is used without checking for null, an NPE will result when none used to. If the textfield is bound to any other type, such as an Integer, the Tapestry type coercer will fail with an appropriate exception (e.g., NumberFormatException).
|Field||Original Value||New Value|
|Assignee||Howard M. Lewis Ship [ hlship ]|
|Status||In Progress [ 3 ]||Open [ 1 ]|
|Summary||Empty textfield submits null value||When a user submit a form with a TextField and the value is missing or blank, the value null is passed through the component to the model property|
|Status||In Progress [ 3 ]||Closed [ 6 ]|
|Fix Version/s||5.0.10 [ 12312936 ]|
|Resolution||Fixed [ 1 ]|
|Workflow||jira [ 12421990 ]||Default workflow, editable Closed status [ 12567720 ]|
|Workflow||Default workflow, editable Closed status [ 12567720 ]||jira [ 12590850 ]|
|Transition||Time In Source Status||Execution Times||Last Executer||Last Execution Date|
|27m 1s||1||Howard M. Lewis Ship||01/Feb/08 19:44|
|8d 19h 31m||2||Howard M. Lewis Ship||02/Feb/08 17:35|
|4d 7h 3m||1||Howard M. Lewis Ship||07/Feb/08 00:38|