MyFaces Core
  1. MyFaces Core
  2. MYFACES-3448

UISelectOne.validateValue(...) optimised & refactored

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.5
    • Fix Version/s: 2.0.13, 2.1.7
    • Component/s: General
    • Labels:
      None

      Description

      The UISelectOne.validateValue(...) code is not particularly human-readable to say the least.
      Also, in the case of a match(the norm) the method this.isRequired() is called twice if it returns false.
      Patch attached. (100% tested for all permutations of match, isRequired & NoSelection)

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Leonardo Uribe
            Reporter:
            David Law
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development