简体   繁体   English

如何在Richfaces中的rich:ComboBox中删除文本光标?

[英]How to remove text cursor in rich:ComboBox in Richfaces?

I am using a combobox from richfaces. 我正在使用来自richfaces的组合框。 Check the following code 检查以下代码

<rich:comboBox id="combo" value="#{thebean.selectedValue}" enableManualInput="false">
<f:selectItems value="#{thebean.listOfValues}" />
</rich:comboBox>

The items are displayed and is not editable. 这些项目将显示,并且不可编辑。 However, the text cursor appears when you click on the selected item. 但是,当您单击所选项目时,将出现文本光标。 How to remove that ? 如何删除? It should be completely uneditable. 它应该是完全不可编辑的。 No text cursor should appear. 不应出现文本光标。

Thanks. 谢谢。

Then just use a normal dropdown, no combobox. 然后,只需使用普通下拉菜单,而不使用组合框即可。 Use h:selectOneMenu . 使用h:selectOneMenu

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM