Primefaces <;p:SelectOne功能表>;,滤波器和转换器

Primefaces <;p:SelectOne功能表>;,滤波器和转换器,primefaces,Primefaces,我有一个带过滤器的菜单。值和标签都是字符串。在这种情况下,是否必须设置“converter”属性?我询问的原因是,如果没有提供“转换器”,则过滤器功能不起作用。例如: <p:selectOneMenu value="#{menuBean.selectedCountry}" filter="true" filterMatchMode="startsWith"> <f:selectItem itemLabel="Select One" itemValue=""/>

我有一个带过滤器的菜单。值和标签都是字符串。在这种情况下,是否必须设置“converter”属性?我询问的原因是,如果没有提供“转换器”,则过滤器功能不起作用。例如:

<p:selectOneMenu value="#{menuBean.selectedCountry}" filter="true" filterMatchMode="startsWith">
    <f:selectItem itemLabel="Select One" itemValue=""/>
    <f:selectItem itemLabel="US" itemValue="1"/>
    <f:selectItem itemLabel="Spain" itemValue="2"/>
</p:selectOneMenu>


谢谢你的观点和帮助

您没有指定primefaces版本,但这是3.4中的一个错误。您可以设置p:selectOneMenu的高度属性,也可以从此处应用以下修复

谢谢你的意见。我用的是PrimeFaces3.3。我在中添加了“height”属性,但没有呈现输入字段。“过滤器”似乎没有打开。有人知道这和什么问题有关吗?谢谢不客气,如果答案有助于你解决问题,请接受。