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
0
votes
1 answer

Tapestry 4.1 conversation scope. Possible?

Is it somehow possible to use conversational scope in Tapestry 4.1 and Hivemind? Right now, if user opens same page in two different Tabs, then they use same model which is Injected by Hivemind. So if he submits some data in first page, then in fact…
siim
  • 366
  • 2
  • 8
0
votes
1 answer

JSF with CDI conversation scope bean continue coveersation in a popup window

I'm using cdi conversation scope bean with jsf, inside my jsf page I open a popup window , and I want to use the same conversation id as the parent window. How can I do that? when I open the popup window and enter the bean, it is a new bean so the…
user2046810
  • 393
  • 1
  • 8
  • 21
0
votes
1 answer

Declarative conversation management on GlassFish 3, Java EE

I'm relying on @ConversationScoped EntityManagers in one of my applications. However, I now need to access said EntityManagers from outside a conversation (Timer EJB). I read a tutorial on how to write an Interceptor which opens a new conversation…
chzbrgla
  • 5,158
  • 7
  • 39
  • 56
0
votes
1 answer

JavaEE6 Conversation.end doesn't reset conversation.id to 1

Is the conversation.id not reset when conversation.end is called? Scenario: I have an app that uses conversation scope in CRUD, so when I visit the list page it starts a conversation. Go to the detail and click back will call end conversation and…
czetsuya
  • 4,773
  • 13
  • 53
  • 99
0
votes
1 answer

conversation gets destroyed when invalidating a session

I have a SessionManager which implements HttpSessionListener. In the SessionManager, I have a static hashtable of all active sessions. I am trying to create a function for forcing the invalidation of sessions. It looks something like : HttpSession…
inxis
  • 51
  • 1
  • 4
0
votes
1 answer

@ConversationScoped between two beans in a JSF/PrimeFaces app

Here's my dilemma. JSF/PrimeFaces web application. I have a @ManagedBean bean I'll call RequestBean.java associated with request.xhtml. I have a bean @ManagedBean called ResponseBean.java associated with response.xhtml. RequestBean has a method…
DougMH
  • 105
  • 1
  • 8
0
votes
1 answer

Use CDI ConversationScoped beans in Spring Controllers

I'm trying to make webapp which should use thymeleaf with spring controllers. But I'd like to have some CDI ConversationScoped beans injected into my Spring controller. For now I managed to configure CDI with my Spring application I when I tried to…
gandalfml
  • 908
  • 1
  • 10
  • 23
0
votes
1 answer

How to catch NonexistentConversationException

I have a link as follows: cagtegoryName When I want to try pass the category ID by URL, it shows the following error: WELD:00032 conversation not found for restoring id 1 If I just…
Hirren Gamit
  • 99
  • 2
  • 3
  • 10
0
votes
1 answer

How to store a bean per conversation

Is there a way to store some bean inside the conversation context? I.e for each new conversation, a new separate bean is created belonging to it.
azerIO
  • 519
  • 1
  • 9
  • 19
0
votes
1 answer

How to post to a conversation scope bean or access this bean from a servlet

The scenario, I have a client website that needs to post data to the server website. During the post, the server open a login page to authenticate the client and after successful authentication store the data in the database. I'm using javaee6, jsf,…
czetsuya
  • 4,773
  • 13
  • 53
  • 99
0
votes
2 answers

f:ajax Unable To See My Conversation

I'm having a bit of trouble with my AJAX event and I was wondering if someone could help me spot where I'm going wrong. I have a dropdown on my page that when it changes, I want it to update another portion of this page. When I use the page with no…
Lee Theobald
  • 8,461
  • 12
  • 49
  • 58
-1
votes
1 answer

difference between Transaction and Conversation in Java

I'm pretty new to java. Can someone tell me: when to use Transaction and when to use Conversation in Java? I know that a transaction is present in a database(update->delete->commit), but it's utility it's only in this case ? Thanks in advance
DaianaB
  • 33
  • 9
-1
votes
1 answer

ArrayList getting reset for each Managedbean call JSF

Scenario: I have a p:fileupload multiple="true" and a p:datatable below that. When I upload a file, the filename and filesize should be added in an ArrayList and should be displayed in the datatable. And for each file being attached, the arrayList…
-5
votes
1 answer

Initiate a private phone call for both side in Android app

I am building an Android app and want to initiate an anonymous phone call for both caller and receiver. For example: User A press 'call User B' button, and then initiate an anonymous phone call to User B. The tricky point is that both User A and B…
1 2 3 4 5
6