[
https://issues.apache.org/jira/browse/MYFACES-2458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12907920#action_12907920
]
Werner Punz edited comment on MYFACES-2458 at 9/10/10 3:59 AM:
---------------------------------------------------------------
Ok I just checked the f:ajax onError problem, I am not sure if this is really a
bug, because the way it is rendered...
you pass an unwrapped command as error handler which is executed automatically
at onclick time.
I will check mojarra if it also does it, but I think passing a simple alert as
error handler is a no go here, because at render level where it should be
interecepted it cannot be clearly determined whether the code is a function or
not (we are on java there)
wrapping it into a string might be a way to go and then wrapping the string
into a function and an eval.
I will investigate further but I assume mojarra also does it like we do and the
asumption on how to set the error handler simply is wrong, I will check it.
was (Author: werpu):
Ok I just checked the f:ajax onError problem, it indeed is a problem on the
jsf.js side, the solution will probably be to check if a function is passed and
if not wrap it into a function dynamically.
I have not yet checked against mojarra, but I see this indeed as a bug.
> 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.