-
1. Re: DataModel in two SFSB issues
cptnkirk Apr 17, 2007 12:23 PM (in response to lcoetzee)In Bean B try sharing with
@In @Out DataModel sections;
If you're trying to manipulate the DataModel in B. Otherwise your investigation seems to show that Seam isolates the @DataModel data binding on a per bean basis. Not sure why. Gavin is around here somewhere, try adding a post to the "Back..." thread. -
2. Re: DataModel in two SFSB issues
pmuir Apr 17, 2007 12:40 PM (in response to lcoetzee)Louis, post your source for Bean A and Bean B.
@DataModel does a conversion to a DataModel and then outjects the result - it doesn't do a subsequent injection. Based on your description above I wouldn't expect sections, created in A, to be available in B if annotated with @DataModel (you need to use @In). If you want the underlying list you can use @In("#{sections.wrappedData}").
The code you post just deals with outjecting a DataModel from the bean - and as you outject a different object it is dirty... -
3. Re: DataModel in two SFSB issues
cptnkirk Apr 17, 2007 12:52 PM (in response to lcoetzee)...it doesn't do a subsequent injection
Really? Although I only outject in my code, I thought DataBinders performed bidirectional binding. Why else implement a getWrappedData() DataBinder method? -
4. Re: DataModel in two SFSB issues
pmuir Apr 17, 2007 1:19 PM (in response to lcoetzee)Hmm, looks like you are right, but injection will only occur if
null != null
http://fisheye.jboss.com/browse/JBoss/jboss-seam/src/main/org/jboss/seam/Component.java?r1=1.232&r2=1.233
I'll fix it :) -
5. Re: DataModel in two SFSB issues
pmuir Apr 17, 2007 1:47 PM (in response to lcoetzee)Ok, there is a fix in CVS for this.
Could you test it? Thanks -
6. Re: DataModel in two SFSB issues
lcoetzee Apr 18, 2007 5:33 AM (in response to lcoetzee)My applications is still running on jboss 4.0.5, which means that I can't test the new Seam (as Seam is now dependent on jboss 4.2.0).
I have been trying to port my app to run with the new jboss and seam. Unfortunately I am struggling a bit (the move from myfaces to jsf-ri appears to be problematic!)
I will test as soon as I can get it to run with the new jb.
L -
7. Re: DataModel in two SFSB issues
lcoetzee Apr 18, 2007 11:06 AM (in response to lcoetzee)I have managed to get the relevant part of my app running under the new jb4.2.0. Seems the fix has done the trick !
Great stuff.
Thanks.
L