This content has been marked as final.
Show 3 replies
-
1. Re: s:button with image attribute doesn't add contextroot in src attribute
shravanou May 19, 2010 9:26 PM (in response to jochus.jochenhebbrecht.hotmail.com)I think this should help you -
<div style="background-image:url('//newimages/icon-middle.bmp');background-repeat:repeat-x;height:21px"> <h:commandLink id="name" style="align:center;...." value="#{...}" action="#{..}"> <f:param name="iconId" value="#{..}" /> </h:commandLink> </div>
-
2. Re: s:button with image attribute doesn't add contextroot in src attribute
jochus.jochenhebbrecht.hotmail.com May 20, 2010 8:36 AM (in response to jochus.jochenhebbrecht.hotmail.com)Hmm, yes, but there are 2 alternatives:
a) add the contextroot manually using:
#{facesContext.externalContext.requestContextPath}
b) using s:link
<s:link> <s:graphicImage value="/img/logo.jpg"/> </s:link>
But it should be working with s:button too!
-
3. Re: s:button with image attribute doesn't add contextroot in src attribute
fedeelf Nov 24, 2010 1:50 PM (in response to jochus.jochenhebbrecht.hotmail.com)Hello, try this
<s:button image="img/logo.jpg"/>