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

        Arran Mccullough created issue -
        Arran Mccullough made changes -
        Field Original Value New Value
        Attachment main.jspx [ 11133 ]
        Tyler Johnson made changes -
        Arran Mccullough made changes -
        Attachment TestBean.java [ 11134 ]
        Ken Fyten made changes -
        Fix Version/s 1.7.2 [ 10130 ]
        Assignee Priority P2
        Assignee Yip Ng [ yip.ng ]
        Priority Major [ 3 ] Minor [ 4 ]
        made changes -
        Attachment screenshot-1.jpg [ 11165 ]
        made changes -
        Attachment screenshot-2.jpg [ 11166 ]
        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?
        made changes -
        Attachment screenshot-3.jpg [ 11167 ]
        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.
        yip.ng made changes -
        Attachment ICE-3335.zip [ 11168 ]
        Ken Fyten made changes -
        Assignee Yip Ng [ yip.ng ] Mircea Toma [ mircea.toma ]
        Priority Minor [ 4 ] Major [ 3 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #17364 Tue Aug 19 09:21:00 MDT 2008 mircea.toma ICE-3335 Simplify how 'input' elements are updated.
        Files Changed
        Commit graph MODIFY /icefaces/branches/icefaces-1.7/icefaces/bridge/lib/element.js
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #17365 Tue Aug 19 09:21:18 MDT 2008 mircea.toma ICE-3335 Simplify how 'input' elements are updated.
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/bridge/lib/element.js
        Hide
        Mircea Toma added a comment -

        Simplify how 'input' elements are updated.

        Show
        Mircea Toma added a comment - Simplify how 'input' elements are updated.
        Mircea Toma made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Fix Version/s 1.7.2RC1 [ 10140 ]
        Fix Version/s 1.7.2 [ 10130 ]
        Ken Fyten made changes -
        Fix Version/s 1.7.2 [ 10130 ]
        Fix Version/s 1.7.2RC1 [ 10140 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Assignee Priority P2
        Assignee Mircea Toma [ mircea.toma ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: