문제

I user the icefaces commandLink in my application and i want to add an icone in watermark. I add an attribute styleCss="disconnect" in the commandLink, but it's never considered during the rendering. when i get the html code generated the style applied is the defautl style : iceCmdLnk

in my XHTML file i have :

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

html code generated :

<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>
도움이 되었습니까?

해결책

Ok I found the solution ... I think I forgot to remove my gloves before starting code ... I put styleCss instead of styleClass ...

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top