谢谢lijinlinlin
但是你说的不能单选,我这里并没有发生,虽然他们被包含在table里,但是没有生成ID,可以单选,我的代码:
<h:column>
<f:facet name="header">
<h:outputText value="selected" />
</f:facet>
<h:selectOneRadio value="#{conference.id}">
<f:selectItem itemValue="#{queryList.id}"/>
</h:selectOneRadio>
</h:column>
<h:selectOneRadio value="#{conference.id}">
中的conference.id为formbean的一个变量
<f:selectItem itemValue="#{queryList.id}"/>
中的queryList.id为每条记录的id
我的想法是点击每行的纪录能把queryList.id传给conference.id,现在的问题是当我要执行操作的时候抛出错误
Validation Error: {0}Value is not valid
还有你说的(DTO)DataModel.getRowData().getId();能具体一点吗,我对JSF还不是很熟悉。