[jboss-user] [JBoss Seam] - Re: EntityQuery.refresh() doesn't clear the result list??

ASavitsky do-not-reply at jboss.com
Thu Jul 19 12:22:03 EDT 2007


Nope, raiseAfterTransactionSuccessEvent() didn't help. Here's the code I used:

	@Observer ("refreshAccounts")
  | 	public void refresh() {
  | 		userAccounts.refresh();
  | 	}
  | 	@Transactional
  | 	public void save() {
  | 		em.persist(selectedAccount);
  | 		em.flush();
  | 		selectedAccount = null;
  | 		Events.instance().raiseTransactionSuccessEvent("refreshAccounts");
  | 	}

and the result is exactly the same, both behavior-wise and log-wise.

Now, the EntityQuery is declared as "@In private EntityQuery userAccounts;" - does it also need to be outjected if I change its internals, for the change to take effect?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065886#4065886

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065886



More information about the jboss-user mailing list