Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

8
  • 'ajax' is central to this post. Not sure why 'ajax' tag was removed. Commented May 24 at 7:36
  • 1
    That's is expected behavior. See also item #3 of stackoverflow.com/q/2118656. Why exactly do you want action methods to be invoked on validation failure? It sounds like those shouldn't be ajax listener methods in first place. I.e. you have an XY-problem. You'll need to take a step back and explain the actual problem in detail for which you incorrectly thought that using an ajax listener method would be the right solution. Then we can propose the correct solution.
    – BalusC
    Commented May 26 at 15:10
  • @BalusC- Requirement is that, everytime p:calendar value changes, the server side myBean.calReqOb should also be immediately updated (not wait for commandbutton submit). That's why I included the listeners. No logic inside listeners, but when listener is invoked, bean object setters are automatically called. Commented May 26 at 15:45
  • Further on the requirement, there's another set of p:selectBooleanCheckbox & p:calendar id="dependentCal". When Checkbox is enabled, dependentCal should pick current value from p:calendar id="calreq". That's why I added ajax listeners, as it updates myBean.calReqObj immediately. To keep my post simple, I didn't add this piece of code. Commented May 26 at 15:59
  • 1
    Then this is your solution: stackoverflow.com/q/14729982
    – BalusC
    Commented May 26 at 16:03