[jboss-user] [JBoss Seam] - Re: Beginning conversations in @Factory methods

petemuir do-not-reply at jboss.com
Wed Jul 12 16:57:59 EDT 2006


anonymous wrote : anonymous wrote : You could reload the object when the conversation starts?I'm not sure I follow. 
I think
em.refresh(myEntity);
anonymous wrote : If this ID is being added as a request param please make sure that it's a non-important ID (ie, not a DB key).

Yup.  This is something I need to fix ;)

I've just tested what was discussed on this thread which works well
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=86564&start=10

SearchBean

  | @DataModel
  | private List<Foo> foos;
  | 
  | // Factory etc.
  | 

EditorBean

  | @In(required=false, value="#{foos.rowData}") 
  | private Foo selectedFoo;
  | 
  | @In(required=true) @Out 
  | private Foo foo;
  | ...
  | @Create @Begin
  | public void begin() {
  |    foo = selectedFoo;
  | }
  | ...
  | 

Which, with some (basic) testing, seems to work and not give an LIE (which surprises me)

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

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



More information about the jboss-user mailing list