2 Replies Latest reply on Mar 2, 2009 10:22 PM by Guillaume Jeudy

    injection in parent not working for seam validator

    Guillaume Jeudy Master


      I'm using Seam 2.0.1.GA. Here's my usecase:

      public class ValidityPeriodValidator extends AbstractBeanValidator<ValidityPeriod> {

      parent class:

      public abstract class AbstractBeanValidator<T> implements Validator {
           FacesMessages facesMessages;
              public final void validate(FacesContext context, UIComponent component, Object value) throws ValidatorException {

      When validate() is invoked by Seam/JSF in the parent class I see that facesMessages is null. If I move the injection into the subclass it works.

      Any ideas? This seems like a bug to me.