From 0e34458e65c891a78f9688b50414ab9cee4d0caa Mon Sep 17 00:00:00 2001 From: Miguel Reboiro-Jato Date: Tue, 15 Nov 2016 14:15:55 +0100 Subject: [PATCH] Adds Bootstrap as a Maven dependency The Bootstrap libraries (CSS and JavaScript libraries) were inserted in the web pages (JSF module) through a CDN. Now, these libraries are added as Maven dependencies, using the Webjars project packages. In addition, the link and script tags used in the JSF template have been replaced by the h:outputStylesheet and h:outputScript tags from JSF, as this tags make consistent the use of relative paths though the different pages of the application. Finally, a minor error has been solved in the pets.xhtml file, as the placeholder text for the birth field was assigned to the animal type field. --- jsf/pom.xml | 4 ++++ jsf/src/main/webapp/WEB-INF/template.xhtml | 6 +++--- jsf/src/main/webapp/owner/pets.xhtml | 4 ++-- pom.xml | 6 ++++++ 4 files changed, 15 insertions(+), 5 deletions(-) diff --git a/jsf/pom.xml b/jsf/pom.xml index ffb4d63..23108fd 100644 --- a/jsf/pom.xml +++ b/jsf/pom.xml @@ -24,6 +24,10 @@ service provided + + org.webjars + bootstrap + diff --git a/jsf/src/main/webapp/WEB-INF/template.xhtml b/jsf/src/main/webapp/WEB-INF/template.xhtml index 8e53092..50854f7 100644 --- a/jsf/src/main/webapp/WEB-INF/template.xhtml +++ b/jsf/src/main/webapp/WEB-INF/template.xhtml @@ -5,7 +5,7 @@ Pet Store - +
@@ -41,7 +41,7 @@
- - + +
\ No newline at end of file diff --git a/jsf/src/main/webapp/owner/pets.xhtml b/jsf/src/main/webapp/owner/pets.xhtml index b81f128..78a06a3 100644 --- a/jsf/src/main/webapp/owner/pets.xhtml +++ b/jsf/src/main/webapp/owner/pets.xhtml @@ -15,10 +15,10 @@ - + - + diff --git a/pom.xml b/pom.xml index 11b46c0..67e6f4b 100644 --- a/pom.xml +++ b/pom.xml @@ -47,6 +47,7 @@ 8.2.1.Final 3.4 + 3.3.7-1 4.12 @@ -131,6 +132,11 @@ commons-lang3 ${commons.lang3.version}
+ + org.webjars + bootstrap + ${bootstrap.version} + -- 2.18.1