Tell us about the @viewscoped, @sessionscoped, @customscoped and @requestscoped annotations.
Answer / Arun Kumar Singh
@ViewScoped: Indicates that a managed bean has view scope, which means it exists for each user's request to a single JSF view.@SessionScoped: Indicates that a managed bean has session scope, which means it exists for the duration of the HTTP session.n@CustomScoped: Allows developers to create custom scope for managing beans beyond the built-in scopes (@ViewScoped, @SessionScoped, etc.).@RequestScoped: Indicates that a managed bean has request scope, which means it exists for the duration of a single user's HTTP request.
| Is This Answer Correct ? | 0 Yes | 0 No |
Compare the jsf and spring framework.
What is cdi application?
What is h:outputtext tag in jsf (javaserver faces)?
How to validate managed bean in jsf (javaserver faces)?
what is rendering of page in JSF?
Can there be no faces-config.xml for jsf application?
How to create facelets templates?
What are immediate and deferred value expressions?
What are two ways to bind jsf supported?
What is the difference between instant and deferred expressions?
What is a backing bean?
What does @applicationscoped annotation indicate?