• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSF Beans

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

Im currently working on a new project, and we are planning to use JSF. The question i have is:

In JSF, every page has to be backed by a Bean. These beans might not be re-usable as they are composed of page specific data. In this case, won't we see a Bean explosion? How effective is it to write a Bean just to have get and set methods?
As an alternative, we are thinking of creating a domain object model, having the page beans act as a facade to the domain object beans. We are faced with multiple issues here:
a. We do not want to use EJBs as the backing beans because of the size of our team (2 developer team).
b. Everytime a backend bean is updated, it has to be saved into the database. And these beans cannot be cached due to concurrency issues. It is quite expensive to load an entire bean every time a part of it is being used by a facade bean.

Dushy
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would reconsider using EJBs.

Also, look into the Value Object pattern. There is an Updatable Value Objects Strategy (term borrowed from Core J2EE Patterns book) in which you would use the Value Object as the bean to back your pages.
 
reply
    Bookmark Topic Watch Topic
  • New Topic