Results 1 to 1 of 1
- 05-14-2010, 11:20 PM #1Member
- Join Date
- May 2010
- Rep Power
Trouble with jsf and <rich:extendedDataTable>
First of all I am a beginner at JSF, I still don't get some JSF concepts properly like FacesContext. I have searched the solution for the below problem, but I couldn't find anything useful for me.
I have a <rich:extendedDataTable> with some data from a database table. And have a managedBean providing the data from a pojo as a java.util.List<myPOJO> object to <rich:extendedDataTable>.
I can get the selected rowkey on this managedBean. But the database has some other users who can delete records. At this point if one of them deletes any record at the database table, <rich:extendedDataTable> will not have any clue about the deleted row and it will still refer the old number of rows. In this case the rowkey will refer to the (selected row + 1)th row after deletion.
I would like to refer to old data and get primary key from it, then to look if the data with this primary id still exists.
I cannot use primary key on the table for security and design purposes. I don't know if there is any way to keep primary key data on the page securely, or to get it correctly at the managed bean, even after data deletion by other users.
I cannot use <rich:dataTable> etc, since I want sorting enabled at data table.
I think there must be a solution at managedBean side, hence I choose JSF thread of the forum.
I really appreciate your help, I got stucked with this problem :confused:
Last edited by zeyerci; 05-15-2010 at 12:15 PM.
- By raj18 in forum JavaServer Faces (JSF)Replies: 1Last Post: 11-15-2009, 06:26 AM
- By ruby in forum JavaServer Faces (JSF)Replies: 0Last Post: 07-28-2009, 08:13 PM
- By JavaForums in forum EclipseReplies: 0Last Post: 05-24-2007, 03:33 PM