我有代码的<f:selectItems的itemDescription>不起作用
<p:selectOneMenu id="starter" value="#{reportRegisterManagedBean.starter}" style="width:160px" converter="#{reportStarterConverter}">
<f:selectItem itemLabel="Select Report Starter" itemValue="0"
itemDescription="TEST" />
<f:selectItems
value="#{reportRegisterManagedBean.startersSelectItems}" var="ds" itemLabel="#{ds.name}" itemValue="#{ds}" itemDescription="#{ds.description}" />
</p:selectOneMenu>
这里itemDescription="TEST"
属性附加伤害效果非常好于<f:selectItem>
标签。但itemDescription="#{ds.description}"
不能在<f:selectItems>
标签中使用。
这里是错误吗?
我认为是绿豆的问题。 可能是你需要重建你的项目。 – 2013-03-25 06:28:33
_not working_是什么意思? – Apurv 2013-03-25 06:32:47
我使用mave,现在我清理并安装项目,但不工作。为什么在标签中使用itemDescription =“TEST”,为什么不在中工作? –
zuri
2013-03-25 06:33:13