7 Replies Latest reply on Jan 18, 2011 8:18 AM by Ilya Sorokoumov

    Managed Beans

    Jenesia Fernandes Newbie

      Currently I have details of my managed beans in the faces-config.xml file and I am using JSF 1.2.

      I want to use JSF 2.0 and move details specified in the faces-config.xml to bean class and use annotations during declaration

       

      My current faces-config.xml code:

       

          <managed-bean>

              <managed-bean-name>orderDataModel</managed-bean-name>

              <managed-bean-class>com.axolotl.elysium.og.helper.MultipleOrderDataModel</managed-bean-class>

              <managed-bean-scope>session</managed-bean-scope>

              <managed-property>

                  <property-name>dataProvider</property-name>

                  <value>#{orderDataProvider}</value>

              </managed-property>

          </managed-bean>

          <managed-bean>

              <managed-bean-name>orderDataProvider</managed-bean-name>

              <managed-bean-class>com.axolotl.elysium.og.helper.MultipleOrderDataProvider</managed-bean-class>

              <managed-bean-scope>session</managed-bean-scope>

          </managed-bean>

       

      My current dataModel code:

      @Scope(ScopeType.SESSION)

      public class MultipleOrderDataModel extends SerializableDataModel {

             private MultipleOrderDataProvider dataProvider;

      }