【问题标题】:Java Server Faces - import imageJava Server Faces - 导入图像
【发布时间】:2012-03-25 23:58:00
【问题描述】:

我想将图像文件导入 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.

我缺少什么标签库?

【问题讨论】:

    标签: java jsf


    【解决方案1】:

    img 标签中xmlns="" 的用途是什么?

    删除它...

    b.t.w 你可以使用&lt;h:graphicImage...

    【讨论】:

      猜你喜欢
      • 2012-04-07
      • 1970-01-01
      • 2011-10-30
      • 1970-01-01
      • 2015-09-06
      • 2013-01-25
      • 2013-09-17
      • 1970-01-01
      • 2010-09-09
      相关资源
      最近更新 更多