未捕获错误:语法错误,无法识别的表达式:option []

时间:2015-03-11 09:55:21

标签: spring jsp

当我尝试添加选择器然后选择一个选项时,脚本会出错。

<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;
}

感谢

0 个答案:

没有答案