1
<managed-bean>
  <managed-bean-name>beanName</managed-bean-name>
  <managed-bean-class>BeanClasss</managed-bean-class>
  <managed-bean-scope>session</managed-bean-scope>
</managed-bean>

Is it mandatory to specify the scope of a manage bean in JSF 1.1. If it it is not mandatory, then what is the default scope?

BalusC
  • 1,040,783
  • 362
  • 3,548
  • 3,513
Hariharbalaji
  • 2,428
  • 8
  • 36
  • 49

1 Answers1

1

The <managed-bean-scope> entry is mandatory for the faces-config.xml to be parsed correctly. Omitting it would result in a XML parsing error. However, next to request, session and application JSF also supports a scope of none.

Community
  • 1
  • 1
BalusC
  • 1,040,783
  • 362
  • 3,548
  • 3,513