Hi

Thanks everyone for providing input. I think I found the problem and my app
are now works fine.
I have to findings that i think probably can help other people.

1. When dealing with JPA entities, always get the most recent information
from database before update. my table was not update to the most recent
value mainly due to this.
2. Other than onGet, also try to cover the onPost scenario, I saw some
incorrect behavior because i didn't implement onPost method.

Sorry I cannot provide concrete example since I'm under NDA.

Thanks agian.
Yinghai


On Thu, Dec 16, 2010 at 6:32 AM, Bob Schellink <[email protected]> wrote:

> 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
>
>

Reply via email to