myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Kienenberger (JIRA)" <...@myfaces.apache.org>
Subject [jira] Created: (TOMAHAWK-939) t:radio should support standard pass-through attributes
Date Thu, 22 Mar 2007 14:54:32 GMT
t:radio should support standard pass-through attributes
-------------------------------------------------------

                 Key: TOMAHAWK-939
                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-939
             Project: MyFaces Tomahawk
          Issue Type: Improvement
          Components: selectOneRadio / radio
            Reporter: Mike Kienenberger


t:radio should support the standard passthrough attributes (and probably some others like
id) in order to customize the generated <input>.  For example, onclick, onchange, etc.

A temporary fix to this problem looks like the following (for facelets).   However, this is
not the right long-term solution.

Index: tomahawk/core/src/main/java/org/apache/myfaces/renderkit/html/ext/HtmlRadioRenderer.java
===================================================================
--- tomahawk/core/src/main/java/org/apache/myfaces/renderkit/html/ext/HtmlRadioRenderer.java
(revision
431891)
+++ tomahawk/core/src/main/java/org/apache/myfaces/renderkit/html/ext/HtmlRadioRenderer.java
(working
copy)
@@ -131,7 +131,9 @@

         writer.startElement(HTML.LABEL_ELEM, uiSelectOne);

-        renderRadio(facesContext,
+    	uiSelectOne.getAttributes().put(HTML.ONCLICK_ATTR,
radio.getAttributes().get(HTML.ONCLICK_ATTR));
+
+    	renderRadio(facesContext,
                     uiSelectOne,
                     itemStrValue,
                     selectItem.getLabel(),




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


Mime
View raw message