Hi,
I have an a4j:commandButton and I'd like to stop calling action based on user's answer to my javascript prompt. How I can do that? Before when I was using h:commandButton, I was able to do like
<h:commandButton onclick="return promptUser();" action=#{myBean.update}" />
Hi, you should read more about document of richfaces.
Then, the following code can do what you want. <h:commandButton onclick="if(condition())return false;" action=#{myBean.update}" />
condition() method returns a boolean value;