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,082,665
  • 372
  • 3,610
  • 3,555
Hariharbalaji
  • 2,498
  • 8
  • 36
  • 51

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,082,665
  • 372
  • 3,610
  • 3,555