diff --git a/pom.xml b/pom.xml
index b4bb633..1b49488 100644
--- a/pom.xml
+++ b/pom.xml
@@ -245,6 +245,11 @@
myfaces-impl
2.3.3
+
+ org.apache.myfaces.tomahawk
+ tomahawk20
+ 1.1.14
+
diff --git a/src/main/java/de/hsel/itech/db/pojo/Category.java b/src/main/java/de/hsel/itech/db/pojo/Category.java
index b3099ed..c15c20d 100644
--- a/src/main/java/de/hsel/itech/db/pojo/Category.java
+++ b/src/main/java/de/hsel/itech/db/pojo/Category.java
@@ -2,6 +2,8 @@ package de.hsel.itech.db.pojo;
import lombok.*;
+import java.io.Serializable;
+
/**
* POJO for Category.
*
@@ -14,7 +16,7 @@ import lombok.*;
@AllArgsConstructor
@RequiredArgsConstructor
@NoArgsConstructor
-public class Category {
+public class Category implements Serializable {
private long id;
@NonNull private String name;
diff --git a/src/main/java/de/hsel/itech/jsf/CategoryBean.java b/src/main/java/de/hsel/itech/jsf/CategoryBean.java
new file mode 100644
index 0000000..bb211ed
--- /dev/null
+++ b/src/main/java/de/hsel/itech/jsf/CategoryBean.java
@@ -0,0 +1,26 @@
+package de.hsel.itech.jsf;
+
+import de.hsel.itech.db.Database;
+import de.hsel.itech.db.pojo.Category;
+
+import javax.faces.bean.ApplicationScoped;
+import javax.faces.bean.ManagedBean;
+import java.io.Serializable;
+import java.util.List;
+
+@ManagedBean
+@ApplicationScoped
+public class CategoryBean implements Serializable {
+
+
+ private String hello = "Hallo Welt";
+
+ public String getHello() {
+ return hello;
+ }
+
+ public List getCategories() {
+ return Database.getInstance().getCategories();
+ }
+
+}
\ No newline at end of file
diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml
new file mode 100644
index 0000000..a974cdf
--- /dev/null
+++ b/src/main/webapp/WEB-INF/web.xml
@@ -0,0 +1,30 @@
+
+
+
+ Amazon light
+
+
+
+ javax.faces.PROJECT_STAGE
+ Development
+
+
+
+
+ Faces Servlet
+ javax.faces.webapp.FacesServlet
+ 1
+
+
+
+
+ Faces Servlet
+ *.jsf
+
+
+
\ No newline at end of file
diff --git a/src/main/webapp/category.xhtml b/src/main/webapp/category.xhtml
new file mode 100644
index 0000000..751a8f4
--- /dev/null
+++ b/src/main/webapp/category.xhtml
@@ -0,0 +1,30 @@
+
+
+
+
+ha
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file