Explain @viewscoped, @sessionscoped, @customscoped and @requestscoped annotations?
Answer / Anand Kumar Sagar
"@ViewScoped is used to create a bean that has its lifecycle associated with the current view (JSF component tree).n@SessionScoped creates a bean whose lifecycle is bound to the HTTP session. It means it persists across requests but not across sessions.n@CustomScoped allows developers to define a custom scope of managed beans by implementing the javax.faces.context.ExternalContext interface and registering the custom scope with the FacesContext object.n@RequestScoped creates a bean whose lifecycle is bound to the current HTTP request. It means it does not persist across requests."n
| Is This Answer Correct ? | 0 Yes | 0 No |
Give the system requirements for the jsf use.
What is h:commandbutton tag in jsf (javaserver faces)?
What are the mvc design modules?
What is javaserver faces technology?
What is the life cycle of jsf (javaserver faces)?
What is render kit in jsf?
How to declare the message bundle in jsf?
What is the standard jsf tag library?
How to implement internationalization (localization) (i18n) in jsf?
Why is jsf not as popular as, for example, mvc frameworks like spring mvc, although jsf is older and included in jee?
How can we get the generated event?
What are the available scopes for the managed bean?