Hi,

I'm having an entity like person with a sub entity like an address. On a page 
I'm showing information about the person:

  | <h:outputText value="#{person.id}" />
  | <h:outputText value="#{person.address.street}" />
  | 
Now I'm pressing a next-button to show the infos about the next person:

  | public void next() {
  |             
  |     person= (Person) database.merge(personListManager.nextPerson());
  | }
  | 
The next person then gets loaded and outjected. What now happens is that 
#{person.id} is showing the id of the next person but #{person.address.street} 
is still showing the data of the first one. Seems like the sub-entity got 
cached and is not refreshed.

Can somebody please tell me, how I can display the right address?

Thanks!

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4014942
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to