h:commandLink cannot have onclick attribute in tld file for JSF 1.1
-------------------------------------------------------------------

                 Key: MYFACES-1757
                 URL: https://issues.apache.org/jira/browse/MYFACES-1757
             Project: MyFaces Core
          Issue Type: Bug
          Components: JSR-127
    Affects Versions: 1.1.5
            Reporter: Mike Kienenberger
            Priority: Minor


h:commandLink cannot have onclick attribute in tld file for JSF 1.1. 

I just compared the tlds for MyFaces Core and JSF RI 1.1.

Apparently RI 1.1 doesn't support onclick, but MyFaces does.   That
seems like a bug as well.

http://myfaces.apache.org/impl/tlddoc/h/commandLink.html
http://java.sun.com/javaee/javaserverfaces/1.1_01/docs/tlddocs/h/tld-summary.html
http://java.sun.com/javaee/javaserverfaces/1.1_01/docs/api/

Ryan Lubke confirmed that the lack of onclick in the tld was intentional for 
JSF 1.1, and that the renderer is expected to ignore the value of 
HtmlCommandLink.getOnClick().

  http://mail-archives.apache.org/mod_mbox/myfaces-users/200711.mbox/browser
  http://www.nabble.com/forum/ViewPost.jtp?post=13553591&framed=y

For JSF 1.2, onclick has been added, the spec has been clarified, and the 
current behavior is likely correct.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to