-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: entityManager - data updated in the database, not for my app
PostPosted: Fri Nov 14, 2008 7:18 am 
Newbie

Joined: Tue Sep 16, 2008 4:36 am
Posts: 11
Hi everyone,

I'll explain my problem.

First my env. I am using Seam 2.1.0 with Richfaces.

I have a page with multiple tabs. I have one tab with a search form and I can do actions on the result. For example, I have a list of requests and I can reply to one of the request directly from the result.

The reply works fine. I checked in the database and everything is there after the action finishes.

Now here is the problem. When I come back to the list of replied requests, I don't see the reply I have made. If I reload the page, I can see it.

I am using ajax to rerender the page and I saw that the object returned by the entityManager query doesn't contain the reply.

to resume, the problem is :

before reloading the page:

request.replies.size = 0

after reloading the page

request.replies.size = 1

And everything is ok in the database.

Can someone help me? thank you in advance


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.