Mikhail Kopylov
Mikhail Kopylov

Reputation: 2078

XML namespaces for Primefaces 4.0

Using IntelliJ IDEA 13.1. Component stack: JSF 2.2 + Primefaces 4.0, Tomcat 7.

Creating simple xhtml with code:

<ui:composition template="rootTemplate.xhtml"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:p="http://primefaces.org/ui"
                xmlns:ui="http://java.sun.com/jsf/facelets">
</ui:composition>

But IDEA can't fetch primefaces url and highlights it with red.

Browser shows 404 error when trying to load http://primefaces.org/ui as well.

What am I doing wrong?

Upvotes: 1

Views: 2511

Answers (2)

bhdrk
bhdrk

Reputation: 3495

1) please be sure to add framework support

2) IDEA sometimes need to be synchronized. therefore use "Reimport All Maven Projects" button.

Upvotes: 3

Mikhail Kopylov
Mikhail Kopylov

Reputation: 2078

I didn't found the source of the problem.

But changing JSF implementation from com.sun.faces:2.2.5 to com.sun.faces:2.2.6 fixed the problem.

Now IDEA founds the required *.taglib.xml file in primefaces-4.0.jar.

When changing back to 2.2.5 version the problem returns :(

What a mystic?

===== UPDATE =====

In IDEA one can set up the taglib manually. It's placed in primefaces-4.0.jar/META-INF/primefaces-p.taglib.xml

Upvotes: 1

Related Questions