Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/jsf/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jsf ICEfaces菜单栏水平方向不为';行不通_Jsf_Jakarta Ee_Jsf 2_Icefaces - Fatal编程技术网

Jsf ICEfaces菜单栏水平方向不为';行不通

Jsf ICEfaces菜单栏水平方向不为';行不通,jsf,jakarta-ee,jsf-2,icefaces,Jsf,Jakarta Ee,Jsf 2,Icefaces,我使用的是IceFaces2.0.2 以下是我所做的: <?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"

我使用的是IceFaces2.0.2 以下是我所做的:

<?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:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:pretty="http://ocpsoft.com/prettyfaces"
    xmlns:ice="http://www.icesoft.com/icefaces/component">

    <head>
        <meta http-equiv="Content-Type"
        content="text/html; charset=iso-8859-1"></meta>
        <link href="./xmlhttp/css/xp/xp.css" rel="stylesheet" type="text/css"/>
    </head>

<body>
    <ui:composition>


        <h1>
            <h:outputText value="my application" />
        </h1>

        <pretty:link mappingId="link">
                   some link
          </pretty:link>



             <ice:menuBar id="menuBar" orientation="Horizontal">
            <ice:menuItem value="menuItem"></ice:menuItem>
            <ice:menuItem value="menuItem2"></ice:menuItem>
          </ice:menuBar>


    </ui:composition>

</body>

</html>

某些链接
上面是用facelets制作的头文件,菜单项垂直显示,请说明为什么水平方向不起作用?

  • 水平方向是默认的,所以您不必显式地指定它

  • 如果必须定义,也可以尝试用小写形式定义

  • 请确保您使用了正确的CSS


你必须在谷歌chrome上测试你的页面,方向设置会起作用。我对FireFox和IE也有同样的问题,但对google chrome没有。这可能是一个icefaces bug。

是我的错误,给菜单栏添加了一个css类,这影响了定位