i am traying to use primefaces, the styles and some tag examples vom the docu. But its not running right.
i am getting no exceptions, but also no styles und the components arn't woring... but the <p:editor /> example is running well
for example, there is no button to show the popup ... and the accortion is opend and can't be closed?! is it possible that eclipse cant use javascript...or something like this?
pls help me thank you so much
Eclipse Indigo Java EE IDE
JSF 2.0 (Apache Myfaces JSF Core-2.0 API 2.0.2)
/PrimefacesTest/WebContent/WEB-INF/lib/cupertino-1.0.2.jar
/PrimefacesTest/WebContent/WEB-INF/lib/jstl-1.2.jar
/PrimefacesTest/WebContent/WEB-INF/lib/primefaces-3.0.M4.jar
Apache Tomcat v7.0
Windows 7 64bit
web.xml
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.xhtml</url-pattern>
</servlet-mapping>
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>
<context-param>
<param-name>primefaces.THEME</param-name>
<param-value>cupertino</param-value>
</context-param>
</web-app>
Code: Select all
<html xmlns="http://www.w3c.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui">
<h:head>
<title>Insert title here</title>
</h:head>
<h:body>
<p:calendar value="#{dateBean.date}" mode="popup" showOn="button" />
<p:accordionPanel>
<p:tab title="First Tab Title">
<h:outputText value="Lorem" />
...More content for first tab
</p:tab>
<p:tab title="Second Tab Title">
<h:outputText value="Ipsum" />
</p:tab>
</p:accordionPanel>
</h:body>
</html>
Code: Select all
package com.primefaces.sample;
import java.util.Date;
public class DateBean {
private Date date;
public DateBean() {
date = new Date();
}
public Date getDate() {
return date;
}
public void setDate(Date date) {
this.date = date;
}
}