Questions tagged [flow-scope]

The Flow Scope is a manually defined scope which spans multiple views.

The term "Flow Scope" is used in among others the JSF and Spring frameworks. This is particularly useful if you want to share an object across multiple predefined views. The flow scope is usually identified by an unique request parameter.

Related tags:

There exist also "request scope" and "application scope", but there are no tags for that.

34 questions
6
votes
2 answers

How to disable jftfdi jffi query params in JSF

I tried the last version of JavaServer Faces 2.2 (Mojarra 2.2.4) and noticed changing my query string in this unwanted way: page.jsf?jftfdi=&jffi= instead of page.jsf I've found that it is the new JSF 2.2 feature. But these query params(jftfdi,…
gry
  • 73
  • 5
3
votes
2 answers

Flow scope navigation to start page does not work

It is not so much a question, more of a note. With Glassfish4, in a JEE7 application I tried to use the flow scope using programmatic flow definition (java class annotated with @Produces @FlowDefinition). I navigated to the start page of the flow…
user729621
  • 51
  • 5
2
votes
0 answers

Thread-safety of @FlowScoped beans

I have done a small experiment with @FlowScoped beans, whose purpose, as I understand, is to make easier creating "wizard-type" web applications, gradually accumulating data over a sequence of pages, then, once all the data is ready, writing it to…
John Donn
  • 1,718
  • 2
  • 19
  • 45
2
votes
0 answers

How can I initiate a JSF Flow and pass it parameters?

I'm new to the world of Java programming (but not programming) and I have jumped in with two feet all the way up to my neck in trying to solve a problem. I have a JSF 2.2 page which is currently creating a link such as this: My…
2
votes
1 answer

Can a faces flow be started from within a Servlet?

I have a service, accessed by a servlet, which redirects the user to a login screen. The backing beans' scope is currently being changed from @ConversationScoped to @FlowScoped, as it's easier to handle. Is there a way to initialize a faces flow…
NanSil
  • 156
  • 2
  • 10
2
votes
1 answer

ContextNotActiveException in simple Faces Flow with CDI

Hy all ! I'm on a simple faces flow tutorial (Tutorial) but can't solve following error: 20:43:32,085 SEVERE [javax.enterprise.resource.webcontainer.jsf.application] (default task-14) Error Rendering View[/common/signup/signup.xhtml]:…
budha
  • 321
  • 1
  • 2
  • 11
1
vote
0 answers

JSF Webfilter into flow scope

I've been struggling on this problem for a while so I would really appreciate if you guys can give me some advice on how to best tackle this problem.I would like to filter when navigating to the login page if the user is already logged in and if so…
Den Thieme
  • 11
  • 2
1
vote
1 answer

Create a new FlowScoped bean when other one was not finished

I am working whith JSF (Primeface) and j2ee on weblogic. I have two different flows in my application: Flow configuration: public class RequestFlow implements Serializable { @Produces @FlowDefinition public Flow…
Aleksei
  • 104
  • 8
1
vote
0 answers

How to set another start node besides the default one with FlowScoped?

An extract from Anghel Leonard's book, : It is nested in the tag and indicates the JSF pages that represent the flow nodes; it associates an explicit ID to each page (Facelet) path (further, you can refer to each…
Farhan stands with Palestine
  • 13,890
  • 13
  • 58
  • 105
1
vote
1 answer

Exiting a JSF Flow

I'm starting to use JSF Flows, and after reading some examples and the specs, I got it to work. I'm using the Packaging Flows in Directories method, as described in section 11.4.3.3 of the specification. It seems easier and more in line with the…
RinaldoDev
  • 985
  • 6
  • 21
1
vote
1 answer

Using flows in webfragments

I'm trying to build a webapp that includes a webfragment which contains a flow. I started building a standalone version of the webapp I want to use as a webfragment. That's working. After that I converted it to this…
MiScha
  • 31
  • 5
1
vote
0 answers

JSF 2.2 and Flows - Unable to find matching navigation case from view ID

I develop a simple JSF flow application. JSF.2.2 and GlassFish 4. View structure of application looks like: But problem appears, when I enter to some flow. For example FLOW-A. After that, I get following warning: Unable to find matching navigation…
Michał Ziembiński
  • 1,124
  • 2
  • 10
  • 31
1
vote
0 answers

What is the point of view nodes in JSF 2.2?

What is the benefit of defining some view as flow view node? View node can be defined using FlowBuilder#viewNode or using view tag in faces-config.xml or in separate flow definition file. E.g.
czerny
  • 15,090
  • 14
  • 68
  • 96
1
vote
1 answer

Loading inboundParameters in Faces Flow after initializing method

I have defined a flow: /views/locking/locking.xhtml
T.G
  • 1,913
  • 1
  • 16
  • 29
1
vote
1 answer

FromOutcome for `Switch Node` directing flow to `Method Call Node` don't wont to work

I have difined my flow as: builder.id("", PublisherBean.PUBLISHER_FLOW_NAME); builder.viewNode("list", "/pages/publishers.xhtml"); builder.viewNode("details", "/pages/publishers-details.xhtml"); builder.viewNode("deleted",…
T.G
  • 1,913
  • 1
  • 16
  • 29
1
2 3