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

support JSR-303 bean validation in CDI beans

XMLWordPrintable

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

      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.

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

                Created:
                Updated:
                Resolved: