Announcement Announcement Module
Collapse
No announcement yet.
Spring webflow, expression is not evaluated in transition Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring webflow, expression is not evaluated in transition

    Hello

    I have a flow definition as follows

    Code:
    <view-state id="view1" view="/jsp/view1.xhtml">
               <transition on="login" to="view1" >
                      <evaluate expression="'test1'" result="viewScope.t1"/>
                      <evaluate expression="'test2'" result="viewScope.t2"/>
               </transition>
    </view-state>
    View1.xhtml:

    ${t1}<br/>
    ${t2}

    As you could see, in view1.xhtml I printed the two variables t1 and t2, but only 'test1' is printed. The second expression is ignored in transition. Anybody knows why this happened? Thank you.
Working...
X