2 Replies Latest reply on May 9, 2011 7:35 AM by topfan

    Inherit property from parent bean

    topfan Newbie

      I've got a parentbean with managed-property myProperty. This is the faces-config.xml:

       

          <managed-bean>

              <managed-bean-name>parentBean</managed-bean-name>

              <managed-bean-class>pagecode.ParentBean</managed-bean-class>

              <managed-bean-scope>request</managed-bean-scope>

              <managed-property>

                  <property-name>myProperty</property-name>

                  <property-class>com.myaddress.mypage.ParentPropertyBean</property-class>

                  <value>#{ParentPropertyBean}</value>

              </managed-property>

          </managed-bean>

       

      If childBean inherit from parentBean, how can i do to inherit "myProperty" without insert it into the childBean????

       

      Thanks to all :-)

       

      topfan