问题
I define a image in my JSF application:
<h:graphicImage library="myPath" name="myImg"/>
As result my HTML output:
<img src="bla-bla-bla" alt="" />
It works properly but I have a question. How to set the attribute alt
for HTML tag img
in this case? For example
<h:graphicImage library="myPath" name="myImg" alt="myText"/>
doesn't work...
来源:https://stackoverflow.com/questions/10897493/how-to-set-the-alt-attribute-for-hgraphicimage