 <managed-bean>
  <managed-bean-name>loginbean</managed-bean-name>
  <managed-bean-class>org.richfaces.demo.stateApi.Bean</managed-bean-class>
  <managed-bean-scope>request</managed-bean-scope>
 </managed-bean>
 <managed-bean>
  <managed-bean-name>registerbean</managed-bean-name>
  <managed-bean-class>org.richfaces.demo.stateApi.Bean</managed-bean-class>
  <managed-bean-scope>request</managed-bean-scope>
 </managed-bean>
 <managed-bean>
  <managed-bean-name>loginaction</managed-bean-name>
  <managed-bean-class>org.richfaces.demo.stateApi.LoginAction</managed-bean-class>
  <managed-bean-scope>request</managed-bean-scope>
  <managed-property>
   <property-name>bean</property-name>
   <property-class>org.richfaces.demo.stateApi.Bean</property-class>
   <value>#{loginbean}</value>
  </managed-property>
 </managed-bean>
 <managed-bean>
  <managed-bean-name>registeraction</managed-bean-name>
  <managed-bean-class>org.richfaces.demo.stateApi.RegisterAction</managed-bean-class>
  <managed-bean-scope>request</managed-bean-scope>
  <managed-property>
   <property-name>bean</property-name>
   <property-class>org.richfaces.demo.stateApi.Bean</property-class>
   <value>#{registerbean}</value>
  </managed-property>
 </managed-bean>