Permalink
Browse files

got some header and footer action :)

  • Loading branch information...
ceefour committed Jun 29, 2012
1 parent fdc5300 commit abeff26b38ca424069e112d82a2d294e79c96967
@@ -0,0 +1,21 @@
+package com.hendyirawan.oui.paxwicketjava.web;
+
+import org.apache.wicket.markup.html.panel.Panel;
+import org.apache.wicket.model.IModel;
+
+/**
+ * @author ceefour
+ *
+ */
+@SuppressWarnings("serial")
+public class Footer extends Panel {
+
+ public Footer() {
+ super("footer");
+ }
+
+ public Footer(IModel<?> model) {
+ super("footer", model);
+ }
+
+}
@@ -0,0 +1,21 @@
+package com.hendyirawan.oui.paxwicketjava.web;
+
+import org.apache.wicket.markup.html.panel.Panel;
+import org.apache.wicket.model.IModel;
+
+/**
+ * @author ceefour
+ *
+ */
+@SuppressWarnings("serial")
+public class Header extends Panel {
+
+ public Header() {
+ super("header");
+ }
+
+ public Header(IModel<?> model) {
+ super("header", model);
+ }
+
+}
@@ -11,7 +11,9 @@
public class HomePage extends WebPage {
public HomePage() {
+ add(new Header());
add(new Label("message", "Hello world!"));
+ add(new Footer());
}
}
@@ -0,0 +1,7 @@
+<wicket:panel xmlns:wicket="urn:wicket"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="urn:wicket http://git-wip-us.apache.org/repos/asf/wicket/repo?p=wicket.git;a=blob_plain;f=wicket-core/src/main/resources/META-INF/wicket-1.5.xsd;hb=master">
+<footer style="border: 1px solid gray;">
+ footer!
+</footer>
+</wicket:panel>
@@ -0,0 +1,7 @@
+<wicket:panel xmlns:wicket="urn:wicket"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="urn:wicket http://git-wip-us.apache.org/repos/asf/wicket/repo?p=wicket.git;a=blob_plain;f=wicket-core/src/main/resources/META-INF/wicket-1.5.xsd;hb=master">
+<header style="border: 1px solid gray;">
+ header!
+</header>
+</wicket:panel>
@@ -5,8 +5,12 @@
<title>Yaaay</title>
</head>
<body>
+ <span wicket:id="header"/>
+
<p>Something's right :-)</p>
<p>Here's your message:</p>
<p wicket:id="message">[placeholder]</p>
+
+ <span wicket:id="footer"/>
</body>
</html>

0 comments on commit abeff26

Please sign in to comment.