1 Reply Latest reply on Feb 14, 2008 11:00 PM by gjeudy

    Use accessors in a stateful bean superclass

    gjeudy

      Hi,


      Is it possible to perform bijection on a superclass of a stateful bean ? Then reference these fields in facelets ?


      I tried adding the below in a super class:


      @In(required=false)
      
      @Out(required=false)
      
      private String foo;
      
       
      
      public String getFoo();
      
      



      JSF complains with:


      javax.el.PropertyNotFoundException

      .
      I reference the property with:


      #{seamsubclasscomponentname.foo}


        • 1. Re: Use accessors in a stateful bean superclass
          gjeudy

          Issue resolved, SEAM will tranverse superclass for annotation and process them normally.


          Don't specify @Stateful or @Name annotation on the superclass.


          I just created an abstract class implementing a superinterface.


          The key is that your subclass must implement an interface that extends the superclass interface otherwise the EJB container won't see the methods on the super class.