我正在迭代具有实例变量statisticsCurrency 的EquityStatisticsSet 类型的unmodifiableSet。在迭代时我收到以下错误属性'statisticsCurrency' not found on type java.util.Collections$UnmodifiableSet。
我哪里错了?请帮助我。
以下是 xhtml 和 java 文件。
.xhtml 文件:
<p:dataTable id="equityStatisticsTable"
value="#{commonStockController.equityStatistics}"
var="equityStatistics">
<p:column headerText="#{res.business_equity_statistics_statisticsCurrency_Label}">
<gs:textInput
inputName="business_equity_statistics_statisticsCurrency"
inputValue="#{equityStatistics.statisticsCurrency}" />
</p:column>
爪哇代码:
public Set<GSEquityStatistics> getEquityStatistics(){
return new HashSet<GSEquityStatistics>(commonStock.getAllStatistics());
}
public Set<GSEquityStatistics> getAllStatistics() {
return Collections.unmodifiableSet(equityStatisticsSet);
}
例外:
javax.servlet.ServletException: /content/business/security/commonStock.xhtml @166,64
inputValue="#{equityStatistics.statisticsCurrency}": Property 'statisticsCurrency' not found on type java.util.Collections$UnmodifiableSet
javax.faces.webapp.FacesServlet.service(FacesServlet.java:606)
org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:147)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)