I have a simple form and a pretty simple bean that listens to an ajax event. Here is some of the code:
<script type="text/javascript">
function myfunction() {
alert('error');
}
</script>
<h:commandButton id="someid" value="somevalue" >
<f:ajax event="click" execute="someids" listener="#{MyBean.fireEvent}" onerror="myfunction()" />
</h:commandButton>
I am using eclipse in debug to see when MyBean.fireEvent is getting called and as far as I can tell it is getting called after onerror="myfunction()" is executed. What could be the reason for that?
I am using mojarra 2.0 with Resin.
Thanks.
looks like a formatting problem, maybe try: