Questions tagged [conversation-scope]

The conversation scope is a bit like the traditional session scope in that it holds state associated with a user of the system, and spans multiple requests to the server. However, unlike the session scope, the conversation scope:

  • is demarcated explicitly by the application, and

  • holds state associated with a particular web browser tab in a JSF application (browsers tend to share domain cookies, and hence the session cookie, between tabs, so this is not the case for the session scope).

A conversation represents a task—a unit of work from the point of view of the user. The conversation context holds state associated with what the user is currently working on. If the user is doing multiple things at the same time, there are multiple conversations.

The conversation context is active during any JSF request. Most conversations are destroyed at the end of the request. If a conversation should hold state across multiple requests, it must be explicitly promoted to a long-running conversation.

For more about it : https://docs.jboss.org/weld/reference/1.0.1-Final/en-US/html/scopescontexts.html

89 questions
1
vote
1 answer

How to ensure an active conversation in JSF2?

We have a JSF2 based web application which models a purchase process, where the user enters and selects different information in a wizard-like manor, can navigate forward and backward and at some point finishes the process. So nothing special, a…
Alexander Rühl
  • 6,769
  • 9
  • 53
  • 96
1
vote
1 answer

Conversation Scope CDI with Ajax

I'm trying to use CDI conversation scope and I have some doubts: - Do I need to propagate cdi id when use ajax request? For example:
Victor Bello
  • 493
  • 1
  • 8
  • 23
1
vote
1 answer

JSF 'Tab' bean scope

I need create webapp with two pages and one backing bean for both pages. I tried @SessionScoped, but when I open other tab in a browser, I see the same data as in previous tab. I tried to use MyFaces Orchestra, but backing bean is created on each…
ILYA
  • 495
  • 6
  • 18
1
vote
2 answers

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

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…
lukas
  • 545
  • 2
  • 7
  • 18
1
vote
1 answer

What Causes A Conversation ID To Be Incremented

I'm trying to track down a problem with my CDI conversations. I've got a page that works if I take one route through my application, but not if I go through another. I believe it's something conversation related but I cannot figure out what. The…
Lee Theobald
  • 8,461
  • 12
  • 49
  • 58
1
vote
2 answers

Error in JSF/CDI conversation scope when begin is called two times

I'm using the CDI conversation scope and it's ok when user follows the normal scenario. However, when user don't complete de "conversation" I get this error: WELD-000214 Attempt to call begin() on a long-running conversation Obviously, is because…
polypiel
  • 2,321
  • 1
  • 19
  • 27
0
votes
1 answer

Weld + JSF 2.0 @ConversationScoped doesn't keep state

I'm trying to use CDI's implementation Weld, on a JBoss AS 7, and within a JSF 2. 0 application. The fact is that my @ConversationSconed @Named bean doesn't seem to keep his state when I begin the conversation. In ordre to see that, I am just using…
Zarkus13
  • 302
  • 2
  • 9
0
votes
1 answer

SelectBooleanCheckbox rendered state does not match the backing bean

I'm using JSF2.0 and am building up a wizard. I have encountered a problem with SelectBooleanCheckboxes. Here is the workflow: Load page with checkboxes (values are bound to a SortedMap in the backing bean). Tick them, and click next. This…
asellitt
  • 1
  • 4
0
votes
1 answer

How to create a link or button which calls an action and doesn't preserve cid?

Here is a simple usecase which I don't manage to realise : I want to create a link or button which calls a server method (action) and will redirect to a page without preserving the cid parameter. I'm using JSF2, JBoss 7 and Seam 3. Here are two…
Anthony O.
  • 22,041
  • 18
  • 107
  • 163
0
votes
1 answer

I don't understand how the @ConversationScoped annotation works in CDI

I'm using the following code to test the operation of ConversationScoped, but I don't understand how it works. I open conversation, set the value of conversationBean.i = 1, then close conversation and open a new conversation, but the value of…
0
votes
1 answer

What Slack scopes are needed for adding a bot to private channels using conversations.join API method?

I'm using JS Bolt SDK to add my bot to private channels programatically. According to Slack docs for conversation.join , the bot should have certain scopes for the call to success. I had no problem with public channels by adding the scope…
0
votes
3 answers

Providing EntityManager by an @ConversationScoped method

I tried to run the simple JEE6 application generated by maven archetype groupId: org.fluttercode.knappsack , artifactID: jee6-sandbox-archetype in JBoss7. (went through this turial, sorry, in German) However, when calling the welcome JSF, I get the…
rainer198
  • 3,195
  • 2
  • 27
  • 42
0
votes
1 answer

A/V calls in Conversations (xmpp)

Audio and video calls are work fine When mobile phones are in the same network, but when mobile phones are in different network audio and video calls are not work, we implement our own server using http://help.conversations.im/ this reference. we…
Sajeenthiran
  • 417
  • 5
  • 11
0
votes
0 answers

Proper way to handle multiple injected @ConversationScoped beans

I am injecting multiple @ConversationScoped beans in one @ViewScoped bean and this has caused a lot of Conversation Locked issues. To rectify this issue, in all the @ConversationScoped bean, I put lines of code to end the existing conversations…
0
votes
0 answers

ConversationScoped EntityManager

Actually I want to migrate a Seam 2 application to Java EE 7 with CDI and are trying to imitate the behavior of the Seam Home Component. I am creating a application-managed EntityManager with a CDI producer and want to use it in a…
Georg Leber
  • 3,470
  • 5
  • 40
  • 63