0
   <managed-bean>
        <managed-bean-name>tagTypeEnumAddNewFO</managed-bean-name>
        <managed-bean-class>packagename.classname</managed-bean-class>
        <managed-bean-scope>view</managed-bean-scope>
    </managed-bean>

Here what is the use of ?

2 Answers2

1

The scope in JSF means lifetime of the bean.

There are several scopes like Session, View etc.

To understand more about it visit Blog by JSF Expert BalusC here

Makky
  • 17,117
  • 17
  • 63
  • 86
0

It tells how long the object is supposed to live in the application before it is instantiated again. In this example, it will only be "alive" for the remainder of the view you are on. So typically one request on the same view.

Other examples are session, which will remain in memory until your session expires, or explicitly is removed.

Shervin Asgari
  • 23,901
  • 30
  • 103
  • 143