Jsf 双击listbox的值后如何调用Java方法
我有如下的多选列表框Jsf 双击listbox的值后如何调用Java方法,jsf,jsf-2,listbox,multi-select,double-click,Jsf,Jsf 2,Listbox,Multi Select,Double Click,我有如下的多选列表框 <t:selectManyListbox id="sourceCars" style="width: 40%;" value="#{PersonalInformationDataBean.listOfUsers002}" size="10"> <t:selectItems value="#{PersonalInformationDataBean.showAllMyRemData()}" var="t"
<t:selectManyListbox id="sourceCars" style="width: 40%;"
value="#{PersonalInformationDataBean.listOfUsers002}" size="10">
<t:selectItems value="#{PersonalInformationDataBean.showAllMyRemData()}" var="t"
itemLabel="#{t.title}" itemValue="#{t.status}" >
</t:selectItems>
</t:selectManyListbox>
我想要的是调用一个Java方法,如果我双击列表框中的项目,就说callMeOnDoubleClick()
你知道怎么做吗?使用
另见:
valueChangeListener
?t:selectManyListbox你能看看我的新手机吗
<t:selectManyListbox ...>
<f:ajax event="dblclick" listener="#{bean.listener}" />
</t:selectManyListbox>