PrimeFaces迁移问题 - 5.1到5.2:组件<p:selectoneradio>

时间:2015-07-06 05:08:15

标签: jsf-2 primefaces

以下代码正在使用Primeface 5.1

<p:dataList value="#{dummyBean.formFieldBeans}"
    type="definition" var="xdata">
    <p:dataTable value="#{xdata.fields}" var="formPermConfigurator" >
        <f:facet name="header">
            <h:outputText value="#{xdata.fieldGroupName}" />
        </f:facet>
        <p:columnGroup type="header">
            <p:row>
                <p:column headerText="Field Name" />
                <p:column headerText="" />
                <p:column headerText="Deny" />
                <p:column headerText="Viewable" />
            </p:row>
        </p:columnGroup>
        <p:column>
            <h:outputText value="#{formPermConfigurator.fieldName}"
                title="#{formPermConfigurator.clientId}" />
        </p:column>
        <p:column>
            <p:selectOneRadio id="customPermission"
                value="#{formPermConfigurator.permission}" layout="custom">
                <f:selectItem itemLabel="Deny" itemValue="Deny" />
                <f:selectItem itemLabel="Viewable" itemValue="Viewable" />
            </p:selectOneRadio>
        </p:column>
        <p:column>
            <p:radioButton for="customPermission" itemIndex="0" />
        </p:column>
        <p:column>
            <p:radioButton for="customPermission" itemIndex="1" />
        </p:column>
    </p:dataTable>
</p:dataList>

但是使用Primeface 5.2,它会产生以下错误

j_idt99:j_idt120:1:j_idt122:0:customPermission: Validation Error: Value is not validj_idt99:j_idt120:1:j_idt122:0:customPermission: Validation Error: Value is not valid
j_idt99:j_idt120:1:j_idt122:1:customPermission: Validation Error: Value is not validj_idt99:j_idt120:1:j_idt122:1:customPermission: Validation Error: Value is not valid

p:selectOneRadio用于p:dataTable(在p:dataList中使用)。

我在项目中更改的是pom.xml中的PrimeFaces版本5.1到5.2

服务器:jboss-as-7.1.1.Final

0 个答案:

没有答案