ICEfaces配置为视图,但h:head和h:body组件是必需的

时间:2012-03-19 15:00:12

标签: icefaces

我正在尝试使用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

请告知。

1 个答案:

答案 0 :(得分:0)

这仅表示您正在加载未定义<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>