conversation-scope

Omnifaces Faces.redirect loses conversation scope

安稳与你 提交于 2019-12-24 13:14:15
问题 I have problem with org.omnifaces.util.Faces#redirect and conversation scoped bean: there is a button <p:commandButton action="#{navigationHandler.gotoCreateCar}" actionListener="#{createHandler.init(searchHandler.search())} value="#{msg.search}" update=":articleSearchForm"> <f:param name="cid" value="#{javax.enterprise.context.conversation.id}"/> </p:commandButton> which must do a navigation to createCar page within the same conversation scope after init of my conversation scoped bean:

Conversation not propagated automatically on form submission?

时光怂恿深爱的人放手 提交于 2019-12-24 06:36:03
问题 I have the following conversation scoped backing bean: @Named @ConversationScoped public class TestConversation implements Serializable { private Logger logger = LoggerFactory.getLogger(TestConversation.class); private List<Integer> numbers; @Inject private Conversation conversation; @PostConstruct public void init() { logger.info("Creating TestConversation bean!!!"); numbers = new ArrayList<Integer>(); numbers.add(3); numbers.add(4); numbers.add(5); numbers.add(6); conversation.begin(); }

How to retrieve all existing long-running conversations in Weld?

我的未来我决定 提交于 2019-12-11 11:26:03
问题 I'm writing application in JBoss 7.1.1.Final, Weld, Seam 3. I have following bean: @ConversationScoped public class ConversationBean implements Serializable { @Inject Conversation conversation; private Article article; ... } Now, the user might create multiple conversations, each conversation will be associated with the instance of ConversationBean. I need to be able to get all those instances that are associated with long-running conversation. The reason why I need an access to them is that

Do I need getter for the injected Conversation interface in CDI bean?

萝らか妹 提交于 2019-12-11 10:45:37
问题 I have a @ConversationScoped CDI bean with a Conversation interface injected and access modifier set as private. Something like this: @Named @ConversationScoped public class MySampleCdiBean implements Serializable { @Inject private Conversation conversation; //other stuffs } My question is do I need a getter for this injected conversation interface? Does the CDI container need this getter? Any resource from where I can understand the underlying details of how CDI container handles a

How does JSF 2 ConversationScope work?

◇◆丶佛笑我妖孽 提交于 2019-11-27 07:27:48
I have a JSF facelets page that displays a table of data depending on which page they are viewing. When I display page 1, I call the view() action method to get the data from the database for both pages and store it as a private member field of the bean (two arrays). I also call conversation.start() on the injected conversation instance in the view() method. When the user clicks the "next" button ( h:commandButton ) to go to page 2, I am executing a next() method to update the backing bean to point to array 2 so it will print out its contents. The problem is, array 2 no longer exists. I don't

How does JSF 2 ConversationScope work?

喜你入骨 提交于 2019-11-26 13:17:42
问题 I have a JSF facelets page that displays a table of data depending on which page they are viewing. When I display page 1, I call the view() action method to get the data from the database for both pages and store it as a private member field of the bean (two arrays). I also call conversation.start() on the injected conversation instance in the view() method. When the user clicks the "next" button ( h:commandButton ) to go to page 2, I am executing a next() method to update the backing bean to