Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Joe Ess

how the Architecture for jsf+ prime faces+ hibernate project  RSS feed

Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in my project we are using jsf+ Hibernate+primefaces , the thing is in prime faces if we want to show datatable they have giving pre defined components, for every such component we have to pass list ( which contain objects for corresponding row) . From the hibernate we are getting list of object for corresponding table ,

where can i write logic to get Users from hibernate, i shouldn't write it in getUsers right because , i am not showing users in that table but i am also doing some CRUD operations on it so every time i access row from UI getUsers will be called . suggest me the Architecture for this kind of scenario
Posts: 3648
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In JSF managed bean there is an "init()" method which annotate with the @PostConstruct. Then call your own methods to populate lists or whatever.

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!