From de84d461327f5250cca99deb6f0f20fd7803bcf7 Mon Sep 17 00:00:00 2001 From: stephan Date: Thu, 31 Dec 2015 18:23:21 +0100 Subject: [PATCH] Tried to reproduce issue 227 --- issue227/.gitignore | 8 ++ issue227/README.md | 10 ++ issue227/pom.xml | 127 ++++++++++++++++++ .../IdentificationController.java | 34 +++++ .../be/slbo/listgenerator/ColumnsView.java | 5 + .../slbo/listgenerator/ListGeneratorGui.java | 5 + .../src/main/webapp/WEB-INF/faces-config.xml | 27 ++++ issue227/src/main/webapp/WEB-INF/web.xml | 38 ++++++ issue227/src/main/webapp/login.xhtml | 73 ++++++++++ 9 files changed, 327 insertions(+) create mode 100644 issue227/.gitignore create mode 100644 issue227/README.md create mode 100644 issue227/pom.xml create mode 100644 issue227/src/main/java/Authentification/IdentificationController.java create mode 100644 issue227/src/main/java/be/slbo/listgenerator/ColumnsView.java create mode 100644 issue227/src/main/java/be/slbo/listgenerator/ListGeneratorGui.java create mode 100644 issue227/src/main/webapp/WEB-INF/faces-config.xml create mode 100644 issue227/src/main/webapp/WEB-INF/web.xml create mode 100644 issue227/src/main/webapp/login.xhtml diff --git a/issue227/.gitignore b/issue227/.gitignore new file mode 100644 index 0000000..8d629d4 --- /dev/null +++ b/issue227/.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/issue227/README.md b/issue227/README.md new file mode 100644 index 0000000..6c5b922 --- /dev/null +++ b/issue227/README.md @@ -0,0 +1,10 @@ +# BootsFaces-Examples: Login Screen +This demo is an attempt to reproduce issue 227. + +Run this as a Tomcat application. The URL to start typically is http://localhost:8080/ListGenerator + +Tested on: + diff --git a/issue227/pom.xml b/issue227/pom.xml new file mode 100644 index 0000000..a0a76d7 --- /dev/null +++ b/issue227/pom.xml @@ -0,0 +1,127 @@ + + 4.0.0 + + be.slbo + ListGenerator + 1.0-SNAPSHOT + war + + ListGenerator + + + ${project.build.directory}/endorsed + UTF-8 + + + + + org.eclipse.persistence + eclipselink + 2.5.2 + + + javax + javaee-web-api + 7.0 + provided + + + org.primefaces.extensions + all-themes + 1.0.8 + + + + org.primefaces + primefaces + 5.3 + + + org.glassfish + javax.faces + 2.2.7 + + + net.bootsfaces + bootsfaces + 0.8.0 + compile + + + + jstl + jstl + 1.2 + + + + commons-logging + commons-logging + 1.1.1 + + + org.apache.commons + commons-lang3 + 3.4 + + + org.apache.xmlbeans + xmlbeans + 2.6.0 + + + org.apache.poi + poi + 3.9 + + + org.apache.poi + poi-ooxml + 3.9 + + + dom4j + dom4j + 1.6.1 + + + + com.unboundid + unboundid-ldapsdk + 3.0.0 + + + com.novell.ldap + jldap + 4.3 + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 2.3.2 + + 1.7 + 1.7 + + ${endorsed.dir} + + + + + org.apache.maven.plugins + maven-war-plugin + 2.1.1 + + false + + + + ListGenerator + + + diff --git a/issue227/src/main/java/Authentification/IdentificationController.java b/issue227/src/main/java/Authentification/IdentificationController.java new file mode 100644 index 0000000..13efc84 --- /dev/null +++ b/issue227/src/main/java/Authentification/IdentificationController.java @@ -0,0 +1,34 @@ +package Authentification; + +public class IdentificationController { + + private String login; + private String password; + public void init() { + + } + + public void identify() { + + } + + public boolean isSession(){ + return true; + } + + public String getLogin() { + return login; + } + + public void setLogin(String login) { + this.login = login; + } + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } +} diff --git a/issue227/src/main/java/be/slbo/listgenerator/ColumnsView.java b/issue227/src/main/java/be/slbo/listgenerator/ColumnsView.java new file mode 100644 index 0000000..61f0203 --- /dev/null +++ b/issue227/src/main/java/be/slbo/listgenerator/ColumnsView.java @@ -0,0 +1,5 @@ +package be.slbo.listgenerator; + +public class ColumnsView { + +} diff --git a/issue227/src/main/java/be/slbo/listgenerator/ListGeneratorGui.java b/issue227/src/main/java/be/slbo/listgenerator/ListGeneratorGui.java new file mode 100644 index 0000000..04b960c --- /dev/null +++ b/issue227/src/main/java/be/slbo/listgenerator/ListGeneratorGui.java @@ -0,0 +1,5 @@ +package be.slbo.listgenerator; + +public class ListGeneratorGui { + +} diff --git a/issue227/src/main/webapp/WEB-INF/faces-config.xml b/issue227/src/main/webapp/WEB-INF/faces-config.xml new file mode 100644 index 0000000..e56b70f --- /dev/null +++ b/issue227/src/main/webapp/WEB-INF/faces-config.xml @@ -0,0 +1,27 @@ + + + + + + + listGeneratorGui + be.slbo.listgenerator.ListGeneratorGui + session + + + IdentificationController + Authentification.IdentificationController + session + + + dtColumnsView + be.slbo.listgenerator.ColumnsView + session + + + + diff --git a/issue227/src/main/webapp/WEB-INF/web.xml b/issue227/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000..b31524e --- /dev/null +++ b/issue227/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,38 @@ + + + + javax.faces.PROJECT_STAGE + Production + + + Faces Servlet + *.jsf + + + primefaces.THEME + bootstrap + + + Faces Servlet + javax.faces.webapp.FacesServlet + 1 + + + Faces Servlet + /faces/* + + + 60 + + + faces/login.xhtml + + + javax.faces.application.ViewExpiredException + /errorPage.xhtml + + + BootsFaces_USETHEME + true + + diff --git a/issue227/src/main/webapp/login.xhtml b/issue227/src/main/webapp/login.xhtml new file mode 100644 index 0000000..f0b0966 --- /dev/null +++ b/issue227/src/main/webapp/login.xhtml @@ -0,0 +1,73 @@ + + + + + ListGenerator + + + + + + + + + + + + + + + + +

Authentification

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+

vous êtes déjà connecté en tant que #{IdentificationController.login} veuillez cliquer sur le button plus bas pour être redirigé

+
+ +
+
+
+