What about setting the scope on the factory to page?
Alternatively, you could put an action in pages.xml to remove users from the
contexts.
|
|
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110960#4110960
Reply to the post :
http://www.jbos
anyone?
I tried @DataModel(scope=ScopeType.PAGE) and it still doesnt seem to be
working...
Am I doing something wrong?
This seems pretty straight forward...
Reload the Data Model with every time the page is rendered...
View the original post :
http://www.jboss.com/index.html?module=bb&op=v
if I try scope=ScopeType.PAGE on the Factory, I get some long error about
injected the "user" property. I did some research in the Forums and someone
said to never do scope on the Factory annotation...
So, does the ScopeType.PAGE work for DataModel. I am assuming not...
Well, it would be cool i
Outject the datamodel into event scope. Easy :)
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=474#474
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=474
___
jboss-u
ok...i need some help with your suggestion pete...
Here is how I am Outjecting the datamodel into even scope...
|
| @Name("usermanager")
| @Stateful
| @Scope(SESSION)
| @Restrict("#{identity.loggedIn}")
| public class UserManager implements UserManagerInterface {
|
| @O
That doesn't outject the datamodel into event scope. You would need an event
scoped manager component which does the outjection.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4111449#4111449
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=po
Pete,
I am stuck with a similar problem at the moment but 'event scoped manager
component' is a bit too vague for me :-(
Can you please clarify this a little bit further?
Thanks,
Mark
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112461#4112461
Reply to
I think what pete is getting at is that you are currently trying to outject a
Page scoped object from a session scoped bean.
By putting the outjection and factory in a separate page scoped bean (the page
scoped manager) you are splitting the problem up. Your page scoped users are
not being gene
thanks, in theory I know what to do now.
But @Scope(PAGE) is not allowed when using @Stateful. I try to use CONVERSATION
scope, I'll post my solution if I get it to work
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112833#4112833
Reply to the post :
http:/
Actually, that's my mistake (re the @Statefule annotation)
It doesn't need to be stateful, you aren't holding the state from one request
to the next since it is page scoped. Once the page has hit the browser, the
user list has gone since it is page scoped which is what the goal of the post
was
Also, I think there is another small problem with the code you have there. I
could be wrong on this, so hopefully someone will correct me if that is the
case.
You have outjection on the datamodel for users, and also return a value for the
factory method.
When you return the value from the fac
11 matches
Mail list logo