【发布时间】:2017-06-16 00:07:33
【问题描述】:
我的错误:
javax.el.PropertyNotWritableException: /rapport.xhtml @295,93 value="#
{userReporting.getNameType(userReporting.selected)}": Illegal Syntax
for Set Operation
我的 xhtml :
<p:selectManyMenu id="type" value="#{userReporting.getNameType(userReporting.selected)}">
<f:selectItem itemLabel="do" itemValue="do" />
<f:selectItem itemLabel="ro" itemValue="ro" />
<f:selectItem itemLabel="go" itemValue="go" />
</p:selectManyMenu>
我的豆子:
public String[] getNameType(int id){
String[] strings = (String[]) this.genTypeFacade.getNameType(id).stream().toArray(String[]::new);
return strings;
}
我无法提交表单
【问题讨论】:
标签: jsf