• 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

how the Architecture for jsf+ prime faces+ hibernate project

 
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
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
 
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic