Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-1335

onclick attribute rendered twice for selectOneRow

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1.8-SNAPSHOT
    • Fix Version/s: 1.1.8
    • Component/s: None
    • Labels:
      None
    • Environment:
      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="#

      {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).

        Attachments

          Activity

            People

            • Assignee:
              lu4242 Leonardo Uribe
              Reporter:
              paulr1984 Paul Rivera
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: