Announcement Announcement Module
Collapse
No announcement yet.
SWF 2.0 : always-redirect-on-pause = false Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • SWF 2.0 : always-redirect-on-pause = false

    Hi everybody,

    I'm working on an application in SWF 2.0. For reasons of performances,
    i have recently changed my flow executor with this parameter.

    PHP Code:
        <webflow:always-redirect-on-pause value="false"/> 
    Since i've done it, each jsp including a form is not working (before the createFormObject method) causing the following exception :FlowExecutionException
    Cause : [Ljava.lang.String; cannot be cast to java.lang.String

    It seems that the request is transmitting a different kind of maps with arrays of parameters and not parameters anymore.

    How can I modify my form in order to make it working again ?

    Thanks.

  • #2
    Hello,


    I'm working with SWF 2.0 and I have the same problem.
    I'm also using the spring form tag in my JSPs.

    For example :
    <form:form commandName="${formObject}" id="search-form" method="post">

    The eventId is an hidden input into my form :
    <input type="hidden" name="_eventId" id="eventId" value="search" />


    The cause of the exception is that, with this code, the action of my form, in the generated html code, is different depending on the value of "alway-redirect-on-pause" attribute.

    with alway-redirect-on-pause = true, the action of the form is :
    "/myApp/flow.do?_flowId=myflow&flowExecutionKey=e3s3"

    with alway-redirect-on-pause = false, the action of the form is :
    "/myApp/flow.do?_flowExecutionKey=e3s3&_eventId=myEventId"
    myEventId is the last executed event

    In the second case, the _eventId parameter occurs twice (action of my form and hidden input). So instead of a string, you get an array of strings.

    I don't find any solution without changing all my forms. Do you have one ?

    Regards,

    Comment

    Working...
    X