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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

No New Questions to Answer in this Category !!    You can

Post New Questions

Answer Questions in Different Category