I'm trying to port an IceFaces to primefaces, because there are some interesting components that I was missing in IceFaces. However, I'm facing quite a number of problems doing very simple tests:
The following code is working:
Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<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.prime.com.tr/ui">
<f:view>
<head>
<title>Test Page</title>
<meta content='text/html; charset=UTF-8' http-equiv="Content-Type" />
<p:resources />
</head>
<body>
<h:form>
<p:editor></p:editor>
</h:form>
</body>
</f:view>
</html>
I'm running on OS X, with Tomcat 6.0.26
Any help appreciated, since this is really a stopper for me
Regards
Jean-Noel
entry2.jspx
Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<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:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.prime.com.tr/ui"
template="/layout/template2.jspx">
<ui:define name="mainbody">
<p:editor></p:editor>
</ui:define>
</ui:composition>
Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<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.prime.com.tr/ui">
<f:view>
<h:head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><ui:insert name="title">...</ui:insert></title>
<p:resources />
</h:head>
<h:body>
<h:form id="form">
<ui:insert name="mainbody">...</ui:insert>
</h:form>
</h:body>
</f:view>
</html>
Code: Select all
java.lang.NullPointerException
org.primefaces.component.editor.EditorTag.setProperties(EditorTag.java:67)
javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:614)
javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1142)
org.apache.jsp.entry.entry2_jspx._jspx_meth_p_005feditor_005f0(entry2_jspx.java:86)
org.apache.jsp.entry.entry2_jspx._jspService(entry2_jspx.java:60)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)