[
https://issues.apache.org/jira/browse/TOMAHAWK-939?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Leonardo Uribe resolved TOMAHAWK-939.
-------------------------------------
Resolution: Fixed
Fix Version/s: 1.1.11-SNAPSHOT
Assignee: Leonardo Uribe
Now it is possible to set passthrough attributes to t:radio to override the
ones defined on t:selectOneRadio layout="spread". Additionally, if an id is set
on t:radio, that one will be used on rendering too.
> 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
> Assignee: Leonardo Uribe
> Fix For: 1.1.11-SNAPSHOT
>
>
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira