2 Replies Latest reply on Oct 27, 2007 6:07 AM by pmuir

    bind object-level validation errors to field

    m.kraxner

      Hello,

      it is possible to write own level validators, validate objects with ClassValidator and add the invalid values to FacesMessages.

      the problem is, that these errors are bound to the validated object - if there are more objects of the same kind - like in a treetable - it is not very convenient for the user to show them all together as global errors.

      is there a way to re-bind such errors to a specific field?

      thanks a lot,

      Michael Kraxner

        • 1. Re: bind object-level validation errors to field
          m.kraxner

          I'm sorry. it should be:
          "it is possible to write own object level validators..."
          and
          "it is not very convenient for the user if they are shown all together as global errors"

          "m.kraxner" wrote:
          Hello,

          it is possible to write own level validators, validate objects with ClassValidator<SomeClass> and add the invalid values to FacesMessages.

          the problem is, that these errors are bound to the validated object - if there are more objects of the same kind - like in a treetable - it is not very convenient for the user to show them all together as global errors.

          is there a way to re-bind such errors to a specific field?

          thanks a lot,

          Michael Kraxner


          • 2. Re: bind object-level validation errors to field
            pmuir

            Not with the built in validators in Seam.

            http://jira.jboss.com/jira/browse/JBSEAM-1878 - vote for it.