diff --git a/PanelGrid/.gitignore b/PanelGrid/.gitignore new file mode 100644 index 0000000..8d629d4 --- /dev/null +++ b/PanelGrid/.gitignore @@ -0,0 +1,8 @@ +/target/ +rebel.xml +.metadata +.settings +dist +.faces-config.xml.jsfdia +.project +.classpath \ No newline at end of file diff --git a/PanelGrid/README.md b/PanelGrid/README.md new file mode 100644 index 0000000..7f33a71 --- /dev/null +++ b/PanelGrid/README.md @@ -0,0 +1,12 @@ +# BootsFaces-Examples: PanelGrid, PrimeFaces and AngularFaces +This demo shows how to set up a BootsFaces project using both PrimeFaces and AngularFaces. Along the way, it demonstrates +the BootsFaces panel grid. + +Run this as a Tomcat application. The URL to start typically is http://localhost:8080/BootsFacesPanelGrid/index.jsf + +Tested on: + diff --git a/PanelGrid/pom.xml b/PanelGrid/pom.xml new file mode 100644 index 0000000..e7370c5 --- /dev/null +++ b/PanelGrid/pom.xml @@ -0,0 +1,103 @@ + + 4.0.0 + de.beyondjava + BootsFacesPanelGrid + 1.0.0-SNAPSHOT + war + BootsFacesPanelGrid + http://www.beyondjava.net + + UTF-8 + 1.7 + 1.7 + + + + prime-repo + PrimeFaces Maven Repository + http://repository.primefaces.org + default + + + + + net.bootsfaces + bootsfaces + 0.6.5 + + + org.primefaces + primefaces + 5.1 + compile + + + org.primefaces.themes + bootstrap + 1.0.10 + runtime + + + de.beyondjava + angularFaces-core + 2.1.2 + + + + + ApplicationServer + + false + + + + com.sun.faces + jsf-api + 2.2.10 + provided + + + + + Mojarra + + true + + + + com.sun.faces + jsf-api + 2.2.10 + compile + + + com.sun.faces + jsf-impl + 2.2.10 + runtime + + + + + MyFaces + + false + + + + org.apache.myfaces.core + myfaces-api + 2.2.7 + compile + + + org.apache.myfaces.core + myfaces-impl + 2.2.7 + runtime + + + + + \ No newline at end of file diff --git a/PanelGrid/src/main/java/de/beyondjava/bootsfaces/examples/Person.java b/PanelGrid/src/main/java/de/beyondjava/bootsfaces/examples/Person.java new file mode 100644 index 0000000..62ddd3e --- /dev/null +++ b/PanelGrid/src/main/java/de/beyondjava/bootsfaces/examples/Person.java @@ -0,0 +1,34 @@ +package de.beyondjava.bootsfaces.examples; + +import java.util.Date; + +import javax.faces.bean.ManagedBean; +import javax.faces.bean.ViewScoped; + +@ViewScoped +@ManagedBean +public class Person { + + private String firstName; + private String lastName; + private Date birthdate; + public Date getBirthdate() { + return birthdate; + } + public void setBirthdate(Date birthdate) { + this.birthdate = birthdate; + } + public String getLastName() { + return lastName; + } + public void setLastName(String lastName) { + this.lastName = lastName; + } + public String getFirstName() { + return firstName; + } + public void setFirstName(String firstName) { + this.firstName = firstName; + } + +} diff --git a/PanelGrid/src/main/webapp/WEB-INF/faces-config.xml b/PanelGrid/src/main/webapp/WEB-INF/faces-config.xml new file mode 100644 index 0000000..e5deaf7 --- /dev/null +++ b/PanelGrid/src/main/webapp/WEB-INF/faces-config.xml @@ -0,0 +1,8 @@ + + + + diff --git a/PanelGrid/src/main/webapp/WEB-INF/web.xml b/PanelGrid/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000..bf2f024 --- /dev/null +++ b/PanelGrid/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,23 @@ + + + + + javax.faces.FACELETS_DECORATORS + + de.beyondjava.angularFaces.core.tagTransformer.AngularTagDecorator + + + + primefaces.THEME + bootstrap + + + + BootsFaces_USETHEME + true + + + index.jsf + + \ No newline at end of file diff --git a/PanelGrid/src/main/webapp/index.xhtml b/PanelGrid/src/main/webapp/index.xhtml new file mode 100644 index 0000000..0295a38 --- /dev/null +++ b/PanelGrid/src/main/webapp/index.xhtml @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ResponsiveDesign/README.md b/ResponsiveDesign/README.md index c479762..f52ff3b 100644 --- a/ResponsiveDesign/README.md +++ b/ResponsiveDesign/README.md @@ -1,7 +1,8 @@ # BootsFaces-Examples: Responsive Design This demo shows how to set up a BootsFaces project and demonstrates the responsive design. -Run this as a Tomcat application. The URL to start typically is http://localhost:8080/BootsFacesResponsiveDesign +Run this as a Tomcat application. The URL to start typically is http://localhost:8080/BootsFacesResponsiveDesign. +There's also a live demo at http://angularfaces.net/BootsFacesResponsiveDesign/. Tested on: