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

        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.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development