JSF 1.2 selectManyCheckbox:抛出异常,因为它不是Array或List类型

时间:2012-09-25 05:55:15

标签: jsf-1.2

我正在使用JSF1.2& myfaces实施。 使用的相应的罐子是jsf-api-1.2_04-p02.jar& MyFaces的-IMPL-1.2.9.jar。

<h:selectManyCheckbox value="#{restrictionMaintBean.selectedRestrictionTypeList}" layout="pageDirection" tabindex="5" onchange="setChangeFlag(true);">
                                    <f:selectItems value="#{restrictionMaintBean.restrictionTypeList}"/>
                                </h:selectManyCheckbox>

此代码在tomcat 6.0.20上运行正常,但tomcat 6.0.35在以下情况下运行:

  

org.apache.myfaces.component.html.ext.HtmlPanelGrid,Id:a18] [分类:   javax.faces.component.html.HtmlSelectManyCheckbox,ID:   j_id_jsp_1445681841_62]}不是Array或List类型           at org.apache.myfaces.shared_impl.renderkit.RendererUtils.internalSubmittedOrSelectedValuesAsSet(RendererUtils.java:716)           at org.apache.myfaces.shared_impl.renderkit.RendererUtils.getSelectedValuesAsSet(RendererUtils.java:615)           在org.apache.myfaces.shared_impl.renderkit.html.HtmlCheckboxRendererBase.renderCheckboxList(HtmlCheckboxRendererBase.java:112)           在org.apache.myfaces.shared_impl.renderkit.html.HtmlCheckboxRendererBase.encodeEnd(HtmlCheckboxRendererBase.java:65)

0 个答案:

没有答案