【发布时间】:2016-11-28 18:14:40
【问题描述】:
现在我有一种情况,就像我们在自动完成文本框获得焦点之前计算建议之前一样。因此,当客户端放置光标时,它必须显示建议,这样我们就可以避免客户端输入内容。
我试过minQueryLength="0",但没有成功。
这里是代码sn-p。
p:autoComplete value="#{x.selectedItems}" multiple="true" dropdown="true" var="item"
itemValue="#{item}" itemLabel="#{item.label}" forceSelection="true" minQueryLength="0" completeMethod="#{x.completeMethod}" converter="converter"
【问题讨论】:
-
你的问题是......
-
你可以从
onfocus="PF('widgetVarOfAutocomplete').search('')"开始,但它有一些副作用
标签: jsf jsf-2 primefaces