[jboss-user] [JBoss Seam] - Re: DataModel in two SFSB issues (regression)

2007-10-12 Thread lcoetzee
Thanks Pete... my Eclipse code completetion,  combined with the default value 
 tripped me up a bit.

Thanks

L

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4094362#4094362

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094362
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: DataModel in two SFSB issues (regression)

2007-10-11 Thread [EMAIL PROTECTED]
You were using unintentional behaviour in Seam.  I fixed this properly a while 
ago.

What you need to do is inject the values in the second bean:

@Stateful
  | @Name(sectionManagementBean)
  | public class SectionManagementBean implements SectionManagement {
  | @In(#{sections.wrappedData})
  | private ListSection sections;
  | 
  | @In(#{sections.rowData})
  | private int selectedSectionNr;
  | .
  | .
  | }

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4094156#4094156

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094156
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: DataModel in two SFSB issues (regression)

2007-10-11 Thread lcoetzee
Great stuff. Thanks Pete.


(I will have to update my code in a few places where I have used this behavior, 
but not a big problem)

A quick test showed that it needs to be :


  | @In(#{sections.wrappedData})
  | private ListSection sections;
  | 
  | @In(#{sections.rowData})
  | @Out(required = false, scope = ScopeType.CONVERSATION)
  | private Section section;
  | 

and seems I dont need:
section = sections.get(selectedSectionNr); anymore


Thanks

L

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4094167#4094167

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094167
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: DataModel in two SFSB issues (regression)

2007-10-11 Thread lcoetzee
One question regarding:

  | @In(#{sections.rowData})
  | @Out(required = false, scope = ScopeType.CONVERSATION)
  | private Section section;
  | 

Is there a way that one can say .. required=false using the above annotation. 
At this point I get an exception when I try to use execute another method in 
the sectionManagementBean (without me actually choosing an element from the 
datamodel).

 
  |  handling uncaught exception
  | javax.servlet.ServletException: #{sectionManagementBean.manageSections}: 
javax.ejb.EJBTransactionRolledbackException: Error reading 'rowData' on type 
org.jboss.seam.jsf.ListDataModel
  | 


Thanks

L


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4094172#4094172

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094172
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: DataModel in two SFSB issues (regression)

2007-10-11 Thread [EMAIL PROTECTED]
@In(value=..., required=false) - value is the defualt attribute for an 
annotation

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4094259#4094259

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094259
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: DataModel in two SFSB issues

2007-04-18 Thread 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


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4038278#4038278

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4038278
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: DataModel in two SFSB issues

2007-04-18 Thread 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




View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4038459#4038459

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4038459
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: DataModel in two SFSB issues

2007-04-17 Thread CptnKirk
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.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4038036#4038036

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4038036
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: DataModel in two SFSB issues

2007-04-17 Thread petemuir
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...

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4038043#4038043

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4038043
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: DataModel in two SFSB issues

2007-04-17 Thread CptnKirk
anonymous wrote : ...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? 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4038046#4038046

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4038046
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: DataModel in two SFSB issues

2007-04-17 Thread petemuir
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.232r2=1.233

I'll fix it :)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4038064#4038064

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4038064
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: DataModel in two SFSB issues

2007-04-17 Thread petemuir
Ok, there is a fix in CVS for this.

Could you test it? Thanks

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4038073#4038073

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4038073
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user