我在应用程序中使用了icefaces commandLink,我想在水印中添加一个图标。我在commandLink中添加了一个属性styleCss =“ disconnect”,但是在渲染过程中从未考虑过它。当我获取生成的html代码时,应用的样式为defautl样式:iceCmdLnk

在我的XHTML文件中,我有:

<ice:commandLink value="Disconnect" styleCss="disconnect"
                            rendered="#{myBean.authentified}"
                            action="#{navigationBean.disconnect}" />


生成的html代码:

<a onfocus="setFocus(this.id);" onclick="var form=formOf(this);form['headerForm:j_idcl'].value='headerForm:j_idt16';iceSubmit(form,this,event);form['headerForm:j_idcl'].value='';return false;" onblur="setFocus('');" id="headerForm:j_idt16" href="javascript:;" class="iceCmdLnk">Disconnect</a>

最佳答案

好的,我找到了解决方案...我想我在开始代码之前忘了脱下手套...我放了styleCss而不是styleClass ...

10-06 13:35