Hi Ivy Team I have a autocomplete. The autocomplete is required field. In autocomplete. I have ajax to handle change event. When autocomplete changes, some fields will be updated below. But When I clear data from autocomplete. The message required is display and some fields are no more update. So I want to do validation only when a button is clicked which submits the form but not when autocomplete changes. How I can do this? Note: I try using "immediate" attribute in ajax to switch off validation but it is not work.
Thanks asked 11.12.2019 at 23:40 anhle |
Hi In my opinion is immidiate="true" (as you said) the way to go. But you have two ajax elements and the immidiate is only set on the first. Additionaly the documentation from Primefaces mention no change event on autocomplete widgets (https://primefaces.github.io/primefaces/8_0/#/components/autocomplete). I think you're problem is that you set this flag on the wrong ajax element. And if this still not working may you can try to add a process="@this" to the ajax element. PS: On google you can find a lot to Primefaces and JSF stuff too ;) Kind regards Lukas answered 12.12.2019 at 03:05 Lukas Lieb ♦♦ |
Once you sign in you will be able to subscribe for any updates here
By RSS:Markdown Basics
Tags:
Asked: 11.12.2019 at 23:40
Seen: 4,583 times
Last updated: 12.12.2019 at 03:05