Announcement Announcement Module
Collapse
No announcement yet.
STS validator problem on SWF dynamic transition target Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • STS validator problem on SWF dynamic transition target

    When I use a dynamic transition target like
    Code:
    <transition on="back" to="#{myFlowAction.breadcrumbBack(myFlowBean)}"/>
    STS web flow validator reports an error like:
    Element transition references a non-exiting state "#{..."
    If I use
    Code:
    <transition on="back" to="${myFlowAction.breadcrumbBack(myFlowBean)}"/>
    the STS validator stops reporting that error, but I run in an exception:
    Cannot find state with id '${myFlowAction.breadcrumbBack(myFlowBean)}'
    Can we switch the EL? (and if so - to what?) Or can we reconfigure the STS SWF validator (this should be the way I suppose)?

    Thank you for any suggestion.

    Regards.

  • #2
    No ideas on this validation problem?

    Comment


    • #3
      You found an honest to goodness bug. Looks like the current Web Flow uses the Spring Expression Language, while older versions of Web Flow used Unified EL. See http://static.springsource.org/sprin...erence.html#el

      Unfortunately the validator just hadn't been updated to compensate for this change. Fixed for the 2.9.0RC1 release. Cheers.

      STS-2431: STS validator problem on SWF dynamic transition target
      https://issuetracker.springsource.com/browse/STS-2431

      Comment


      • #4
        Thank you. I think best would be providing the option to decide which EL to use - at least for older SWF versions (I think it was possible to change the EL there).

        Comment

        Working...
        X