Uploaded image for project: 'Spring Web Flow'
  1. Spring Web Flow
  2. SWF-1746

Transition between view in a web flow

    XMLWordPrintable

    Details

      Description

      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

        Attachments

        1. endStateTest.xhtml
          0.4 kB
        2. view.xhtml
          0.8 kB
        3. view-flow.xml
          0.5 kB
        4. webflow-config.xml
          2 kB
        5. webmvc-config.xml
          2 kB

          Activity

            People

            Assignee:
            rstoya05-aop Rossen Stoyanchev
            Reporter:
            MatteoTundo Tundo Matteo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: