Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

adv of BackingBeans over ManagedBeans  RSS feed

 
amarshi mohanty
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi All,
I referred the below links
http://www.coderanch.com/t/214065/JSF/java/backing-beans-vs-managed-beans
http://www.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

 
Tim Holloway
Bartender
Posts: 18709
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!