Uploaded image for project: 'CDI Specification Issues'
  1. CDI Specification Issues
  2. CDI-572

support JSR-303 bean validation in CDI beans

    XMLWordPrintable

Details

    • Epic
    • Resolution: Obsolete
    • Major
    • None
    • None
    • None
    • None
    • JSR-303 Validation of CDI beans
    • To Do

    Description

      Consider a bean like

      @SessionScoped
      public class CurrentUser {
        @javax.validation.constraint.NotNull
        @javax.validation.constraint.Length(10)
        private String userId;
      
        ...
      }
      

      We could easily check this and invoke JSR-303 (if available) in the Producer<T>. Please note that for a custom Producer they have to care for it themselves.

      Attachments

        Activity

          People

            Unassigned Unassigned
            struberg Mark Struberg (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: