[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)
|
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
@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
___
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
@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
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 :
[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;
|
|
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 :
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
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
10 matches
Mail list logo