Details
-
Type: Bug
-
Status: Closed
-
Priority: 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>
<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>
generates the following HTML: