

Create a WEB-INF/include folder in your web application and create a new jsf file called template.xhtml in that folder.The sample bootstrap starter template will be our starting point: īootstrap pages require a css and two javascript libraries with some important meta tags. Create a faces-config.xml file in the WEB-INF folder with the following resource-handler entry:.Download the omnifaces jar file here and place it in your web application's WEB-INF/lib folder.Edit your WEB-INF/web.xml file to add the URL to the Faces Servlet-Mapping as shown here:Īdd the following mime-mapping entries to the web.xml.I prefer to use omnifaces to add a resource handler: │ │ │ └── glyphicons-halflings-regular.woffīecause bootstrap.css uses url references they do not work in a vanilla jsf installation. │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ ├── glyphicons-halflings-regular.svg │ │ │ ├── glyphicons-halflings-regular.eot Run the project and you should see the following screen in your browser:ĭownload Bootstrap here and unzip it into your project's web folder under a subdirectory called resources/bootstrap-3.3.7-dist so it looks like this: ├── resources.On the Frameworks screen, choose "JavaServer Faces".On the Server and Settings screen click the "Add." button and select "Wildfly Application Server" and browse the server location to the directory that you unzipped the Wildfly server.Name the project "HelloJSF" and click "Next.".After launching NetBeans, select "File" -> "New Project" and choose the "Java Web" - "Web Application" template and click "Next.".

#INSTAL ICEFACES IN NETBEANS INSTALL#
In this tutorial, we'll be using NetBeans 8.2 with JBoss Wildfly 10.1.ĭownload and install Java EE version of Netbeans.ĭownload the Java EE7 Full & Web Distribution of JBoss Wildfly and unzip it to a folder on your machine. It assumes you have Java 8 or later installed. This tutorial will give you a great starting point for building any web application using Java Server, Faces, and Bootstrap.
