From 59ec7e875abf198f0a5803947c108b2df957d91d Mon Sep 17 00:00:00 2001 From: Julian Hinxlage Date: Fri, 17 May 2019 10:14:15 +0200 Subject: [PATCH] +template for JSF --- pom.xml | 1 - src/main/java/de/hsel/itech/jsf/BookInfo.java | 23 +++ src/main/webapp/bookinfo.xhtml | 24 +++ src/main/webapp/template.xhtml | 156 ++++++++++++++++++ 4 files changed, 203 insertions(+), 1 deletion(-) create mode 100644 src/main/java/de/hsel/itech/jsf/BookInfo.java create mode 100644 src/main/webapp/bookinfo.xhtml create mode 100644 src/main/webapp/template.xhtml diff --git a/pom.xml b/pom.xml index b4bb633..4a78a61 100644 --- a/pom.xml +++ b/pom.xml @@ -247,7 +247,6 @@ - org.projectlombok diff --git a/src/main/java/de/hsel/itech/jsf/BookInfo.java b/src/main/java/de/hsel/itech/jsf/BookInfo.java new file mode 100644 index 0000000..d4231be --- /dev/null +++ b/src/main/java/de/hsel/itech/jsf/BookInfo.java @@ -0,0 +1,23 @@ +package de.hsel.itech.jsf; + +import javax.faces.bean.ManagedBean; +import javax.faces.bean.SessionScoped; + +//JSF Bean for bookinfo +@ManagedBean(name="bookInfo", eager=true) +@SessionScoped +public class BookInfo { + + private String test; + + BookInfo(){ + test = "test String"; + } + + public String getTest(){ + return test; + } + public void setTest(String str){ + test = str; + } +} diff --git a/src/main/webapp/bookinfo.xhtml b/src/main/webapp/bookinfo.xhtml new file mode 100644 index 0000000..e9c8d22 --- /dev/null +++ b/src/main/webapp/bookinfo.xhtml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/webapp/template.xhtml b/src/main/webapp/template.xhtml new file mode 100644 index 0000000..af9e554 --- /dev/null +++ b/src/main/webapp/template.xhtml @@ -0,0 +1,156 @@ + + + + + + + + + + + + + + + Amazon Light + + + + + + + +
+ + +
+ + + + + + + + + \ No newline at end of file