Hello,
I am having a bit of an issue with onblur/onclick events in my
JSF (RichFaces) application. I have summarised the code below:
So basically, when the value of inputvalue is changed, I want to call my backing bean, which in turn will cause the page to rerender and display different fields on the page. This basically gives me a dynamic, data sensitive entry page. This works fine! Unfortunately, when the value of inputvalue has been changed and the user clicks cancel, the onchange event is fired, while the onclick associated with the button appears to be ignored. This results in the page rerendering, but the cancellation does not happen. I'm pretty new to JSF, so I don't really know what approach I should be taking here. I tried to add an <a4j:support> component to the button in an attempt to get multiple requests sent to the bean, as I'm perfectly happy for the page to rerender and then cancel. However, this did not seem to work either.
Any thoughts or insights would be greatly appreciated!!