Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Primefaces component library in IntelliJ IDEA 11

Is it possible to add the Primefaces component library to IntelliJ IDEA 11 so I can use autocompletion on those tags too? In Eclipse it automatically supports this, but I don't know why it does so or how it works so I am not able to fix this.

Here are two images on how it looks:

enter image description here

enter image description here


UPDATE and FIX
In order to fix this you have to go to project settings | libraries and then add the component library.

like image 930
user626912 Avatar asked Jan 06 '12 14:01

user626912


2 Answers

Set your cursor on the "http://primefaces.org/ui" text and ATL+ENTER. Choose 'Manually setup external resource'. 'Map External Resources' popup will appear. Choose 'Explorer' tab and select 'primefaces-p.taglib.xml' from primefaces.jar file.

like image 144
Stojan Končar Avatar answered Sep 28 '22 00:09

Stojan Končar


You need to add a technology (I think it's called - might be a facet).

When you create a Web Module Project, you have the option of selecting additional technologies. JSF is an option for Web. Under the JSF node is a sub-node with 4 faces technologies - one of which is Primefaces (others are IronFaces, RichFaces, and another).

When you select the required support option, IntelliJ IDEA will download the required libraries and add them to an existing or new lib.

I believe this functionality is only available in the full version; i.e., not Community Edition.

like image 36
mikiSkipton Avatar answered Sep 28 '22 00:09

mikiSkipton