简体   繁体   中英

Action class method not executed after validation in spring Webflow

I have added a validation in my flow and it works fine, the only problem is I am not able to execute my action class method after the validation. If I remove the validation it works fine.

Here is what my flow.xml looks like

<view-state id="myView" view="newView" model="viewModel">
<transition on="doChangeView" to="doChangeView" />
<transition on="done" to="home" validate="false" />
</view-state>

<action-state id="doChangeView">
    <evaluate expression="viewAction.doChangeView" />
    <transition on="done" to="home"  />
</action-state>

I am guessing that I am not setting the flow correctly. Any help will be appreciated.

In my case, after looking through logs I found that there was some error in the validation method. After resolving it I was able to execute the method in my action class.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM