-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Primefaces Theme development
By :

We will use Maven to add all the required resources that we don't create ourselves, and this section will help us to understand how we add libraries to our project. PrimeFaces only requires that the PrimeFaces JAR file be added to our project. So, this is what we do:
+
symbol to the left of the project in the Project view, we open the project tree, as follows:The following is a brief explanation of the folders, as listed in the previous screenshot:
pom.xml
file and the NetBeans project configuration file. While we don't need to look at these now, we will visit the pom.xml
file in the later chapters. So, if you want to preview these files, please feel free to do so.Usually, you only have the Search tab available in a newly created project.
Maven allows us to add local projects as dependencies to a project, which is what the Open Projects tab is for. It also allows us to add dependencies that are defined in a parent Maven project file, and this is what the Dependency Management tab is for.
org.primefaces
into the Query field of the Search tab, and then go and make a drink or something that takes a little time.Not only have we earned a break, but we also need time to allow Maven to download and install the Maven Central Repository index in our local Maven repository. This takes time because there are a very large number of resources available there. If you already use Maven for your projects, you obviously won't need a lot of time. The break might be welcome, though.
Once the Maven Central Repository index is available, you will see something like this:
Change the font size
Change margin width
Change background colour