0

我使用了 primefaces 展示示例, http://www.primefaces.org/showcase/ui/layoutElement.jsf 但它没有显示任何内容。

我的页面是:

<h:head>
<title>Title</title>
</h:head>
<h:body>
<p:layout style="min-width:400px;min-height:200px;" id="layout">
    <p:layoutUnit position="west" resizable="true" size="100" minSize="40"
        maxSize="200">  
    Left  
</p:layoutUnit>

    <p:layoutUnit position="center">  
    Center  
</p:layoutUnit>
</p:layout>
</h:body>
</html>
4

1 回答 1

1

奇怪,它完全为我工作。您是否为您的标签和文档类型使用了正确的命名空间?喜欢

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.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:ui="http://java.sun.com/jsf/facelets"
        xmlns:p="http://primefaces.org/ui"
        xmlns:c="http://java.sun.com/jsp/jstl/core">
于 2012-08-25T16:27:12.553 回答