3 Replies Latest reply on Dec 19, 2011 6:39 PM by su baochen

    can bean extends someone?

    su baochen Newbie


      I have bean like this:

      public class A {
         protected String a;
         public void setA(String a){
              this.a = a;
          public void getA(){
              return this.a;
      public class BeanB entends A {

      But when I use beanB in EL like this:

      <h:outputText value="#{beanB.a}"/>

      will generate error message said that can not find property a in beanB.

      Any suggestions? Thanks in advance!

      Baochen Su