Building from source (2.0) & using them in maven web project

UI Components for JSF
Post Reply
Strider
Posts: 70
Joined: 03 Dec 2009, 22:24

31 Jan 2010, 12:16

Hi,
i have setup a maven web project with netbeans 6.8. It works fine with primefaces 2.0.0.RC as dependency in the pom file. But when i use self compiled (based on the wiki doc: http://code.google.com/p/primefaces/wik ... FromSource ) snapshot all web pages which defining the "xmlns:p="http://primefaces.prime.com.tr/ui" showing an error that the library can not be found. Is this a bug or have i make an error in my pom.xml?

Code: Select all

       <dependency>
            <groupId>org.primefaces</groupId>
            <artifactId>primefaces</artifactId>
            <version>2.0.0-SNAPSHOT</version>
        </dependency>
I'm using a sonatype nexus as local repository, with contains the repository definition of the prime faces repository, so my pom.xml does not contains a definition for the prime faces repository.

Also i have found out an bug in Netbeans 6.8 when using the snappshot of prime faces. The snapshot contains a web-fragment.xml and that causes an error. It is reported here: https://netbeans.org/bugzilla/show_bug.cgi?id=180039

Strider
Posts: 70
Joined: 03 Dec 2009, 22:24

02 Feb 2010, 20:13

I have looked at the tag libs xml file of the 2.0.0.RC and 2.0.0-SNAPSHOT and found the following difference:
2.0.0.RC

Code: Select all

<!DOCTYPE facelet-taglib PUBLIC "-//Sun Microsystems, Inc.//DTD Facelet
Taglib 1.0//EN" "facelet-taglib_1_0.dtd">
<facelet-taglib>
2.0.0-SNAPSHOT

Code: Select all

<facelet-taglib 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-facelettaglibrary_2_0.xsd"
		version="2.0">
Seems to be that Netbeans has a problem with the new definition. :cry:

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

02 Feb 2010, 21:23

Interesting because mojarra implementation also has;

Code: Select all

<facelet-taglib 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-facelettaglibary_2_0.xsd"
                version="2.0">

Strider
Posts: 70
Joined: 03 Dec 2009, 22:24

03 Feb 2010, 21:22

Indeed and the bug report for that contains an test project with used the same definition as in 2.0.0.RC used. Very strange problem.
https://netbeans.org/bugzilla/show_bug.cgi?id=172520

Strider
Posts: 70
Joined: 03 Dec 2009, 22:24

05 Feb 2010, 22:02

Problem solved, i have removed the primefaces source project from netbeans and deleted it. After doing that it works fine. All tag libs are now found by netbeans.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 45 guests