JSF 2.0 i Primefaces z Facelets

Próbuję włączyć primefaces do mojego projektu internetowego JSF 2.0.

Ostatnio zaktualizowałem z facelets 1.x do 2.0 i Dodałem jar primefaces do mojego folderu biblioteki. Wszystko jest w porządku, z wyjątkiem tego, że sposób, w jaki mam uporządkowane szablony, powoduje konflikt z podstawowymi elementami.

mójtemplate.xhtml wygląda tak:

<code><?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0     Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

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

<h:head>
    <title><ui:insert name="title">MILO</ui:insert></title>

    //Css   
    //js        

</h:head>

<h:body class="milo">
    <h:form styleClass="miloForm" enctype="multipart/form-data">
        <div id="container">
                <ui:insert name="header">
                    <ui:include src="/WEB-INF/templates/header.xhtml"/>
                </ui:insert>

              <ui:insert name="content">
                    <!--  include your content file or uncomment the include below and create content.xhtml in this directory -->
              </ui:insert>

              <ui:insert name="footer">
                <ui:include src="/WEB-INF/templates/footer.xhtml"/>
              </ui:insert>          </div>
    </h:form>
</h:body>
</code>

I mójindex.xhtml spojrzał lubię to:

<code><!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:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui">

<ui:composition template="/WEB-INF/templates/base.xhtml">

<ui:define name="content">

         <p:editor/>        
</ui:define>
</code>

Gdy już to zrobię, edytor p: nie pojawi się. jakieś pomysły dlaczego? konsola nie pokaże mi żadnych ostrzeżeń / błędów.

EDYCJA >>> Znaleziono błąd JS

questionAnswers(1)

yourAnswerToTheQuestion