Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Facelets is intented to <strong>replace</strong> JSP altogether. But yet you're attempting to declare it as a JSP taglib. This is never going to work. Both are distinct view technologies. Facelets is a XML based view technology which is designed to be a successor of JSP. In Java EE 6 which was released december 2009 it has already replaced JSP as standard view technology for JSF and JSP has since then been deprecated.</p> <p>You need to rename file extension from <code>.jsp</code> to <code>.xhtml</code> and replace all JSP taglib declarations by XML namespace declarations and remove all <code>&lt;jsp:xxx&gt;</code> tags and all <code>&lt;% %&gt;</code> scriptlets.</p> <p>So, for example the following basic JSP template <code>page.jsp</code></p> <pre class="lang-xml prettyprint-override"><code>&lt;%@page contentType="text/html" pageEncoding="UTF-8"%&gt; &lt;%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%&gt; &lt;%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%&gt; &lt;!DOCTYPE html&gt; &lt;f:view&gt; &lt;html lang="en"&gt; &lt;head&gt; &lt;title&gt;JSP page&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;h:outputText value="JSF components here." /&gt; &lt;/body&gt; &lt;/html&gt; &lt;/f:view&gt; </code></pre> <p>has to be rewritten as <code>page.xhtml</code></p> <pre class="lang-xml prettyprint-override"><code>&lt;!DOCTYPE html&gt; &lt;html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets"&gt; &lt;head&gt; &lt;title&gt;Facelet page&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;h:outputText value="JSF components here." /&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>Finally, the mentioned JAR files are Facelets 1.x JARs while Facelets 2.x is already been out since 2009 as part of <a href="http://javaserverfaces.java.net/" rel="nofollow noreferrer">a JSF 2.x implementation</a>. If you can, I'd strongly recommend to just skip Facelets 1.x and continue with Facelets 2.x.</p> <h3>See also:</h3> <ul> <li><a href="http://facelets.java.net/nonav/docs/dev/docbook.html" rel="nofollow noreferrer">Facelets Developer Documentation</a> (for Facelets 1.x)</li> <li><a href="http://docs.oracle.com/javaee/6/tutorial/doc/giepx.html" rel="nofollow noreferrer">Java EE 6 tutorial - Facelets</a> (for Facelets 2.x)</li> <li><a href="http://balusc.blogspot.com/2011/01/jsf-20-tutorial-with-eclipse-and.html" rel="nofollow noreferrer">JSF 2.0 tutorial with Eclipse and Glassfish</a> (to start from zero)</li> <li><a href="https://stackoverflow.com/questions/4441713/migrating-from-jsf-1-2-to-jsf-2-0">Migrating from JSF 1.2 to JSF 2.0</a></li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload