• Post Reply Bookmark Topic Watch Topic
  • New Topic

how the Architecture for jsf+ prime faces+ hibernate project

 
raj talatam
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • 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
 
K. Tsang
Bartender
Posts: 3604
16
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.

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!