seam-conversation

End Conversation in Seam when the user leaves the page

我们两清 提交于 2019-12-13 14:02:14
问题 Is there some way to end a conversation in Seam 2 when the user leaves the page? I know, that I can of course end a conversation in the navigation rules( see this post), but I want to end a conversation when the user enters an url in the address bar of the browser. Could this be achieved via Javascript (for example with onbeforeunload)? But how to stop a conversation via javascript? 回答1: I want to end a conversation when the user enters an url in the address bar of the browser. Could this be

Practical value for concurrent-request-timeout parameter or options for avoiding concurrent access to conversation exception

半腔热情 提交于 2019-12-12 08:14:07
问题 In the Seam Reference Guide, one can find this paragraph: We can set a sensible default for the concurrent request timeout (in ms) in components.xml: <core:manager concurrent-request-timeout="500" /> However, we found that 500 ms is not nearly enough time for most of the cases we had to deal with, especially with the severe restriction seam places on conversation access. In our application we have a combination of page scoped ajax requests (triggered by various user actions), some global

Seam conversation ending suddenly when using Redirect

社会主义新天地 提交于 2019-12-12 01:32:32
问题 Because I get some errors on conversations ending abruptly, I created in my project some test pages that reproduce the issue. The navigation takes place between pageA.xhtml and pageB.xhtml. Please tell me if I am using something in the wrong way. My configuration: Seam 2.2.0.GA WebLogic 10.3.2 (11g) Richfaces 3.3.2 JSF 1.2 Note: the same happens when using annotations to begin / end conversations ======= PAGE A @Name("pageaAction") public class PageaAction { @Out(required = false, scope =

Help me to understand SEAM and Hibernate?

落花浮王杯 提交于 2019-12-10 15:37:54
问题 I want to use SEAM Framework with Hibernate but do not want to use EJB. I cannot use EJB. First question is, can I use EntityManager? or is EntityManager a part of EJB? How can I get access to use Hibernate in my SEAM component? Thanks, Philip 回答1: With Seam, you can use either Hibernate or JPA (EntityManager). It works regardless of EJB. You can use plain POJO if you want. How can I get access to use Hibernate in my SEAM component ? Here goes Hibernate settings WEB-INF/components.xml

CDI/Weld - how to handle browser page refresh after ending conversation?

本小妞迷上赌 提交于 2019-12-06 03:11:13
问题 In the very early days of using CDI I'm navigating to a page with a long running conversation active using faces-redirect=true, so I have a URL like ..myPage.xhtml?cid=1. At some point I end the conversation, I mean this has to be a reasonable thing to do or you might as well use session scope? Anyway, I end the conversation and then the user hits F5, and then of course this causes a 'conversation not found' error as cid=1 doesn't exist. Can anyone suggest how to get around this problem? I'm

Practical value for concurrent-request-timeout parameter or options for avoiding concurrent access to conversation exception

喜夏-厌秋 提交于 2019-12-03 16:21:37
In the Seam Reference Guide, one can find this paragraph: We can set a sensible default for the concurrent request timeout (in ms) in components.xml: <core:manager concurrent-request-timeout="500" /> However, we found that 500 ms is not nearly enough time for most of the cases we had to deal with, especially with the severe restriction seam places on conversation access. In our application we have a combination of page scoped ajax requests (triggered by various user actions), some global scoped polling notification logic (part of the header, so included in every page) and regular links that

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