How to set the alt attribute for h:graphicImage?

最后都变了- 提交于 2019-12-11 17:54:21

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!