Tell us about the @viewscoped, @sessionscoped, @customscoped and @requestscoped annotations.



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

Post New Answer

More Java Server Faces (JSF) Interview Questions

What is jsf framework?

1 Answers  


List out the converter tags used in JSF?

1 Answers  


What is JSF Navigation Rule?

1 Answers  


How to create facelets templates?

1 Answers  


What are the benefits of using JSF Framework?

1 Answers  


Mention two ways of binding supported by JSF?

1 Answers  


What are different JSF Converter tags?

1 Answers  


What is the jsf?

1 Answers  


What is the difference between backing bean and managed bean?

1 Answers  


List the new features of jsf 2.0?

1 Answers  


What are the facelets templates?

1 Answers  


What is binding (JavaServer Faces technology)?

1 Answers  


Categories