AnsweredAssumed Answered

Adding a new managed bean

Question asked by ddong on Nov 23, 2007
Latest reply on Dec 14, 2007 by kevinr
Hi, Guys

I am adding a new managed bean that has the properties like PersonService, NodeService, etc. And I put this bean in the org.alfresco.web.bean and declare it in the faces-config-beans file

<managed-bean>
      <description>
         The bean that backs up the entry screen
      </description>
      <managed-bean-name>EntryBean</managed-bean-name>
      <managed-bean-class>org.alfresco.web.bean.EntryBean</managed-bean-class>
      <managed-bean-scope>session</managed-bean-scope>
      <managed-property>
         <property-name>nodeService</property-name>
         <value>#{NodeService}</value>
      </managed-property>
      <managed-property>
         <property-name>authenticationService</property-name>
         <value>#{AuthenticationService}</value>
      </managed-property>
      <managed-property>
         <property-name>personService</property-name>
         <value>#{PersonService}</value>
      </managed-property>
   </managed-bean>

But I found it is always "null" when I access it, is this because I don't configure some spring configuration file to declare it?? or is there any work I need to do in order to initialize it??

Outcomes