-3

I've been seraching about what's the difference between managed beans and backing beans and i've allready got the idea but i came through a website that mentioned this fact (or claim) for which i don't understand the reason : "Backing Beans should be defined only in the request scope". Is that even correct? If so ... why??

abu3azza
  • 27
  • 1
  • 3

1 Answers1

2

There is no difference between the terms managed bean and backing bean in the context of JSF. The Java EE 6 tutorial uses them interchangeably.

You don't quote the website so there is no context to the author's generalization but request scope is often preferred to broader scopes for performance and concurrency reasons.

Community
  • 1
  • 1
McDowell
  • 107,573
  • 31
  • 204
  • 267
  • Just to add some info, is up to the developer/designer to decide the best scope for the managed bean, but this should be done having a good understanding of the scopes. There are two Q/As that explain this: [How to choose the right bean scope?](http://stackoverflow.com/q/7031885/1065197) and [Can I use multiple managed bean in the same xhtml page?](http://stackoverflow.com/q/18919545/1065197). – Luiggi Mendoza Nov 20 '13 at 14:58