Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-864

Make ValidationContext easier

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 6.0.0
    • Fix Version/s: 6.0.1
    • Component/s: Databind 2
    • Labels:
      None

      Description

      [copied]
      I would like to draw your attention to ValidationContext class as well. It's very hard to use, I think.
      getProperties(String) method returns ARRAY of properties. How should one know which element is form, and
      which is real bean property? (and there was a case when 0 element was bean property, where usually first
      0 element refers to form/component property) Why not to use wrapper class for this purpose, or even better,
      create two additional methods in ValidationContext: getProperty() and getBeanProperty(), where former
      would return form/component property, and later - actual bean property. This would be much more cleaner
      in terms of usability, IMHO.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              dennis dennis
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: