MyFaces Tomahawk
  1. MyFaces Tomahawk
  2. TOMAHAWK-1335

onclick attribute rendered twice for selectOneRow

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor 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).

        Activity

        Paul Rivera created issue -
        Paul Rivera made changes -
        Field Original Value New Value
        Attachment SelectOneRowRenderer.patch [ 12390664 ]
        Leonardo Uribe made changes -
        Resolution Fixed [ 1 ]
        Assignee Leonardo Uribe [ lu4242 ]
        Fix Version/s 1.1.8-SNAPSHOT [ 12313399 ]
        Status Open [ 1 ] Closed [ 6 ]
        Leonardo Uribe made changes -
        Fix Version/s 1.1.8 [ 12313507 ]
        Fix Version/s 1.1.8-SNAPSHOT [ 12313399 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development