h:commandLink with onclick="customFunction" does not do what taglib javadoc of
jsf ri suggest to do
---------------------------------------------------------------------------------------------------
Key: MYFACES-1857
URL: https://issues.apache.org/jira/browse/MYFACES-1857
Project: MyFaces Core
Issue Type: Bug
Affects Versions: 1.2.2
Reporter: Leonardo Uribe
Assignee: Leonardo Uribe
The page
http://java.sun.com/javaee/javaserverfaces/1.2/docs/tlddocs/h/commandLink.html
says this:
If an "onclick" attribute was specified by the user, render this JavaScript in
a function, and render the user's JavaScript in a function. Render both
functions in a choice function as follows:
var a=function(){#USER_FUNCTION#}; var b=function(){#JSF_FUNCTION#}; return
(a()==false) ? false : b();
where #USER_FUNCTION# is the user's JavaScript and #JSF_FUNCTION# is the
JavaScript rendered by JSF. The choice function should operate such that if the
user's JavaScript returns true, then the rendered JavaScript will also execute.
Myfaces should do this as well.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.