Components are not rendered on an html page

UI Components for JSF
Post Reply
barisv
Posts: 1
Joined: 28 May 2011, 11:59

28 May 2011, 12:07

Hi,

I have done configurations on the getting started page but when I create a xhtml page as below, the components are not rendered. Also eclipse doesnt show me shortcuts when I type <p: (ctrl+space). But when I create a jsp page on the same project , everyhing works perfect. What can be the problem ? Do I need to add more libraries to use components on html pages ?

Thanks in advance,

Code: Select all

<!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:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets">
<head>
 <title>Primefaces with facelet</title>
 <p:resources />
</head>
<body>
Testing PrimeFaces
 <p:calendar />
</body>
</html>

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 55 guests