2013-05-17 58 views
0

總是點擊組合框時,鍵盤ipad打開。如何防止鍵盤在使用Primefaces的p:selectOneMenu上彈出?

我的組合框是喜歡它:

<p:selectOneMenu id="idRegion" value="#{filterTypeFoodBean.foodSelected}"> 
    <f:selectItems value="#{filterTypeFoodBean.listFoods}" /> 
    <p:ajax update="idCustomer idCountry" 
    listener="#{filterTypeFoodBean.handlerUnitChange}" /> 
</p:selectOneMenu> 
+1

檢查答案... http://stackoverflow.com/questions/23912268/avoid-to-show-the-keyboard-when-a-selectonemenu-is-selected-on-mobile-devices/24054918# 24054918 –

+0

太棒了!我也需要在Primefaces 5中進行測試。也許它是固定的。 –

+0

如果您查看PF 5的源代碼,它尚未修復 –

回答

1

我可以使用h:selectOneMenu用於的替代號碼:selectOneMenu用於和它的正常工作!

+2

我測試過這個解決方案,看起來工作正常,所以你應該把這個答案標記爲可接受的。另一方面,用h:selectOneMenu改變p:selectOneMenu確實會影響L&F,所以在我的情況下是不合適的,但它仍然有效 – maxivis

相關問題