我使用t:selectOneCountry显示带有JSF1.2的国家列表。我的问题有两部分:
我看到了:http://myfaces.apache.org/tomahawk-project/tomahawk12/tagdoc/t_selectOneCountry.html,它提到使用f:select筛选器,但我不知道我必须编写哪些代码。
发布于 2010-11-14 20:31:48
如果我没记错的话,您可以使用<f:selectItem>标记将国家列表限制在某些国家。类似于:
<t:selectOneCountry ....>
<f:selectItem value="DE"/>
<f:selectItem value="UK"/>
<f:selectItem value="FR"/>
</t:selectOneCountry>https://stackoverflow.com/questions/4177871
复制相似问题