Investigating the problem a little more, I've created a new class just with the Table object [1] and the view using velocity[2]. I've found out that it is a JPA first level cache behavior[3] and when using scalar query the results are not managed by that cache and in turn that problem disappears. So, we need to learn a little more, rs rs rs!
Regards, Gilberto [1] http://code.google.com/p/construtor/source/browse/trunk/cip/park/src/main/java/park/web/page/ViewNaturalPersonOld.java?r=757 [2] http://code.google.com/p/construtor/source/browse/trunk/cip/park/src/main/webapp/view-natural-person-old.htm?r=757 [3]http://weblogs.java.net/blog/archive/2009/08/21/jpa-caching 2010/12/16 Bob Schellink <[email protected]> > Hi Gilberto, > > I won't be of much help as I don't know JPA at all. The best thing to do is > a debugger or even > System.out.println after deleting the record. Perhaps the transaction isn't > committing? > > Kind regards > > Bob > > On 16/12/2010 06:29, Gilberto wrote: > > > > > > 2010/12/14 Bob Schellink <[email protected] <mailto:[email protected]>> > > > > On 15/12/2010 13:34, Gilberto wrote: > > > > > > > > > 2010/12/14 Bob Schellink <[email protected] <mailto: > [email protected]> <mailto:[email protected] > > <mailto:[email protected]>>> > > > > > > The problem occurs on update action. Try updating(editing) one > field, date for example, that you > > > will see that behavior. When you click OK in the EditNaturalPerson > it will return to > > > ViewNaturalPerson and the data aren't refreshed. > > > > I'm using the click-example you referred to in your original mail[1]. > Deletes an updates works for > > me. I don't see table data that is out of date. > > > > Bob > > > > [1]: http://click.avoka.com/click-examples/table/search-table.htm > > > > > > Bob, > > If you have time, would you mind to try out this project[1], mainly the > park module[2]? > > That project (/trunk/cip) is my contribution to Apache Click. I usually > work on it in my rest time. > > I'm trying to make a real web application using Click and JPA. That > project could be one option for > > testing new releases of Apache Click as well. > > > > In the park module you will see that odd behavior. > > > > Regards, > > Gilberto > > > > [1]http://construtor.googlecode.com/svn/trunk/cip/REAME.txt > > <http://construtor.googlecode.com/svn/trunk/cip> > > [2]http://construtor.googlecode.com/svn/trunk/cip/park > >
