[jboss-user] [JBoss Seam] - OneToMany List refresh after insert

damianharvey do-not-reply at jboss.com
Thu Apr 26 10:18:29 EDT 2007


Hi,

I have a page where a header/detail set of data is entered. There is a relationship between the entities handled like so:

  | @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "parentObject")
  | public List<childObject> getChildObjects() {
  |   return this.childObjects;
  | }
  | 
  |   | When I insert header & detail data the action returns to the same page that the insert was done. This page also has a dataTable showing header data. One of these fields is based on the List above and is used to show the first child Objects start date.
  |   | 
  |   | The problem is that this List is not updated until the user navigates away and back. Is there anyway to force this List to update at the time that the records are created? 
  |   | 
  |   | I have tried setting the FetchType to EAGER but this had no effect.
  |   | 
  |   | Thanks,
  |   | 
  |   | Damian.

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

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



More information about the jboss-user mailing list