Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: 1.7.2
    • Fix Version/s: None
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      Windows XP, Tomcat 6, both IE 6 and Firefox 2

      Description

      When using an ice:selectOneRadio with layout="spread", there is an inconsistency when using ice:radio tags. Note the differences in the input tag ids.

      <ice:selectOneRadio id="alphaRadio" value="#{bean.alphaValue}" layout="spread">
      <f:selectItems value="#{bean.alphaItems}"/>
      </ice:selectOneRadio>

      <!-- Produces -->
      <td>
      <input id="alphaRadio:_1" type="radio" value="ABC" name="alphaRadio" checked="checked"/>
      <label class="iceSelOneRb" for="alphaRadio:_1">ABC</label>
      </td>
      <td>
      <input id="alphaRadio:_2" type="radio" value="XYZ" name="alphaRadio" checked="checked"/>
      <label class="iceSelOneRb" for="alphaRadio:_1">XYZ</label>
      </td>

      -----------------------------------------------------------------------------------------

      <ice:selectOneRadio id="alphaRadio" value="#{bean.alphaValue}" layout="spread">
      <f:selectItems value="#{bean.alphaItems}"/>
      </ice:selectOneRadio>
      <ice:radio for="alphaRadio" index="0"/>
      <ice:radio for="alphaRadio" index="1"/>

      <!-- Produces -->
      <span>
      <input id="alphaRadio:_0" type="radio" value="ABC" onfocus="setFocus(this.id);" onblur="setFocus('');" name="alphaRadio"/>
      <label for="alphaRadio:_0">ABC</label>
      </span>
      <span>
      <input id="alphaRadio:_1" type="radio" value="XYZ" onfocus="setFocus(this.id);" onblur="setFocus('');" name="alphaRadio"/>
      <label for="alphaRadio:_1">XYZ</label>
      </span>

        Issue Links

          Activity

          Hide
          Andreas Reif added a comment -

          I can confirm this problem.

          I use the following environment:

          • JBoss 4.2.3 GA
          • IceFaces 1.7.2
          • JBoss Seam 2.1
          • internet explorer, mozilla firefox 2/3, opera, safari
          Show
          Andreas Reif added a comment - I can confirm this problem. I use the following environment: JBoss 4.2.3 GA IceFaces 1.7.2 JBoss Seam 2.1 internet explorer, mozilla firefox 2/3, opera, safari
          Hide
          Renzo Zanelli added a comment -

          The attached source file fixes the issues with selectOneRadio using layout="spread".
          This fixes two issues:
          1. Incorrect ice:radio ids.
          2. Radio button loses its selected value.

          This is the same fix provided for Jira issue ICE-3810.

          Show
          Renzo Zanelli added a comment - The attached source file fixes the issues with selectOneRadio using layout="spread". This fixes two issues: 1. Incorrect ice:radio ids. 2. Radio button loses its selected value. This is the same fix provided for Jira issue ICE-3810 .
          Hide
          Krashan Brahmanjara added a comment - - edited

          Correct patch for selected values submitted in ICE-3810.
          This patch do not change behaviour of id's on rev. 17939 because I don't see any related issues.

          Show
          Krashan Brahmanjara added a comment - - edited Correct patch for selected values submitted in ICE-3810 . This patch do not change behaviour of id's on rev. 17939 because I don't see any related issues.
          Hide
          Renzo Zanelli added a comment -

          This fix is for v1.7.2 SP1 only.

          Show
          Renzo Zanelli added a comment - This fix is for v1.7.2 SP1 only.
          Hide
          Ken Fyten added a comment -

          Marking as Closed / Invalid as part of legacy ICEfaces ICE / Compat component JIRA cleanup.

          Note: This issue may be resolved in a newer ICEfaces release, available here: http://www.icesoft.org/java/downloads/icefaces-downloads.jsf

          If the issue persists with the current ICEfaces release, please create a new JIRA for it.

          Show
          Ken Fyten added a comment - Marking as Closed / Invalid as part of legacy ICEfaces ICE / Compat component JIRA cleanup. Note: This issue may be resolved in a newer ICEfaces release, available here: http://www.icesoft.org/java/downloads/icefaces-downloads.jsf If the issue persists with the current ICEfaces release, please create a new JIRA for it.

            People

            • Assignee:
              Unassigned
              Reporter:
              Kyle Gordon
            • Votes:
              8 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: