【问题标题】:ICEfaces configured for view, but h:head and h:body components are required为视图配置了 ICEfaces,但需要 h:head 和 h:body 组件
【发布时间】:2012-03-19 15:00:12
【问题描述】:

我正在尝试使用 icefaces 3,并配置 rime 主题如下:

org.icefaces.ace.theme 雾凇

但我收到以下警告:

Mar 19, 2012 4:57:04 PM org.icefaces.impl.event.BridgeSetup isListenerForSource
WARNING: ICEfaces configured for view /xmlhttp/css/rime/css-images/bullet.gif but h:head and h:body components are required

请指教。

【问题讨论】:

    标签: icefaces


    【解决方案1】:

    这只是意味着您正在加载的页面没有定义<h:head><h:body>。这样做:

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
        xmlns:ace="http://www.icefaces.org/icefaces/components"
        xmlns:ice="http://www.icesoft.com/icefaces/component">
    
    <h:head>
        <title>MyPage</title>
    </h:head>
    
    <h:body>
        <!-- put your icefaces stuff in here -->
    </h:body>
    </html>
    

    【讨论】:

      猜你喜欢
      • 2015-03-05
      • 1970-01-01
      • 2015-03-11
      • 2013-03-05
      • 1970-01-01
      • 2017-04-03
      • 1970-01-01
      • 2013-04-09
      • 1970-01-01
      相关资源
      最近更新 更多