spring-webflow icon indicating copy to clipboard operation
spring-webflow copied to clipboard

Transition between view in a web flow [SWF-1746]

Open spring-operator opened this issue 3 years ago • 1 comments

Tundo Matteo opened SWF-1746 and commented

Hi, we are trying to configure an old war application, running on a Jboss application server, in a spring boot JAR. Other dependencies to be remarked are:

PrimeFaces 7 JoinFaces 4.4.3

We are still using the old xml configuration files which can be found in the attachments.

The resources folder has this structure: ---resources       +---context

            +--- webflow-config.xml              --- webmvc-config.xml         +--- flows              --- view                     --- view-flow.xml          +--- META-INF                +--- resources                       --- flows                             --- view                                    +--- endStateTest.xhtml                                     --- view.xhtml                 --- faces-config.xml            --- application.yml

We have put a simple flow to test the transition between two views. The initial view state (view.xhtml) of the flow is correctly rendered, along with all the static resources for both primefaces and jsf components. However, the transition to another flow( triggered but the command link or button) does not work properly and redirects to the same initial view. In the FlowViewHandler method:

private String resolveResourcePath(RequestContext context, String viewId) 

we cane see that the viewId is always related to first view.

Is there something missing in the configuration attached? Does the web flow work correctly  with this resource structure? Do you have any other hint to suggest?

Thank you


Affects: 2.5.1

Attachments:

spring-operator avatar Apr 14 '21 11:04 spring-operator

Rossen Stoyanchev commented

Please, provide a minimal sample.

spring-operator avatar Apr 20 '21 10:04 spring-operator