primefaces keyup or other ajax event delay

后端 未结 4 1737
一个人的身影
一个人的身影 2020-12-03 04:59

I have something like:


    
         


        
4条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-03 05:36

    If using Primefaces 5.x, there's a delay attribute in the p:ajax tag for this purpose. So it's done like this:

    
        
    
    

    If not, you could achieve it using f:ajax instead of p:ajax (yes, it works with p:inputText, too). f:ajax has added support for queue control starting from JSF 2.2. So the code looks like:

    
        
    
    

    See also:

    • Primefaces 5.0 p:ajax javadoc
    • JSF 2.2 docs for f:ajax

提交回复
热议问题