Hi all, I'm new to Wicket, so if I've done something obviously wrong, please point it out. I have 2 ways the user could log in to our site. One if via the full page login form, the other is via quick login in the header. Since I'll need to gather the same form data in multiple places, I've created a reusable form object below.
http://pastie.org/private/7v1vnmyb4kefamu8q1tnfw Now, I'm working on my "SessionPanel". This is the panel at the top right of my header. If the user is logged in, it shows a logout link. If they're an anonymous user, it shows the login form. I have this for my panel code. http://www.pastie.org/private/bw5vvzddtrcruemnobjg And here is my html http://www.pastie.org/private/o9gzhxeqfcbu8vpohr1uvw Whenever I try to render the page, I always receive this error. Root cause: org.apache.wicket.markup.MarkupException: Expected close tag for <wicket:fragment wicket:id="login"> [markup = file:/Users/toddnine/development/aviator-services/logbook/target/classes/com/spidertracks/aviator/logbook/panel/SessionPanel.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:wicket="http://wicket.sourceforge.net/" xml:lang="en" lang="en"> <body> <wicket:panel> <wicket:fragment wicket:id="login"> <form wicket:id="loginForm"> <p>keep me logged in: <input type="checkbox" wicket:id="rememberMe"/> </p> <p> email: <input type="text" wicket:id="email"/> password: <input type="password" wicket:id="password"/> <input type="submit" value="Login" /> </p> </form> </wicket:fragment> <wicket:fragment wicket:id="logout"> <p><a href="#" wicket:id="logout">logout</a></p> </wicket:fragment> </wicket:panel> </body> </html>, index = 5, current = '<form wicket:id="loginForm">' (line 9, column 3)] at org.apache.wicket.markup.MarkupStream.throwMarkupException(MarkupStream.java:474) at org.apache.wicket.Component.renderClosingComponentTag(Component.java:4318) at org.apache.wicket.Component.renderComponent(Component.java:2627) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512) at org.apache.wicket.Component.render(Component.java:2450) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1414) at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1577) at org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:675) at org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:114) at org.apache.wicket.Component.renderComponent(Component.java:2619) My XHtml seems well formed, what am I doing wrong? Thanks, Todd
