Hi ,
I am using key filter to prevent user from entering invalid data . I just wanted to know if it is possible to add the message so that it is easy to understand that invalid character has been typed .
Using PF 3.2 ,
Regarding key filter
Do you want "live" messages during typing as I described in my blog? http://ovaraksin.blogspot.de/2011/07/fi ... input.html
Maybe you can also use test function. See 3. example with
In the test function you can write if / else block. "if" for valid characteres and "else" for invalid. You can use p:remoteCommand in the else block and update p:growl / p:message(s) in case of wrong typed data.
Maybe you can also use test function. See 3. example with
Code: Select all
<pe:keyFilter for="autoComplete1" testFunction="return c == 'z';"/> // c - input by user character
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin
-
- Information
-
Who is online
Users browsing this forum: No registered users and 16 guests