0
我试图在SWF中实现一个Action,但即使在最简单的例子中也会得到相同的错误。Spring Webflow:没有执行任何操作
错误:“java.lang.IllegalStateException:没有行动被执行,因此,我不能执行任何状态转换”
import org.springframework.webflow.execution.Action;
import org.springframework.webflow.execution.Event;
import org.springframework.webflow.execution.RequestContext;
public class HelloAction implements Action {
@Override
public Event execute(RequestContext rc) throws Exception {
return new Event(this, "success");
}
我已经声明了豆。
<bean id="helloAction" class="app.action.HelloAction"/>
而且在flow.xml ..
<action-state id="intermedio">
<action bean="helloAction"/>
<transition on="success" to="fin"/>
</action-state>
<end-state id="fin" view="final" />
如果我不使用 “HelloAction”它工作正常。但是如果我想在SWF中使用Action,我总是会得到以前的错误。
还有其他需要吗?
在此先感谢。
如果我使用该选项,则获得:org.xml.sax.SAXParseException:cvc-complex-type.2.4.a:找到以元素'evaluate'开头的无效内容。 我也试过了: –
2013-04-18 11:56:10
哦,哇。你回到了Spring Web Flow 1.0。有什么特别的原因? (我的例子是2.x) – dbreaux 2013-04-18 14:01:24
理论上,我的例子也是2.x。我正在使用库2.x – 2013-04-22 11:49:22