List the available scopes for managed bean in JSF.

devquora
devquora

Posted On: Feb 22, 2018

 

Following is a list of some scopes for a managed bean class: –
  • Application (@ApplicationScoped) – every user can make use of this. It helps in interacting with a web application.
  • Session (@SessionScoped) – it is present in various HTTP requests in a web application.
  • View (@ViewScoped) – when a user is interacting with a single page of any web application, then this scope comes into play.
  • Request (@RequestScoped) – it persists when a request is made during a single HTTP request in some web application.
  • None (@NoneScoped) – it indicates that no scope is defined for that particular application.
  • Custom (@CustomScoped) – it is a user-defined scope which is also nonstandard.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    JSF Interview Questions

    What do you understand by Java Server Faces (JSF)?

    It is a component-based user interface framework which works on the server side and is used for the development of web ..

    JSF Interview Questions

    List the various benefits of Java Server Faces.?

    Following are some of the main features of Java Server Faces: – The behavior and presentation of the web application ..

    JSF Interview Questions

    What are the various features of Java Server Faces?

    Some of the main features of Java Server Faces are listed below: – It is a server-side component-based framework. Inb..