Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Explain @viewscoped, @sessionscoped, @customscoped and @requestscoped annotations?



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

Post New Answer

More Java Server Faces (JSF) Interview Questions

Give the system requirements for the jsf use.

1 Answers  


What is h:commandbutton tag in jsf (javaserver faces)?

1 Answers  


What are the mvc design modules?

1 Answers  


What is javaserver faces technology?

1 Answers  


What is the life cycle of jsf (javaserver faces)?

1 Answers  


What is render kit in jsf?

1 Answers  


How to declare the message bundle in jsf?

1 Answers  


What is the standard jsf tag library?

1 Answers  


​​How to implement internationalization (localization) (i18n) in jsf?

1 Answers  


Why is jsf not as popular as, for example, mvc frameworks like spring mvc, although jsf is older and included in jee?

1 Answers  


How can we get the generated event?

1 Answers  


What are the available scopes for the managed bean?

1 Answers  


Categories