【发布时间】:2013-03-07 08:55:00
【问题描述】:
我只需要在富面孔组件中的右键单击事件,特别是在suggestionbox。
我需要在鼠标右键单击和左键单击时提供一些功能。
我认为这将通过富脸的contextMenu 来完成,但它不适用于suggestionbox。
在我想传递 id 并显示模态面板的每个输出文本上(右键单击和左键单击显示不同的模型面板)。
jsf 1.2 + Richfaces 3.3
我的代码
<h:inputText id="templateName" style="text-align:left" size="45"
value="#{templateMaintenanceBean.templateName}"
onblur="upperCase(this)" >
<sc:suggestionbox height="200" width="300" id="properySuggestBox" for="templateName"
oncomplete="testFunction();" nothingLabel="No Template Found" reRender="selectedMedicationDiv"
suggestionAction="#{templateMaintenanceBean.autocomplete}" var="result" border="2" minChars="0"
immediate="true" shadowDepth="10" >
<h:column>
<h:outputText value="#{result.templateName}" id="temp" />
</h:column>
</sc:suggestionbox>
【问题讨论】: