[jboss-user] [JBoss Seam] - Re: Multiple DataModels in an SFSB

2007-09-03 Thread jbuechel
[EMAIL PROTECTED] wrote : void @Factory methods should not have a scope. The scope is defined on the attribute that does the outjection. Hi, i'm struggling with a similar issue as fernando did: Here some code snippets: DataModel declaration: @DataModel(scope=ScopeType.PAGE) |

[jboss-user] [JBoss Seam] - Re: Multiple DataModels in an SFSB

2007-02-09 Thread lightbulb432
I'm getting a problem where the DataModelSelection that isn't being selected (because there's 2 in the SFSB) is still being outjected, albeit with all properties empty...I do a null check on whether a particular component is not empty in conversation scope for application functionality, so this

[jboss-user] [JBoss Seam] - Re: Multiple DataModels in an SFSB

2007-02-07 Thread petemuir
@DataModel and @Factory shouldn't be on the same method. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4012340#4012340 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4012340 ___

[jboss-user] [JBoss Seam] - Re: Multiple DataModels in an SFSB

2007-02-07 Thread lightbulb432
Ok, then in an SFSB how can you ensure that every time the property is accessed the factory is getting run again? The way I understand it is that the factory is only executed when the corresponding property is null. Therefore, the only time that would apply is the very first time that the

[jboss-user] [JBoss Seam] - Re: Multiple DataModels in an SFSB

2007-02-07 Thread [EMAIL PROTECTED]
@Factory(scope=EVENT|STATELESS) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4012495#4012495 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4012495 ___ jboss-user mailing list

[jboss-user] [JBoss Seam] - Re: Multiple DataModels in an SFSB

2007-02-07 Thread [EMAIL PROTECTED]
Add a refreshMyList() method and let it listen to an event. Fire the event (from anywhere) when you need to refresh the data. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4012498#4012498 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Multiple DataModels in an SFSB

2007-02-07 Thread fernando_jmt
[EMAIL PROTECTED] wrote : @Factory(scope=EVENT|STATELESS) Related to this I have some troubles, maybe you can help me. I have this code: | @Statefull | @Name(userList) | @Scope(ScopeType.SESSION) | public class UserList { | | @DataModel | private ListUser users; | |

[jboss-user] [JBoss Seam] - Re: Multiple DataModels in an SFSB

2007-02-07 Thread [EMAIL PROTECTED]
void @Factory methods should not have a scope. The scope is defined on the attribute that does the outjection. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4012792#4012792 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Multiple DataModels in an SFSB

2007-02-06 Thread SmokingAPipe
I have had multiple DataModels in SFSBs and had no problems, but I have always used @DataModel on a variable, not on a method. Also I would think that @Factory and @DataModel should not be on the same thing. Try putting your @DataModels as variables, and leave your @Factorys on the

[jboss-user] [JBoss Seam] - Re: Multiple DataModels in an SFSB

2007-02-06 Thread lightbulb432
SmokingAPipe wrote : ... I have always used @DataModel on a variable, not on a method. Also I would think that @Factory and @DataModel should not be on the same thing. Could one of the developers of Seam comment on whether the above is correct? I'd think that whether I annotate a method or a