• 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

Do Not Seem to be pulling the Most Current Data from Database (JSF, Hibernate)

 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Sirs et Madames,
I have an application which renders a tabled list of system users (using Visual Web JSF). However when I delete a user/s even though the database will show the changes (users gone, non existent), when I rerun the application, it seems to render the table with the users still there, even though it should be pulling the data from the database. What could I be doing wrong? here is the bean code:



The JSF code

Could someone please let me know why I am pulling stale data that should not/does not exist anymore? How do I solve this issue?

Thanks kindly in advance,
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i cant see you updating 'userVOArray' from where the data table is picking up the values.

plese do that to see the cahage.
 
Phoenix Kilimba
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello, thanks for the response, but I dont understand what you mean.... Everytimethe page loads the should run, and in my init() method I call which in turn calls which should pull data direct from database. So , yes I AM updating userVOArray where the table is picking up values everytime the page loads...

However I still have the issue. Help?

Thanks in advance,
 
Shivaji Byrapaneni
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
is your init getting triggered after you had updated the values in the datatable...?
 
Phoenix Kilimba
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Shivaji, no its not. But what would be the significance of this if that WAS the case?
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic