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

onclick attribute rendered twice for selectOneRow

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.1.8-SNAPSHOT
    • 1.1.8
    • 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="#

      {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

        1. SelectOneRowRenderer.patch
          0.5 kB
          Paul Rivera

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: