我需要将用户自定义选择项添加到选择的一个菜单中,如下面的最后一项所示:
<p:selectOneMenu id="mail_house" value="#{projectDataService.mailer.mail_house}">
<f:selectItem itemLabel="DOCUMATION" itemValue="DOCUMATION" />
<f:selectItem itemLabel="NCA" itemValue="NCA_ACP" />
<f:selectItem itemLabel="JS DIRECT" itemValue="JSPOD DIRECT" />
<f:selectItem itemLabel="PLATINUM" itemValue="PLATINUMDIRECT" />
// User customized entry as opposed to the available items.
<f:selectItem itemLabel="OTHER" itemValue="COLLECT USER INPUT TEXT HERE" />
</p:selectOneMenu>
我怎样才能做到这一点?