YFaces
  1. YFaces
  2. YFACES-24

component validation enhancements

    Details

    • Type: Improvement Improvement
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.5
    • Fix Version/s: 0.6
    • Component/s: yfaces-core
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Currently YComponent#validate just returns void.

      Validation can be improved in following ways:

      • YComponent#validate returns boolean
        -> true : validation successfull, proceed as usual
        -> false: validation fails; don't render component
        or
      • YComponent#validate returns void but method body may call YComponent#setValidationState(...) for an enhanced validation (error) result
      • YComponent#validate throws an exception
        -> don'r render component; log exception (console) but don't show it in browser

      Validation is very low level and only assures, that while rendering the component no exception is thrown/visible at browser.
      For a more accurate validation handling each component has to implement it and each component view has to evaluate it.

        Issue Links

          Activity

            People

            • Assignee:
              Denny Strietzbaum
              Reporter:
              Denny Strietzbaum
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: