ICEmobile
  1. ICEmobile
  2. MOBI-931

FlipSwitch disabled attribute does not work

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE 1.3.0.GA_P01
    • Fix Version/s: 1.3.1
    • Component/s: Faces
    • Labels:
      None
    • Environment:
      n/a

      Description

      The flipSwitch disabled attribute has no effect. Setting disabled="true" causes the component to render disabled="disabled' on the root anchor tag, which, of course, won't do anything:

      <a class="mobi-flipswitch mobi-flipswitch-on ui-btn-down-c" disabled="disabled" id="flipswitchPage:flipswitchForm:cap" name="flipswitchPage:flipswitchForm:cap" onclick="mobi.flipswitch.init('flipswitchPage:flipswitchForm:cap',{ event: event,elVal: this,singleSubmit: true}); return false; " style="float:right">
         <span class="mobi-flipswitch-txt-on">ON</span>
         <input id="flipswitchPage:flipswitchForm:cap_hidden" name="flipswitchPage:flipswitchForm:cap_hidden" type="hidden" value="true">
         <span class="mobi-flipswitch-txt-off ui-btn-up-c">OFF</span>
      </a>

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #38730 Wed Nov 06 07:54:34 MST 2013 philip.breau MOBI-931 FlipSwitch disabled attribute does not work
        - do not render onclick js if disabled="true"
        - add disabled style class
        - clean up code
        - render "disabled='disabled'" on the hidden field, rather than the <a> tag
        Files Changed
        Commit graph MODIFY /icemobile/trunk/icemobile/jsf/components/component/src/org/icefaces/mobi/component/flipswitch/FlipSwitch.java
        Commit graph MODIFY /icemobile/trunk/icemobile/jsf/components/component/src/org/icefaces/mobi/component/flipswitch/FlipSwitchRenderer.java
        Commit graph MODIFY /icemobile/trunk/icemobile/resources/themes/base/1_flip-switch.css

          People

          • Assignee:
            Philip Breau
            Reporter:
            Philip Breau
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: