Grails showing wrong view to the webflow

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Grails showing wrong view to the webflow

sergiomichels
I have two different flows. If I navigate to the flow #1 and after that try to switch to the flow#2 I still see the view from the flow #1.

The debug shows "getting flow definition with id xxx" for both flows, and after that it selects the flow #1.

The flow are in different controllers and have different names, but share some block names like init and process.

Here's the debug:

2013-04-19 17:39:50,571 [http-nio-8080-exec-4] DEBUG impl.DefaultFlowExecutionRepository  - Getting flow execution with key 'e1s2'

2013-04-19 17:39:50,571 [http-nio-8080-exec-4] DEBUG registry.FlowDefinitionRegistryImpl  - Getting FlowDefinition with id 'export/exportar' --> flow #1

2013-04-19 17:39:50,574 [http-nio-8080-exec-4] DEBUG registry.FlowDefinitionRegistryImpl  - Getting FlowDefinition with id 'import/importar' --> flow #2

2013-04-19 17:39:50,574 [http-nio-8080-exec-4] DEBUG executor.FlowExecutorImpl  - Resuming flow execution with key 'e1s2

2013-04-19 17:39:50,574 [http-nio-8080-exec-4] DEBUG impl.SessionBindingConversationManager  - Locking conversation 1

2013-04-19 17:39:50,574 [http-nio-8080-exec-4] DEBUG impl.DefaultFlowExecutionRepository  - Getting flow execution with key 'e1s2'

2013-04-19 17:39:50,574 [http-nio-8080-exec-4] DEBUG registry.FlowDefinitionRegistryImpl  - Getting FlowDefinition with id 'export/exportar' ---> why flow #1, even if my url points to flow #2??

Any thoughts? Am I missing something?


--
Sérgio Michels
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Grails showing wrong view to the webflow

sergiomichels
As workaround I created temporary actions, that redirect to the webflow, so instead of going directly from a flow to another, it passes to the redirect action...

--
Sérgio Michels


On Fri, Apr 19, 2013 at 5:42 PM, Sergio Michels <[hidden email]> wrote:
I have two different flows. If I navigate to the flow #1 and after that try to switch to the flow#2 I still see the view from the flow #1.

The debug shows "getting flow definition with id xxx" for both flows, and after that it selects the flow #1.

The flow are in different controllers and have different names, but share some block names like init and process.

Here's the debug:

2013-04-19 17:39:50,571 [http-nio-8080-exec-4] DEBUG impl.DefaultFlowExecutionRepository  - Getting flow execution with key 'e1s2'

2013-04-19 17:39:50,571 [http-nio-8080-exec-4] DEBUG registry.FlowDefinitionRegistryImpl  - Getting FlowDefinition with id 'export/exportar' --> flow #1

2013-04-19 17:39:50,574 [http-nio-8080-exec-4] DEBUG registry.FlowDefinitionRegistryImpl  - Getting FlowDefinition with id 'import/importar' --> flow #2

2013-04-19 17:39:50,574 [http-nio-8080-exec-4] DEBUG executor.FlowExecutorImpl  - Resuming flow execution with key 'e1s2

2013-04-19 17:39:50,574 [http-nio-8080-exec-4] DEBUG impl.SessionBindingConversationManager  - Locking conversation 1

2013-04-19 17:39:50,574 [http-nio-8080-exec-4] DEBUG impl.DefaultFlowExecutionRepository  - Getting flow execution with key 'e1s2'

2013-04-19 17:39:50,574 [http-nio-8080-exec-4] DEBUG registry.FlowDefinitionRegistryImpl  - Getting FlowDefinition with id 'export/exportar' ---> why flow #1, even if my url points to flow #2??

Any thoughts? Am I missing something?


--
Sérgio Michels

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Grails showing wrong view to the webflow

houbie
In reply to this post by sergiomichels
It should work with a redirect to flow 2 from within an end state of flow 1.
Can you share the details of your flow definitions?

Grtz,
Ivo
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Grails showing wrong view to the webflow

sergiomichels
Hi Ivo. I'm not in the end of the flow, and the link exists in the menu. I'm just trying to switch from flow #1 to #2 through menu.

The example is here: http://stackoverflow.com/questions/16154564/webflow-its-possible-to-switch-between-flows

--
Sérgio Michels


On Tue, Apr 23, 2013 at 4:45 AM, houbie <[hidden email]> wrote:
It should work with a redirect to flow 2 from within an end state of flow 1.
Can you share the details of your flow definitions?

Grtz,
Ivo



--
View this message in context: http://grails.1312388.n4.nabble.com/Grails-showing-wrong-view-to-the-webflow-tp4643802p4643872.html
Sent from the Grails - user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Grails showing wrong view to the webflow

BorisP
In reply to this post by sergiomichels
Hi Sergio

Have you got this resolved?

I am working on Grails 2.4.4 app and have the same problem.

Thanks

Boris
Loading...