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:
UPDATE and FIX
In order to fix this you have to go to project settings | libraries
and then add the component library.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With