Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Refreshing data model bound to data table

 
Brian Smith
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to refresh the model once a delete action is carried out on a data table (adf faces af:table). Once the delete action is carried out, I am rebuidling the List that serves as the table values. The List is being rebuilt but the table is not reflecting the changes in the list. I can't figure out why the table would be using the stale data. My backing bean that contains the List is request scoped (I have tried a session scope and got the same result).

Here is what I am doing

accountBacking




Just a note, I am NOT using the ADF Faces framework, just the stand alone component set (basically just the stuff under oracle.adf.view.faces)
[ September 28, 2006: Message edited by: Brian Smith ]
 
Brian Smith
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, I got it to work, I had to explicitly set the value of the table during the refreshAction.

table.setValue(model);

I would have thought that during the page reload, the new model would be picked up by the table. I guess not.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic