[英]Java Server Faces - import image
我想将图像文件导入JSF页面。 我使用以下代码:
<div id="greenBand" class="ui-state-default ui-corner-allh"
style="position:relative; top:35px; left:0px;">
<img xmlns="" class="sectionTitle" alt="Download Drivers" border="0"
style="position:relative; top:-20px; left:9px;"
src="resources/logo_datacenters.png" />
</div>
当我将JSF页面加载到Web浏览器中时,在页面位置出现此错误消息:
Warning: This page calls for XML namespace declared with prefix img but no
taglibrary exists for that namespace.
我缺少什么标签库?
img标签中xmlns=""
的目的是什么?
去掉它...
顺便说一句,您可以使用<h:graphicImage
...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.