PF not successfully working with eclipse indigo

UI Components for JSF
Post Reply
headgrowe
Posts: 18
Joined: 05 Dec 2011, 22:16

06 Dec 2011, 01:39

hey,

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? :ugeek:
pls help me :D 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>
.xhtml file

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>
bean:

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;
	}
}
headgrowe :D

smithh032772
Posts: 6144
Joined: 10 Sep 2011, 21:10

07 Dec 2011, 00:20

Click URL and see if this helps. It may not be the same environment as you, but this guy, BalusC, offers soooo much good information for JSF developers. As you can see with my signature, i am using GlassFish and I recommend it. I'm not using MyFaces, and I also recommend NetBeans, but try the URL below and read his article and see if you can get anything from it, to ensure that you configured Eclipse correctly.

http://balusc.blogspot.com/2011/01/jsf- ... e-and.html

Sorry, I don't use Eclipse at all. Also, you might take screen captures of what you are seeing, go to http://imageshack.us/, upload your screen capture, and use the IMG tag in this editor, to post your screen captures as images.
Howard

PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome

Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 34 guests