diff options
| author | Benjamin Culkin <scorpress@gmail.com> | 2024-10-14 11:33:31 -0400 |
|---|---|---|
| committer | Benjamin Culkin <scorpress@gmail.com> | 2024-10-14 11:33:31 -0400 |
| commit | be03e4adfe97561553c9ed2c10561c49d35c06d9 (patch) | |
| tree | ac39a71ef7be15bfac02d3907426f206eab7cab5 /wotonomy-web-test/src/main/java/Main.java | |
| parent | df38659b7474d0cc00a125872b51cc399978a67f (diff) | |
Add basic blog enttry list
This adds a basic blog entry list to the front page. Currently, the blog
entries are just populated from code, but eventually they will be pulled
from the database
Diffstat (limited to 'wotonomy-web-test/src/main/java/Main.java')
| -rw-r--r-- | wotonomy-web-test/src/main/java/Main.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/wotonomy-web-test/src/main/java/Main.java b/wotonomy-web-test/src/main/java/Main.java index 0820fbc..1c8f1fb 100644 --- a/wotonomy-web-test/src/main/java/Main.java +++ b/wotonomy-web-test/src/main/java/Main.java @@ -3,6 +3,7 @@ import net.wotonomy.web.*; public class Main extends WOComponent { + private BlogEntry blogEntry; private boolean showing; private String textFieldValue; @@ -22,6 +23,14 @@ public class Main extends WOComponent { showing = value; } + public BlogEntry getBlogEntry() { + return blogEntry; + } + + public void setBlogEntry(BlogEntry blogEntry) { + this.blogEntry = blogEntry; + } + public WOActionResults submit() { System.out.println("Form Submitted"); System.out.println("textfield says '" + getTextValue() + "'"); |
