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
2
votes
2 answers

org.jboss.weld.context.NonexistentConversationException while rendering error page

I'm using the omnifaces FullajaxExceptionHandler to catch ViewExpiredExceptions. It works fine on most pages, but not while i'm in a conversation. Apparantly the handler catches the ViewExpiredException, tries to rerender the page with the contents…
2
votes
0 answers

Cant persist and entity with composite key

I'm try to persist an entity that have an composited primary key.. This is my Employee entity public class Employee implements Serializable{ /** * */ private static final long serialVersionUID = 1L; @Id …
2
votes
2 answers

CDI (Weld) + DeltaSpike + Converstation

I'm currently trying to get CDI (Weld to be more precise) to work with JSF 2 and a long running conversation. I'm starting the conversation in @ConversationScoped my backing bean. I'm also creating a @ConversationScoped entity manager. Sadly the…
egore911
  • 438
  • 3
  • 9
2
votes
1 answer

struts2 conversation and validation

I am working on a struts2 project that has interdependent forms. I found struts2-conversation, stepped through their simple-example and understood the conversation mechanism this far (please correct me if I got something wrong): The Controller is…
2
votes
0 answers

Seam - understanding PAGE scope and CONVERSATION scope

I still get confused about the PAGE and the CONVERSATION (temp) scope. Maybe I get some help here. As fas as I know, variables outjected to the PAGE scope live as long as the user only postbacks the same page. The temporary CONVERSATION scope…
joshd
  • 91
  • 9
1
vote
1 answer

Castle Active Record Conversations

All, I have looked through source of Castle Active Record project (in .net) in the area of conversations and conversational scope. I have concluded that the conversations in active record cannot span different threads. In other words, when I create…
ActiveX
  • 1,064
  • 1
  • 17
  • 37
1
vote
2 answers

Conversation not propagated automatically on form submission?

I have the following conversation scoped backing bean: @Named @ConversationScoped public class TestConversation implements Serializable { private Logger logger = LoggerFactory.getLogger(TestConversation.class); private List
Petar Minchev
  • 46,889
  • 11
  • 103
  • 119
1
vote
1 answer

Seam @Scope(ScopeType.CONVERSATION) behaves like request scoped

I am trying to implement a function where an h:commandButton component is used to produce a row of the h:dataTable with each button click. I'm testing this using a string list. When the page is first loaded, the function works fine, with the button…
jironemo
  • 21
  • 1
  • 7
1
vote
1 answer

Is it safe to mark the CDI conversation interface as transient?

Is the conversation interface you can inject in a @ConversationScoped bean safe to mark transient (ie. will CDI deal with it is during serialization) or I do I need a custom read/writeObject? @ConversationScoped public class…
TownCube
  • 1,280
  • 1
  • 13
  • 32
1
vote
0 answers

PrimeFaces 6.2 issue with CDI Conversations

I updated the PrimeFaces version to 6.2. Everything went good, except for an issue with CDI conversations management. After the update, it seems like the conversation is initialized at the first access to a page, but it is lost just before the first…
Luca G.
  • 86
  • 4
1
vote
2 answers

Starting a CDI conversation and injecting @ConversationScoped bean into stateless session bean

Similar questions have been asked, but don't quite address what I'm trying to do. We have an older Seam 2.x-based application with a batch job framework that we are converting to CDI. The job framework uses the Seam Contexts object to initiate a…
1
vote
0 answers

How to use CDI @ConversationScope in memory efficient way

Currently I am experimenting with CDI @ConversationScoped beans following the Oracle Tutorial. While monitoring memory usage, I found for a bean with two collections of 800+ Objects and other few objects its taking more than 60MB session space. I…
shakhawat
  • 2,639
  • 1
  • 20
  • 36
1
vote
1 answer

ConversationScoped bean injected in servlet behaves like a RequestScoped bean

My intention is just to invoke a conversationscoped bean by a servlet. The bean itself should increase its property ticketnumber up to 4. This is the servlet: @WebServlet public class ConversationServlet extends HttpServlet { private static…
Hakan Kiyar
  • 1,199
  • 6
  • 16
  • 26
1
vote
0 answers

JBWEB006003: Cannot convert conversation of type class java.lang.String to interface java.util.Map

I am attempting to convert some session scoped beans to conversation scope. When I try to access a method in one of the beans from my menu.xhtml page, I get the following error: javax.servlet.ServletException: /menu.xhtml @23,94…
Bob Powell
  • 11
  • 5
1
vote
1 answer

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

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…
mushfek0001
  • 3,845
  • 1
  • 21
  • 20