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

ConversationScoped bean's PostConstruct method called in every request

Well, i'm using a ConversationScoped and i hope the PostConstruct is called just one time in begin of conversation, see: @Named("disciplinaDetalheMB") @ConversationScoped public class DisciplinaDetalheMBImpl { private static final long…
Ronaldo Lanhellas
  • 2,975
  • 5
  • 46
  • 92
1
vote
1 answer

ConversationScoped Flows in CDI

I'm starting now with conversationScoped in CDI and i'm thinking about how can i configure the pages in the same conversation. I would like to configure a XML to say: page1 and page2 should be in the same conversationScoped, page3 should be in new…
Ronaldo Lanhellas
  • 2,975
  • 5
  • 46
  • 92
1
vote
1 answer

Inject ConversationScoped beans within an asynchronous method

I need to call a method annotated with @Asynchronous in EJB from a ConversationScoped bean. Inside this method I create instances of some classes using @Inject to inject ConversationScoped beans. Is it somehow possible to set the context of the…
red13
  • 427
  • 4
  • 12
1
vote
0 answers

Struts2 conversation plugin

Anyone has successfully used Struts conversation plugin? The documentation says that fields annotated with @ConversationField annotation in Action class is supposed to be retained for the entire conversation, which is not happening. Can you help me…
javaCurious
  • 140
  • 2
  • 14
1
vote
1 answer

Omnifaces Faces.redirect loses conversation scope

I have problem with org.omnifaces.util.Faces#redirect and conversation scoped bean: there is a button
golinko
  • 327
  • 2
  • 3
  • 14
1
vote
1 answer

Loaded Records not showing in view

So to make it relatively simple: I have some Primefaces-Page, which is supposed to represent database records in a table-structure. I keep these records in a List which resides in a @ConversationScoped backing bean. I have verified via…
Vogel612
  • 5,620
  • 5
  • 48
  • 73
1
vote
1 answer

How END one CDI conversation and completely destroy all variable of CDI Bean?

I use JSF2.0 and WELD-CDI and jboss AS7.I use CDI@ConversiationScope in page-backbean. To go to the one page, I am using the menu-item., As shown:
M.Namjo
  • 374
  • 2
  • 13
1
vote
1 answer

Conversation scope from Springfuse

Has anyone tried using the Conversation scope implementation from Springfuse? JSF2 Conversation Does it work well? Any use cases where it doesn't or issues encountered? The link to browse their projects on Github is broken, but if you use their main…
citress
  • 889
  • 3
  • 13
  • 35
1
vote
0 answers

How to use CDI Conversation Filter in JSF2.2 Application

In my JSF 2.2 bases application I created a wizard which is based on @ConversationScope. To deal with errors I added CDI Conversation Filter to my web.xml. My first question is about the right url-pattern for the filter-mapping. My Wizard runs…
jheider
  • 111
  • 8
1
vote
0 answers

Equivalent of ViewScope using CDI Conversation scope

Is it possible that i begin my conversation each time the page is loaded and end it when i move out of the page. How do i use conversation scope of CDI to work exactly like View Scope. I don't want to use seam-faces or my faces Codi extensions . I…
user19999111
  • 170
  • 1
  • 3
  • 10
1
vote
1 answer

JSF ViewState with Conversations

We are using JSF with Primefaces on a IBM Websphere 8. My problem is, that if I have more Conversations in JSF, the ViewState expires. If a user works on two conversations and navigates to many pages, the buffer for viewstates (default 20 slots) is…
anm
  • 545
  • 3
  • 17
1
vote
1 answer

@ConversationScope bean does not retain reference values

I am trying to implement Twitter login process. During the login process a user need to be redirected to a Twitter web-site to enter his/her credentials and then he/she will be redirected to my website URL. Before the first redirect an instance of…
Ivan Mushketyk
  • 8,107
  • 7
  • 50
  • 67
1
vote
1 answer

Conversation Scope not working with redirect

I'm working with JSF and PrettyFaces and I need to do the next thing. I have 4 buttons generated in an ui:repeat. Every commandButton sets an object in a Conversation Bean and then I have to navigate to another page and get the object that was set…
dcalap
  • 1,048
  • 2
  • 13
  • 37
1
vote
0 answers

conversation scope for spring

We have java web app that runs on spring and jsf 1.2. Also we use apache orchestra as framework for Conversation scope. But we are always having problems with the orchestra and the last problem was that orchestra ConversationManager does not…
trims
  • 453
  • 4
  • 9
1
vote
1 answer

Conversational Scope - Conversation Propagation

On a JSF page, every handle file upload event creates a new Instance of Bean. As if it is like a new client each time. Also it seems like the web browser is a different client too. So, Is there a way that these FileUploadEvents coming from only one…
jacktrades
  • 7,224
  • 13
  • 56
  • 83