diff --git a/src/main/java/io/desmet/jo/zakee/rs/ZakeeService.java b/src/main/java/io/desmet/jo/zakee/rs/ZakeeService.java
index 0586f61..f2fbaff 100644
--- a/src/main/java/io/desmet/jo/zakee/rs/ZakeeService.java
+++ b/src/main/java/io/desmet/jo/zakee/rs/ZakeeService.java
@@ -34,14 +34,14 @@ public class ZakeeService {
@Produces(MediaType.TEXT_HTML)
@Path("context")
public String processContextPath() {
- return "This "+contextPath+" service is life!
";
+ return "This "+contextPath+" service is alife!";
}
@GET
@Produces(MediaType.TEXT_HTML)
@Path("who")
public String processWho() {
- return "Service for "+who.getYou().getFirstName()+"
";
+ return "Service for "+who.getYou().getFirstName() + " (using CDI)";
}
@PostConstruct
diff --git a/src/main/webapp/index.xhtml b/src/main/webapp/index.xhtml
index 124fd27..57ea76a 100644
--- a/src/main/webapp/index.xhtml
+++ b/src/main/webapp/index.xhtml
@@ -1,23 +1,54 @@
-
+
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:b="http://bootsfaces.net/ui">
Introduce
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+ If the text in the input field is "Guest", CDI works.
+
+
+
+
+
+
+ Simple REST service:
+ #{request.contextPath}/rs/zakee-service/context
+
+ Result: (waiting for the REST service result)
+
+
+
+ REST service using CDI:
+ #{request.contextPath}/rs/zakee-service/who
+
+ Result: (waiting for the REST service result)
+
+
+
+
+
-
-
+