• Post Reply Bookmark Topic Watch Topic
  • New Topic

does JSF 2.0 make any Bean distinction now?  RSS feed

 
Jose Ayerdis
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've been tough taht there are some bean type when it comes to JSF although the 1.2 does not make any distinction.

Model Bean
Backing Bean
Support Bean
Utility Bean

Does the current version has any annotation or something to deal with this??
 
Tim Holloway
Bartender
Posts: 18663
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSF, EJB3, and other current-generation frameworks have tried to get away from the idea of a "bean type". It was too limiting. Usually it required a component to either have a specific base class or implement specific interfaces.

In contrast, they newer platforms prefer to base themselves on POJOs and define bean usages.
 
Ed Burns
author
Ranch Hand
Posts: 82
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How you use your beans is entirely up to you.

Please see this useful blog entry by my co-author Neil Griffin.

http://blog.icefaces.org/blojsom/blog/default/2009/04/23/Making-distinctions-between-different-kinds-of-JSF-managed-beans/
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!