我期待着从我以我的形式挑选的盒子到某个特定圈子。
考虑这一点:
public enum OperatorDTO {
LESS_THAN ("<"),
GREATER_THAN (">"),
EQUALS ("="),
NOT_EQUALS("!=");
private String operator;
public String getOperator() {
return operator;
}
private OperatorDTO(String operator)
{
this.operator = operator;
}
以及我的表格中的本信:
<form:select path="rules[${counter.index}].operator">
<form:options itemLabel="operator" itemValue="operator" />
</form:select>
该网页在倒塌盒中显示各种“和”、“和”符号。
However, when I submit my form I get errors when it attempts to bind the values back to the enums e.g. "No enum const class com.fmrco.insight.adminconsole.dto.enums.OperatorDTO.<"
履行这一约束力是否容易?
增 编