You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Michael Baranov <mi...@gmail.com> on 2006/04/20 15:29:00 UTC
-> href="#" -> border around images
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.
Re: -> href="#" -> border around images
Posted by Gerald Müllan <bi...@gmail.com>.
If this doesn`t work, try it with style="border:none".
You should affect the image with css styles; this isn`t a renderer issue.
cheers,
Gerald
On 4/20/06, Matthias Wessendorf <ma...@apache.org> wrote:
> hi
>
> use <t:graphicImage value="image.gif" border="0"/>
>
> On 4/20/06, Michael Baranov <mi...@gmail.com> wrote:
> > 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.
> >
>
>
> --
> Matthias Wessendorf
> Aechterhoek 18
> 48282 Emsdetten
> http://jroller.com/page/mwessendorf
> mwessendorf-at-gmail-dot-com
>
--
Gerald Müllan
Schelleingasse 2/11
1040 Vienna, Austria
0043 699 11772506
Bierbrauen@gmail.com
Re: -> href="#" -> border around images
Posted by Matthias Wessendorf <ma...@apache.org>.
hi
use <t:graphicImage value="image.gif" border="0"/>
On 4/20/06, Michael Baranov <mi...@gmail.com> wrote:
> 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.
>
--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
http://jroller.com/page/mwessendorf
mwessendorf-at-gmail-dot-com