我有以下 primefaces 组件,它应该只加载/WEB-INF/Resource/{1.png,2.png,3.png,4.png}
.
<p:ring id="weatherForecasts" value="#{eventPageCreatorBean.weatherForecasts}" var="weatherForecast" styleClass="image-ring" easing="easeInOutBack">
<p:panelGrid columns="1">
#{weatherForecast.forecastStart}
<p:graphicImage id="img" name="/WEB-INF/Resources/images/#{weatherForecast.weatherCondition.code}.png" />
#{weatherForecast.forecastEnd}
</p:panelGrid>
</p:ring>
通过从浏览器检查源代码,我得到了这个路径:
/meteocal-web/javax.faces.resource//WEB-INF/Resources/images/1.png.xhtml
有谁知道如何解决它?