Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.1.8-SNAPSHOT
-
None
-
None
-
tomahawk-1.1.8-SNAPSHOT
myfaces 1.1.7-SNAPSHOT
tomahawk 6.0.16
java 1.6.0
Description
onclick attribute for selectOneRadio is rendered twice.
here's my sample jsf:
<h:dataTable var="item" value="#
{selectOneBean.data}">
<h:column>
<t:selectOneRow onclick="someFunc()"/>
</h:column>
<h:column>
<h:outputText value="#
"/>
</h:column>
</h:dataTable>
here's my sample bean:
public class SelectOneBean
{
ArrayList data;
public SelectOneBean()
{ data = new ArrayList(); data.add("mars"); data.add("jupiter"); data.add("neptune"); data.add("mercury"); }public ArrayList getData()
{ return data; }}
The html generated looks like this:
<input type="radio" name="" id="_idJsp0:0:_idJsp2" value="_idJsp0:0:_idJsp2" onclick="someFunc()" onclick="someFunc()" /></td><td>mars</td></tr>
There is no loss of functionality here, though. The javascript function will still get called (once).