目前,我正在使用struts 1在应用程序中集成HDIV库的最后一个版本。
看上去效果很好。但是,在某些使用select标记的页面中,会出现以下错误:
org.hdiv.taglib.html.OptionTagHDIV.renderOptionElement(OptionTagHDIV.java:124) org.apache.struts.taglib.html.OptionTag.doEndTag(OptionTag.java:225) at org.hdiv.taglib.html.OptionTagHDIV.doEndTag(OptionTagHDIV.java:91)的java.lang.NoSuchFieldError:过滤器
显然,问题来自于option标签。
我的代码如下:
<html:select property="profilId" styleId="profileCriteria">
<html:option value="">
</html:option>
<html:optionsCollection name="profilesManager" property="profiles" value="ID" label="name" />
</html:select>HDIV中是否有修复此错误并显示select选项的方法?
谢谢你的帮助。
编辑:
这个简单的代码也不起作用:
<html:select property="profilId" styleId="profileCriteria">
<html:option value="1">Profile1</html:option>
<html:option value="2">Profile2</html:option>
</html:select>发布于 2015-12-09 08:47:32
检查是否使用了正确的Struts库版本。看来您使用的是不支持Struts版本的HDIV。Gotzon Illarramendi (人类发展Illarramendi小组)
https://stackoverflow.com/questions/34072643
复制相似问题