I actually found the underlying cause. Basically on the second update I am getting an optimistic locking error.
But I am convinced I am using my JPA correctly. Does that ring any bells or jog your memory? On 21 December 2013 15:54, Alfredo Quiroga <[email protected]> wrote: > Ufff it's been so long I can't remember :( sorry and on top of it I > deleted the project. I just read my own email again to see if I could tell > what I was doing wrong and even now can't really tell. > > Sent from my iPhone > > On Dec 21, 2013, at 8:40 AM, Javed Sumra <[email protected]> > wrote: > > Hello Alfredo. I am having a similar issue. Did you get to the bottom of > this? > > Thanks > > On Saturday, August 4, 2012 3:10:46 PM UTC+1, Alfredo Quiroga-Villamil > wrote: >> >> I am still investigating here on my side, but I have a feeling I might >> be missing the obvious so if someone knows what I am missing or >> potentially doing wrong please let me know. >> >> Elements: >> >> - A CellTable >> - A ListDataProvider >> - RequestFactory >> - A "refresh" button >> >> Scenario: >> >> - The CellTable is populated via RequestFactory. >> - On the first load, all data is shown in the table (all rows are >> populated) >> - I have a button (refresh). >> - The Table can be edited, so as an example I edit the first row, >> first cell and simply change the text to something else. >> - I click on the refresh button and load a brand new list of proxies >> from the server using request factory. >> - I clear my provider's list and add the new proxies. >> - The new list doesn't replace the old values (previously edited). >> >> Curiosity: >> >> I've noticed that after I click refresh, although at first glance the >> edited cell didn't change, if I click on it once or twice, it'll >> correctly display the last value loaded from the server. This is very >> unusual behavior. I've also tried to invoke refresh and flush on the >> provider itself after adding the new set of proxies. >> >> Presenter's code that is invoked for the first load and subsequent >> ones is shown below: >> >> @Override >> public void readAll() { >> >> destinationContext = >> factory.getRequestFactory().createDestinationContext(); >> >> destinationContext.findAll().with("cards", >> "cards.trunks", >> "daysOfWeek", "daysOfWeek.hourlySchedule", "holidays") >> .fire(new Receiver<List<DestinationProxy>>() >> { >> >> @Override >> public void >> onSuccess(List<DestinationProxy> >> proxies) { >> >> view. >> getDestinationCellTable().getProvider().getList().clear(); >> view. >> getDestinationCellTable().getProvider().getList().addAll(proxies); >> >> if (proxies != null && >> proxies.size() > 0) { >> >> view.getDestinationCellTable().getCellTable().getSelectionModel().setSelected(proxies.get(0), >> >> true); >> } >> >> } >> >> }); >> >> } >> >> I am still investigating here, but as I previously said if you see >> that I am simply missing the obvious I would appreciate it if you can >> let me know. >> >> Thank you in advance, >> >> Alfredo >> >> -- >> Alfredo Quiroga-Villamil >> >> AOL/Yahoo/Gmail/MSN IM: lawwton >> > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/google-web-toolkit. > For more options, visit https://groups.google.com/groups/opt_out. > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/google-web-toolkit. > For more options, visit https://groups.google.com/groups/opt_out. > -- Specsavers Forum 6, Whitely DD: +44 1489 862310 </pre><hr/><p style="margin: 0px; font-family:verdana; font-size:xx-small">NOTICE: This message contains privileged and confidential information intended only for the addressee. If you have received this message in error you must not disseminate, copy or take action on it; please notify [email protected] Opinions expressed in this message are those of the sender and do not necessarily represent those of Specsavers. Although this e-mail and any attachments are believed to be virus free, e-mail communications are not 100% secure and Specsavers makes no warranty that this message is secure or virus free. All references to Specsavers means Specsavers Optical Superstores Limited, a company limited by shares and registered in England under number 1721624 of Forum 6, Parkway, Solent Business Park, Whiteley, Fareham, Hampshire, PO15 7PA. Nothing in this transmission shall or shall be deemed to constitute an offer or acceptance of an offer or otherwise have the effect of forming a contract by electronic communication. Your name and address may be stored to facilitate communication. </p> <hr/>. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
