[jboss-user] [JBoss Seam] - refresh view

straubp do-not-reply at jboss.com
Mon Feb 12 06:21:56 EST 2007


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



More information about the jboss-user mailing list