primefaces jsf p:ajax event keyup ignore arrow keys -
I have an input text field that has a valid button. When you click the valid button, it verifies some backend and a green check mark appears next to the button. I would like that the green check marks disappear, when the price changes, and the focus is not lost now because there is a test button on the page which I validate / disable. Therefore, incident = "blurry" or even "change" will not work because they can click on the button when the input text field changes. I used the key and it works great, but the arrow keys and tabs etc ... trigger this event and I do not want them.
& lt; H: inputText id = "baseURL" style = "width: 425px;" value = "# {View.baseURL}" & gt; & Lt; P: Ajax event = "Keys" update = "valid icon: edit list format: testUrlButton" listener = "# {View.resetValidation ()}" /> & Lt; / H: inputText>
I see JQuery options for this, but I need to work with JSF and Primacy tags.
What I have seen here:
The solution will be closer to: / P>
& lt; H: inputText id = "BaseURL" style = "width: 425px;" Value = "# {View.baseURL}" onkeyup = "If (event.keyCode! = #### _YOUR_KEYS _ ####) incorrect return; " & Gt; & Lt; P: ajax event = "keyball" execution = "@ this keycode" update = "valid mark: edit list format: testUrlButton" listener = "# {View.resetValidation ()}" /> & Lt; / H: inputText>
Comments
Post a Comment