当前位置:编程学习 > JAVA >>

priefaces && JSF

<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:p="http://primefaces.org/ui">
<h:head>
</h:head>
    <h:body>
       <p:tagCloud model="#{tagCloudBean.model}" />
    </h:body>
</html>


<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui">

    <ui:define name="content">
            <h:form enctype="multipart/form-data">
               <p:tagCloud model="#{tagCloudBean.model}" />
            </h:form>
    </ui:define>
</ui:composition>
有什么区别吗 为什么一个显示一个不显示 UI HTML JSF primefaces javaweb --------------------编程问答-------------------- 一个是标准的页面了。
第二个是 使用的模板组件,叫什么facelets 好像是JSF 2 里面开始采用的这种方式吧。 --------------------编程问答--------------------
引用 1 楼 oqqYHL 的回复:
一个是标准的页面了。
第二个是 使用的模板组件,叫什么facelets 好像是JSF 2 里面开始采用的这种方式吧。

对 就那个标签 xmlns:ui="http://java.sun.com/jsf/facelets" ,但是为什么有的组件在第二个上面不显示呢 --------------------编程问答--------------------
补充:Java ,  Web 开发
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,