ICEfaces
  1. ICEfaces
  2. ICE-3335

Visible property for commandButton not working in IE

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.1
    • Fix Version/s: 1.7.2
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      IE6, IE7

      Description

      The visible property of the commandButton does not seem to be working in IE. It works fine in FireFox.

        Activity

        Hide
        yip.ng added a comment -

        The visible property itself is working fine. See screenshot-1 and screenshot-2. They were produced by manually toggling the visible property in the bean.

        The action listeners for the Hide and Show buttons also work fine and the style property for the Test button is set properly on the server side. The IE debug console also shows that IE gets the style updates, yet IE doesn't update the page properly. How can that be?

        Show
        yip.ng added a comment - The visible property itself is working fine. See screenshot-1 and screenshot-2. They were produced by manually toggling the visible property in the bean. The action listeners for the Hide and Show buttons also work fine and the style property for the Test button is set properly on the server side. The IE debug console also shows that IE gets the style updates, yet IE doesn't update the page properly. How can that be?
        Hide
        yip.ng added a comment -

        Added an input text field and output text field. See screenshot-3. It works for the output text field but not for the input text field. On Firefox everything works as expected. Here is the log output in Firefox:

        window.ziwn#1 before dom update: display = inline
        window.ziwn#1 applied update : <input class="iceCmdBtn" id="j_id11:j_id14" name="j_id11:j_id14" onblur="setFocus('');" onclick="iceSubmit(form,this,event);return false;" onfocus="setFocus(this.id);" style="display:none;" type="submit" value="Test">...</input>
        window.ziwn#1 after dom update: display = none
        window.ziwn#1 before dom update: display = inline
        window.ziwn#1 applied update : <input class="iceInpTxt" id="j_id11:j_id15" name="j_id11:j_id15" onblur="setFocus('');" onfocus="setFocus(this.id);" onkeypress="iceSubmit(form,this,event);" onmousedown="this.focus();" style="display:none;" type="text" value="Test">...</input>
        window.ziwn#1 after dom update: display = none
        window.ziwn#1 before dom update: display = inline
        window.ziwn#1 applied update : <span class="iceOutTxt" id="j_id11:j_id16" style="display:none;">...</span>
        window.ziwn#1 after dom update: display = none

        And here is the log output in IE:

        window.Tpv3#1 : before dom update: display = inline
        window.Tpv3#1 : applied update : <input class="iceCmdBtn" id="j_id11:j_id14" name="j_id11:j_id14" onblur="setFocus('');" onclick="iceSubmit(form,this,event);return false;" onfocus="setFocus(this.id);" style="display:none;" type="submit" value="Test">...</input>
        window.Tpv3#1 : after dom update: display = inline
        window.Tpv3#1 : before dom update: display = inline
        window.Tpv3#1 : applied update : <input class="iceInpTxt" id="j_id11:j_id15" name="j_id11:j_id15" onblur="setFocus('');" onfocus="setFocus(this.id);" onkeypress="iceSubmit(form,this,event);" onmousedown="this.focus();" style="display:none;" type="text" value="Test">...</input>
        window.Tpv3#1 : after dom update: display = inline
        window.Tpv3#1 : before dom update: display = inline
        window.Tpv3#1 : applied update : <span class="iceOutTxt" id="j_id11:j_id16" style="display:none;">...</span>
        window.Tpv3#1 : after dom update: display = none

        The display property is not updated properly for the button and the input text field.

        Show
        yip.ng added a comment - Added an input text field and output text field. See screenshot-3. It works for the output text field but not for the input text field. On Firefox everything works as expected. Here is the log output in Firefox: window.ziwn#1 before dom update: display = inline window.ziwn#1 applied update : <input class="iceCmdBtn" id="j_id11:j_id14" name="j_id11:j_id14" onblur="setFocus('');" onclick="iceSubmit(form,this,event);return false;" onfocus="setFocus(this.id);" style="display:none;" type="submit" value="Test">...</input> window.ziwn#1 after dom update: display = none window.ziwn#1 before dom update: display = inline window.ziwn#1 applied update : <input class="iceInpTxt" id="j_id11:j_id15" name="j_id11:j_id15" onblur="setFocus('');" onfocus="setFocus(this.id);" onkeypress="iceSubmit(form,this,event);" onmousedown="this.focus();" style="display:none;" type="text" value="Test">...</input> window.ziwn#1 after dom update: display = none window.ziwn#1 before dom update: display = inline window.ziwn#1 applied update : <span class="iceOutTxt" id="j_id11:j_id16" style="display:none;">...</span> window.ziwn#1 after dom update: display = none And here is the log output in IE: window.Tpv3#1 : before dom update: display = inline window.Tpv3#1 : applied update : <input class="iceCmdBtn" id="j_id11:j_id14" name="j_id11:j_id14" onblur="setFocus('');" onclick="iceSubmit(form,this,event);return false;" onfocus="setFocus(this.id);" style="display:none;" type="submit" value="Test">...</input> window.Tpv3#1 : after dom update: display = inline window.Tpv3#1 : before dom update: display = inline window.Tpv3#1 : applied update : <input class="iceInpTxt" id="j_id11:j_id15" name="j_id11:j_id15" onblur="setFocus('');" onfocus="setFocus(this.id);" onkeypress="iceSubmit(form,this,event);" onmousedown="this.focus();" style="display:none;" type="text" value="Test">...</input> window.Tpv3#1 : after dom update: display = inline window.Tpv3#1 : before dom update: display = inline window.Tpv3#1 : applied update : <span class="iceOutTxt" id="j_id11:j_id16" style="display:none;">...</span> window.Tpv3#1 : after dom update: display = none The display property is not updated properly for the button and the input text field.
        Hide
        yip.ng added a comment -

        Test Application.

        Show
        yip.ng added a comment - Test Application.
        Hide
        Mircea Toma added a comment -

        Simplify how 'input' elements are updated.

        Show
        Mircea Toma added a comment - Simplify how 'input' elements are updated.

          People

          • Assignee:
            Unassigned
            Reporter:
            Arran Mccullough
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: