PrimeFaces without Maven on NetBeans?

UI Components for JSF
Post Reply
Tamuha
Posts: 6
Joined: 24 Jul 2010, 14:56

24 Jul 2010, 14:59

Hey all,

i have a webapplication project on NetBeans with glassfish 3, JSF 2 and richfaces 4.

Now i also wanna test primefaces-2.1.RC1 but i'm not using maven and don't wanna use it.

Is there a way to use PrimeFaces without Maven? Just using the lib is not enough, yet.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

24 Jul 2010, 15:45

Hi, why just using the lib is not enough?

Tamuha
Posts: 6
Joined: 24 Jul 2010, 14:56

24 Jul 2010, 17:30

Actually, don't do i have to update my web.xml file?

I have already tried to use a primefaces tag, but it's not working nor shown in the .xhtml-page. Thus i'm thinking that i have to configure something

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

24 Jul 2010, 17:43

You need to add the primefaces jar, configure and do a clean deploy.

http://www.primefaces.org/gettingStarted.html

Also see user's guide installation section.

Tamuha
Posts: 6
Joined: 24 Jul 2010, 14:56

24 Jul 2010, 18:03

I have already read the "gettingstartet"-tutorial, but because i'm using glassfish 3, i haven't found any kind of configurations i need.

So, the primefaces jar is implemented into the project and a clean deploy has also been done. Only the configuration is still missing, cause i still dunno what to configure... :-/

callahan
Posts: 768
Joined: 27 May 2010, 22:52

24 Jul 2010, 18:12

Hi,

See page 13 in the PDF users guide http://www.primefaces.org/documentation.html.
Your using glassfish/mojarra, so you'll need the following in web.xml.

Code: Select all

<context-param>
    <param-name>com.sun.faces.allowTextChildren</param-name>
    <param-value>true</param-value>
</context-param>

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 9 guests