Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

adv of BackingBeans over ManagedBeans

 
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hi All,
I referred the below links
https://coderanch.com/t/214065/JSF/java/backing-beans-vs-managed-beans
https://coderanch.com/t/210749/JSF/java/Which-Binding-Type-Do-You


but can anyone tell me which scenario shall we prefer using Backing Beans, please send related code snippet.

regards
Amarshi

 
Saloon Keeper
Posts: 24533
167
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Almost always your Backing Beans WILL be Managed Beans. Otherwise you'd have to manually manage them, and that would be giving up half the advantage of JSF for no real benefit.

And despite what Sergei said there, Managed/Backing Beans are NOT necessarily primarily request scope. In fact, JSF has been known to make some of us push beans into session scope just to get support of JSF's postback functions.
 
reply
    Bookmark Topic Watch Topic
  • New Topic