-
1. Re: EntityQuery refresh
pmuir Dec 13, 2006 4:33 AM (in response to jimk1723)I ran into a problem (not using ajax). I had a conversation running so the criteria were not lost.
The entity query would refresh during apply request values (obviously as the tree is restored), the criteria would be updated, and then the query requested for render response BUT as the query had already been run, it wasn't with the updated criteria.
So, I made the query stateless (added scope="stateless") attribute, and it works as expected (just with a bit more overhead). -
2. Re: EntityQuery refresh
gavin.king Dec 13, 2006 6:37 AM (in response to jimk1723)Pete, this sounds more like a bug, could you submit a testcase to JIRA? thanks.
-
3. Re: EntityQuery refresh
jimk1723 Dec 13, 2006 1:01 PM (in response to jimk1723)"petemuir" wrote:
I ran into a problem (not using ajax). I had a conversation running so the criteria were not lost.
I might have the same situation; I'm on an edit page using an atomic conversation, e.g. flushmode=manual.
I reinstated my components.xml EntityQuery, set the scope="stateless", and all seems to be working; I'm seeing two Hibernate info messages for the query, one in apply request values and one in render response. -
4. Re: EntityQuery refresh
pmuir Dec 13, 2006 1:43 PM (in response to jimk1723)http://jira.jboss.org/jira/browse/JBSEAM-591
I also can't get paging working as described in the documentation. -
5. Re: EntityQuery refresh
gavin.king Dec 13, 2006 1:45 PM (in response to jimk1723)You can't? Did you check the contactlist example? It has pagination.
-
6. Re: EntityQuery refresh
pmuir Dec 13, 2006 1:49 PM (in response to jimk1723)Ok, that was really an off the cuff remark, I need to investigate more throughly :)