myfaces-users mailing list archives

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

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?

Thanks!
Michael.

Mime
View raw message