[
https://issues.apache.org/jira/browse/MYFACES-2458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12903458#action_12903458
]
Nick Belaevski commented on MYFACES-2458:
-----------------------------------------
I have two issues with 2.0.2-SNAPSHOT:
1) Function _Lang.getEventTarget(...) fails to find form if event is one of
ajax events (e.g. 'error'). In this case event contains 'source' property, but
'srcElement' or 'target' is checked
2) This fails:
<h:commandButton value="Button" action="#{bean.action}">
<f:ajax onerror="alert(1)" />
</h:commandButton>
alert is shown before request is actually submitted. This works as expected:
<h:commandButton value="Button" action="#{bean.action}">
<f:ajax onerror="function() {alert(1)}" />
</h:commandButton>
> Miscellaneous AJAX bugs
> -----------------------
>
> Key: MYFACES-2458
> URL: https://issues.apache.org/jira/browse/MYFACES-2458
> Project: MyFaces Core
> Issue Type: Bug
> Components: JSR-314
> Affects Versions: 2.0.0-alpha-2
> Reporter: Curtiss Howard
> Priority: Minor
>
> There are a couple minor AJAX-related bugs:
> * h:commandButton needs to append "return false;" for onclick when a behavior
> chain is present.
> * if <f:ajax> disabled=true, the AJAX call is still emitted.
> * Possible issue with <f:ajax> execute="multiple ids". Seems the
> javax.faces.partial.execute request param may differ from Sun RI.
> * Unable to restore StateHolder when listener is specified for <f:ajax>.
> * <f:ajax> onevent not being handled.
> * <f:ajax> onerror not being handled.
> * <f:ajax> render="@all" not working correctly.
> * <f:ajax> render="@form" not working correctly.
> * <f:ajax> render="@this" not working correctly.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.