当我尝试添加选择器然后选择一个选项时,脚本会出错。
<form:select propertyContainer="${searchCriteria}" id="macroconditions" liveSearch="true" name="macroconditions" propertyPath="macroconditions" convertsToAccordion="true"/>
日志显示:
Uncaught Error: Syntax error, unrecognized expression: option[value=text of the selector]
SearchCriteria脚本:
private EclMacroconditionCollection macroconditions;
public EclMacroconditionCollection getMacroconditions() {
if (macroconditions == null){
macroconditions = new EclMacroconditionCollection(EclMacrocondition.class);
Object period = getValueFromCookie(getPeriod());
macroconditions.getMacroconditions(period == null ? null : period.toString());
}
return macroconditions;
}
public void setMacroconditions(EclMacroconditionCollection macroconditions) {
this.macroconditions = macroconditions;
}
感谢