myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Baranov <>
Subject <h:commandLink> -> href="#" -> border around images
Date Thu, 20 Apr 2006 13:29:00 GMT
I have a little  trouble with this sort of code:
<h:commandLink id="myid" action="#{bean.action}">
   <h:graphicImage value="image.gif"/>

It produces:
<a href="#" onClick="lots_of_JS"><img src="expanded.gif"></a>

The problem is with href="#" attribute, which makes the browser create a 
*border* around the image. The colored border respects all the link's 
(a) related CSS styles.
But I don't want it! Is there a way to tell the renderer(s) not to set 
the href property? Or any workaround?


View raw message