• 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:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Backing bean vs Managed bean

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is there a difference between backing bean and managed bean? JSF in action implies they are the same thing. Please correct me if I am wrong.

Backing beans are usualy declared with the Managed Bean Creation facility in faces-config.xml.



I am guessing they are different.

Thanks for your response in advance.
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
They are the same thing.
 
Saloon Keeper
Posts: 28392
210
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
Well, if you want to get really pedantic, a "Managed Bean" is a bean constructed/initialized via injection in the faces-config.xml file. A "Backing Bean" is a bean referenced by JSF pages and is defined in the faces-config.xml file.

Few people will probably care about the difference. Usually if it's one, it's also the other.
 
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I answered this question several time ago. Please take a look at https://coderanch.com/t/211389/JSF/java/managed-backing-beans
 
Greenhorn
Posts: 1
Eclipse IDE Oracle Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Backing Bean and Managed Bean Analogy

Here’s a good analogy to help you remember the difference between backing and managed beans. A managed bean is like a backpack you use to carry your stuff when you go for a hike. You know how much your stuff weighs, so you carefully decide which items you want to put in the backpack and leave heavier items that you don’t really need at home. A backing bean that gets generated by JDeveloper is like a backpack packed by your partner. Because he or she doesn’t know what exactly you need for the trip—but he or she wants to make sure you have everything you need—everything goes into that backpack. You then must carry all that weight as you hike over the hills. Because generating a backing bean creates setter and getter methods for all components on a page, including those you don’t use in your Java programming, the backing bean backpack grows big and heavy. If you use managed beans instead, you are packing the bean backpack yourself with better control over its weight.
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic