Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.1
    • Fix Version/s: 2.0.6, 2.1.2, 2.2.0-m01
    • Component/s: ajax
    • Labels:
      None
    • Status Whiteboard:
      Hide

      size_small importance_large includes_patch

      Show
      size_small importance_large includes_patch

      Description

      When an Ajax insert operation is generated via

      partialWriter.startInsertAfter(id);

      containing table-related markup, such as:

      <insert><after id="j_idt6:dataTable:5"><![CDATA[<tr class="iceDatTblRow1" id="j_idt6:dataTable:6"><td class="iceDatTblCol1"><a class="iceCmdLnk" href="javascript:;" id="j_idt6:dataTable:6:j_idt8" onblur="setFocus('');" onclick="var form=formOf(this);form['j_idt6:j_idcl'].value='j_idt6:dataTable:6:j_idt8';iceSubmit(form,this,event);form['j_idt6:j_idcl'].value='';return false;" onfocus="setFocus(this.id);">+/-</a></td><td class="iceDatTblCol2"><span class="iceOutTxt" id="j_idt6:dataTable:6:j_idt12">v1.0</span></td></tr>]]></after></insert>

      the doInsert() function is not able to process this due to the browser "fixing" the temporary markup by adding ancestor <table> tags.

      1. ajaxInsertDelete.xhtml
        3 kB
        tedgoddard
      2. changebundle-2055.txt
        9 kB
        rogerk
      3. changebundle-2055.txt
        9 kB
        rogerk
      4. InsertDeleteBean.java
        7 kB
        tedgoddard
      5. insertfix.patch
        1 kB
        tedgoddard
      6. jsf.js.patch
        2 kB
        tedgoddard

        Activity

        Hide
        rogerk added a comment -

        Fix versions

        Show
        rogerk added a comment - Fix versions
        Hide
        rogerk added a comment -

        Committed to trunk:
        Sending jsf-api/src/main/resources/jsf.js
        Sending jsf-ri/systest/src/com/sun/faces/ajax/AjaxInsertDeleteTestCase.java
        Sending jsf-ri/systest/src/com/sun/faces/systest/model/ajax/InsertDeleteBean.java
        Sending jsf-ri/systest/web/ajax/ajaxInsertDelete.xhtml
        Transmitting file data ....
        Committed revision 9114.

        Committed to MOJARRA_2_1X_ROLLING:
        Sending jsf-api/src/main/resources/jsf.js
        Sending jsf-ri/systest/src/com/sun/faces/ajax/AjaxInsertDeleteTestCase.java
        Sending jsf-ri/systest/src/com/sun/faces/systest/model/ajax/InsertDeleteBean.java
        Sending jsf-ri/systest/web/ajax/ajaxInsertDelete.xhtml
        Transmitting file data ....
        Committed revision 9115.

        Commited to MOJARRA_2_0X_ROLLING:
        Sending jsf-api/src/main/resources/jsf.js
        Sending jsf-ri/systest/src/com/sun/faces/ajax/AjaxInsertDeleteTestCase.java
        Sending jsf-ri/systest/src/com/sun/faces/systest/model/ajax/InsertDeleteBean.java
        Sending jsf-ri/systest/web/ajax/ajaxInsertDelete.xhtml
        Transmitting file data ....
        Committed revision 9116.

        Show
        rogerk added a comment - Committed to trunk: Sending jsf-api/src/main/resources/jsf.js Sending jsf-ri/systest/src/com/sun/faces/ajax/AjaxInsertDeleteTestCase.java Sending jsf-ri/systest/src/com/sun/faces/systest/model/ajax/InsertDeleteBean.java Sending jsf-ri/systest/web/ajax/ajaxInsertDelete.xhtml Transmitting file data .... Committed revision 9114. Committed to MOJARRA_2_1X_ROLLING: Sending jsf-api/src/main/resources/jsf.js Sending jsf-ri/systest/src/com/sun/faces/ajax/AjaxInsertDeleteTestCase.java Sending jsf-ri/systest/src/com/sun/faces/systest/model/ajax/InsertDeleteBean.java Sending jsf-ri/systest/web/ajax/ajaxInsertDelete.xhtml Transmitting file data .... Committed revision 9115. Commited to MOJARRA_2_0X_ROLLING: Sending jsf-api/src/main/resources/jsf.js Sending jsf-ri/systest/src/com/sun/faces/ajax/AjaxInsertDeleteTestCase.java Sending jsf-ri/systest/src/com/sun/faces/systest/model/ajax/InsertDeleteBean.java Sending jsf-ri/systest/web/ajax/ajaxInsertDelete.xhtml Transmitting file data .... Committed revision 9116.
        Hide
        rogerk added a comment -

        fix version

        Show
        rogerk added a comment - fix version
        Hide
        rogerk added a comment -

        fix version

        Show
        rogerk added a comment - fix version
        Hide
        rogerk added a comment -

        fix version

        Show
        rogerk added a comment - fix version

          People

          • Assignee:
            rogerk
            Reporter:
            tedgoddard
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: