Primefaces component library in IntelliJ IDEA 11

Can I add the Primefaces component library to IntelliJ IDEA 11 so that I can also use autocomplete for these tags? In Eclipse, it automatically supports this, but I don’t know why it does it or how it works, so I can’t fix it.

Here are two images of how it looks:

enter image description here

enter image description here


UPDATE and FIX
To fix this, you should go to project settings | libraries project settings | libraries , and then add the component library.

+4
source share
3 answers

Adjust the cursor to the text http://primefaces.org/ui and ATL + ENTER. Select "Manually Configure External Resource." The “External Resource Map” pop-up window will appear. Select the Explorer tab and select "primefaces-p.taglib.xml" from the primefaces.jar file.

+7
source

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

When creating a web module project, you can choose additional technologies. JSF is an option for the Web. Under the JSF node, there is a sub-node with four- Primefaces technology, one of which is Primefaces (the others are IronFaces, RichFaces and others).

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

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

+2
source

To add the objects used in the project to the Intensity project, add the ie dependency

 <dependency> <groupId>org.primefaces</groupId> <artifactId>primefaces</artifactId> <version>4.0</version> </dependency> 

to your pom.xml. and compile your project. After that, add the URI of the primary elements to the list of tags that can be used on this page, for example xmlns:p="http://primefaces.org/ui" , and everything will be fine.

0
source

Source: https://habr.com/ru/post/1389670/


All Articles