Hi all,

     I have a data table as shown below. As you can
see forceIdIndexFormula and rowId is same. Problem is
when I click on a row which has already been deleted
by someone else (during concurrent operations)  , the
row simply disappears. It does not invoke the set
method that i have written in my bean. And in set
method itself I come to know the row id of the row
which has been clicked. But this method does not get
invoked if row has been deleted by someone else(by
other user). 
     In set method itself I can give message to user
whether row has been deleted by someone else. One soln
to this is that I can make preserveDataModel="true".
But if preserveDataModel is true then on deletion of
row , it deletes the entries form database but row
still remains with table.
    what I need is that on deletion of row the row
should disapper from table and if I try to delete the
same row which has been deleted by other user then I
should be able to get the message like row has already
been deleted by other user.

      Table is shown below: 

<t:dataTable    id="data"                
                ........
                ........
                var="cust"                              
                preserveDataModel="false"
                forceIdIndexFormula="#{cust.Id}"             
          binding="#{customers.data}"
                ......
                .......
                rowId="#{cust.Id}"
                ...........
                ...........
     >

<h:coloumn...............>
.............
...........
...........
</h:coloumn>

<h:coloumn...............>
.............
...........
...........
</h:coloumn>

<h:coloumn...............>
.............
...........This is delete button for the rows. If I
click the delete button, row should disapper from the
table in same page. But if the row is already deleted
by some other user then I shold be able to get a
nessage like 'row has already been deleted ' .
...........
</h:coloumn>
</t:datatable>


   Any suggestion ?
Thanks and regards....
Arvind





                
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/

Reply via email to