Tapestry
  1. Tapestry
  2. TAPESTRY-1270

The StringTranslator should return null when an empty text field is submitted with a form, not the empty string

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 5.0.3
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      When an empty TextField is submitted in a form, the corresponding bound property gets assigned an empty string, rather than null.

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        27d 12h 44m 1 Howard M. Lewis Ship 13/Mar/07 15:48
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12569218 ] jira [ 12590476 ]
        Mark Thomas made changes -
        Workflow jira [ 12397377 ] Default workflow, editable Closed status [ 12569218 ]
        Howard M. Lewis Ship made changes -
        Resolution Fixed [ 1 ]
        Fix Version/s 5.0.3 [ 12312338 ]
        Status Open [ 1 ] Closed [ 6 ]
        Howard M. Lewis Ship made changes -
        Component/s tapestry-core [ 12311285 ]
        Fix Version/s 5.0 [ 12312018 ]
        Summary empty strings returned from empty TextFields (instead of null) The StringTranslator should return null when an empty text field is submitted with a form, not the empty string
        Daniel Gredler made changes -
        Field Original Value New Value
        Attachment string-translator-empty-string-handling.patch [ 12352947 ]
        Hide
        Daniel Gredler added a comment -

        Attaching a patch that fixes the problem, including unit tests.

        Show
        Daniel Gredler added a comment - Attaching a patch that fixes the problem, including unit tests.
        Daniel Gredler created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Daniel Gredler
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development