ICEfaces-EE
  1. ICEfaces-EE
  2. IPCK-464

HtmlTagDecorator not passing through id attributes on HTML tags

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-3.2.0.GA
    • Fix Version/s: EE-3.3.0.GA_P02
    • Component/s: Core Extensions
    • Labels:
      None
    • Environment:
      EE

      Description

      The HtmlTagDecorator, available in the icefaces-ee-ext.jar, does not pass through the id attribute of tags. The following xhtml:

      <div id="sbt" style="color:red" class="test" onclick="alert('hello');"><center>
      <ice:commandLink id="sortByTitle_click"
      immediate="true"
      action="#{AuctionBean.sortByTitle}">
      <ice:outputText value="Item Name"
      title="Sort by the Item Name"/>
      </ice:commandLink>
      </center></div>

      generates the following HTML:

      <div class="test" onclick="alert('hello');" style="color:red">
         <center>
             <a class="iceCmdLnk" href="javascript:;" id="iceForm:iceTable:sortByTitle_click" onblur="setFocus('');" onclick="var form=formOf(this);form['iceForm:j_idcl'].value='iceForm:iceTable:sortByTitle_click';iceSubmit(form,this,event);form['iceForm:j_idcl'].value='';return false;" onfocus="setFocus(this.id);"><span class="iceOutTxt" id="iceForm:iceTable:j_idt21" title="Sort by the Item Name">Item Name</span></a>
         </center>
      </div>

        Activity

        Philip Breau created issue -
        Philip Breau made changes -
        Field Original Value New Value
        Description The HtmlTagDecorator, available in the icefaces-ee-ext.jar, does not pass through the id attribute of tags. The following xhtml:

        [code]
        <div id="sbt" style="color:red" class="test" onclick="alert('hello');"><center>
        <ice:commandLink id="sortByTitle_click"
        immediate="true"
        action="#{AuctionBean.sortByTitle}">
        <ice:outputText value="Item Name"
        title="Sort by the Item Name"/>
        </ice:commandLink>
        </center></div>
        [code]

        generates the following HTML:

        [code]
        <div class="test" onclick="alert('hello');" style="color:red">
           <center>
               <a class="iceCmdLnk" href="javascript:;" id="iceForm:iceTable:sortByTitle_click" onblur="setFocus('');" onclick="var form=formOf(this);form['iceForm:j_idcl'].value='iceForm:iceTable:sortByTitle_click';iceSubmit(form,this,event);form['iceForm:j_idcl'].value='';return false;" onfocus="setFocus(this.id);"><span class="iceOutTxt" id="iceForm:iceTable:j_idt21" title="Sort by the Item Name">Item Name</span></a>
           </center>
        </div>
        [code]
        The HtmlTagDecorator, available in the icefaces-ee-ext.jar, does not pass through the id attribute of tags. The following xhtml:

        {code}
        <div id="sbt" style="color:red" class="test" onclick="alert('hello');"><center>
        <ice:commandLink id="sortByTitle_click"
        immediate="true"
        action="#{AuctionBean.sortByTitle}">
        <ice:outputText value="Item Name"
        title="Sort by the Item Name"/>
        </ice:commandLink>
        </center></div>
        {code}

        generates the following HTML:

        {code}
        <div class="test" onclick="alert('hello');" style="color:red">
           <center>
               <a class="iceCmdLnk" href="javascript:;" id="iceForm:iceTable:sortByTitle_click" onblur="setFocus('');" onclick="var form=formOf(this);form['iceForm:j_idcl'].value='iceForm:iceTable:sortByTitle_click';iceSubmit(form,this,event);form['iceForm:j_idcl'].value='';return false;" onfocus="setFocus(this.id);"><span class="iceOutTxt" id="iceForm:iceTable:j_idt21" title="Sort by the Item Name">Item Name</span></a>
           </center>
        </div>
        {code}
        Philip Breau made changes -
        Description The HtmlTagDecorator, available in the icefaces-ee-ext.jar, does not pass through the id attribute of tags. The following xhtml:

        {code}
        <div id="sbt" style="color:red" class="test" onclick="alert('hello');"><center>
        <ice:commandLink id="sortByTitle_click"
        immediate="true"
        action="#{AuctionBean.sortByTitle}">
        <ice:outputText value="Item Name"
        title="Sort by the Item Name"/>
        </ice:commandLink>
        </center></div>
        {code}

        generates the following HTML:

        {code}
        <div class="test" onclick="alert('hello');" style="color:red">
           <center>
               <a class="iceCmdLnk" href="javascript:;" id="iceForm:iceTable:sortByTitle_click" onblur="setFocus('');" onclick="var form=formOf(this);form['iceForm:j_idcl'].value='iceForm:iceTable:sortByTitle_click';iceSubmit(form,this,event);form['iceForm:j_idcl'].value='';return false;" onfocus="setFocus(this.id);"><span class="iceOutTxt" id="iceForm:iceTable:j_idt21" title="Sort by the Item Name">Item Name</span></a>
           </center>
        </div>
        {code}
        The HtmlTagDecorator, available in the icefaces-ee-ext.jar, does not pass through the id attribute of tags. The following xhtml:

        {code:xml}
        <div id="sbt" style="color:red" class="test" onclick="alert('hello');"><center>
        <ice:commandLink id="sortByTitle_click"
        immediate="true"
        action="#{AuctionBean.sortByTitle}">
        <ice:outputText value="Item Name"
        title="Sort by the Item Name"/>
        </ice:commandLink>
        </center></div>
        {code}

        generates the following HTML:

        {code:xml}
        <div class="test" onclick="alert('hello');" style="color:red">
           <center>
               <a class="iceCmdLnk" href="javascript:;" id="iceForm:iceTable:sortByTitle_click" onblur="setFocus('');" onclick="var form=formOf(this);form['iceForm:j_idcl'].value='iceForm:iceTable:sortByTitle_click';iceSubmit(form,this,event);form['iceForm:j_idcl'].value='';return false;" onfocus="setFocus(this.id);"><span class="iceOutTxt" id="iceForm:iceTable:j_idt21" title="Sort by the Item Name">Item Name</span></a>
           </center>
        </div>
        {code}
        Philip Breau made changes -
        Description The HtmlTagDecorator, available in the icefaces-ee-ext.jar, does not pass through the id attribute of tags. The following xhtml:

        {code:xml}
        <div id="sbt" style="color:red" class="test" onclick="alert('hello');"><center>
        <ice:commandLink id="sortByTitle_click"
        immediate="true"
        action="#{AuctionBean.sortByTitle}">
        <ice:outputText value="Item Name"
        title="Sort by the Item Name"/>
        </ice:commandLink>
        </center></div>
        {code}

        generates the following HTML:

        {code:xml}
        <div class="test" onclick="alert('hello');" style="color:red">
           <center>
               <a class="iceCmdLnk" href="javascript:;" id="iceForm:iceTable:sortByTitle_click" onblur="setFocus('');" onclick="var form=formOf(this);form['iceForm:j_idcl'].value='iceForm:iceTable:sortByTitle_click';iceSubmit(form,this,event);form['iceForm:j_idcl'].value='';return false;" onfocus="setFocus(this.id);"><span class="iceOutTxt" id="iceForm:iceTable:j_idt21" title="Sort by the Item Name">Item Name</span></a>
           </center>
        </div>
        {code}
        The HtmlTagDecorator, available in the icefaces-ee-ext.jar, does not pass through the id attribute of tags. The following xhtml:

        <div id="sbt" style="color:red" class="test" onclick="alert('hello');"><center>
        <ice:commandLink id="sortByTitle_click"
        immediate="true"
        action="#{AuctionBean.sortByTitle}">
        <ice:outputText value="Item Name"
        title="Sort by the Item Name"/>
        </ice:commandLink>
        </center></div>

        generates the following HTML:

        <div class="test" onclick="alert('hello');" style="color:red">
           <center>
               <a class="iceCmdLnk" href="javascript:;" id="iceForm:iceTable:sortByTitle_click" onblur="setFocus('');" onclick="var form=formOf(this);form['iceForm:j_idcl'].value='iceForm:iceTable:sortByTitle_click';iceSubmit(form,this,event);form['iceForm:j_idcl'].value='';return false;" onfocus="setFocus(this.id);"><span class="iceOutTxt" id="iceForm:iceTable:j_idt21" title="Sort by the Item Name">Item Name</span></a>
           </center>
        </div>
        Philip Breau made changes -
        Assignee Ken Fyten [ ken.fyten ] Philip Breau [ philip.breau ]
        Philip Breau made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s EE-3.3.0.GA_P02 [ 11372 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: