permaculture playing cards*
The moose likes JSF and the fly likes Refreshing data model bound to data table Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Refreshing data model bound to data table" Watch "Refreshing data model bound to data table" New topic
Author

Refreshing data model bound to data table

Brian Smith
Ranch Hand

Joined: May 20, 2005
Posts: 63
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

Joined: May 20, 2005
Posts: 63
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Refreshing data model bound to data table
 
Similar Threads
Asking ADF Faces table with popup
ADF Faces useWindow attribute
JSF DATA TABLE NAVIGATION PROBLEM
Asking ADF Faces table with popup
Change rows property of ADF Table