onclick attribute rendered twice for selectOneRow
-------------------------------------------------
Key: TOMAHAWK-1335
URL: https://issues.apache.org/jira/browse/TOMAHAWK-1335
Project: MyFaces Tomahawk
Issue Type: Bug
Affects Versions: 1.1.8-SNAPSHOT
Environment: tomahawk-1.1.8-SNAPSHOT
myfaces 1.1.7-SNAPSHOT
tomahawk 6.0.16
java 1.6.0
Reporter: Paul Rivera
Priority: Minor
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="#{item}"/>
</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).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.