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

Make ValidationContext easier

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Normal Normal
    • 6.0.1
    • 6.0.0
    • Databind 2
    • None

      [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.

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

              Created:
              Updated:
              Resolved: