我想包括一个枚举添加枚举访问Spring WebFlow
public enum ContactType {
PHONE,
FAX,
MAIL
}
我flow.xml
有在视图的访问,并在流动本身。我试图将其添加为VAR(如豆腐):
<var name="ContactType" class="my.package.common.util.ContactType"/>
但我得到的错误:
NoSuchMethodException: my.package.common.util.ContactType.<init>()
我应该init()
枚举以某种方式?或者可能有另一种方法来包含它?
你尝试HTTP://forum.spring。 IO /论坛/ Spring的项目/网络/的Webflow/78197-枚举常量功能于Webflow的表达语言? –
你正在使用哪个EL?春季EL? OGNL? – rptmat57
@ rptmat57 Spring EL – joc