以下是我的代码
<rich:select id="cycle_group" value="#{menuCycleBean.menuCycleDetailTO.menuCycleGroupId}" defaultLabel="#{msg['gobal.select.default.label']}"
converter="javax.faces.Integer">
<f:selectItems value="#{menuCycleBean.cycleGroupList}" var="n" itemLabel="#{n.label}" itemValue="#{n.id}" />
</rich:select>
“menuCycleGroupId”是“Integer”值,“n.id”是“String”,使用转换器它是在提交表单时从 String 到 Int 的自动转换器值,但是如果我想将选定的选项显示为 Rich:select 那么转换器不起作用? ?? 转换器仅在提交表单时有帮助,如果我想显示选定的记录该怎么办?