【发布时间】:2013-07-02 23:37:45
【问题描述】:
我正在使用 spring webflow,但在将字段从 spring 表单绑定到我的模型时遇到了问题。 所以我有一个模型:
public class MyModel implements Serializable {
private long senderAccountId;
private String senderId = "";
private String documentId = "";
private String performDateView = ""
//......
}
在jsp中我有:
<portlet:actionURL var="actionURL" portletMode="view">
<portlet:param name="execution" value="${flowExecutionKey}"/>
</portlet:actionURL>
<form:form id="creationForm" modelAttribute="payment" action="${actionURL}"
method="post">
<form:input path="senderId" size="18"/>
//............
在我的 webflow xml 中:
//....
<transition on="saveAsDraft" to="decisionActionResult" validate="true">
//......
在 IE10 和 FireFox 中: 当我在验证对象中时,我的所有模型字段都被清除并设置为空。 但在谷歌浏览器中运行正常。只是我的问题吗?
【问题讨论】:
-
您不需要在标题中添加标签。我为你删除了它们;-)
标签: java jsp spring-webflow