I am trying to have the title of a given page, populated from the code.
HTML:
======
<html>
<head>
<title>wicket:id="mysiteName"</title>
</head>
<body>
<strong>Homepage</strong>
<br />
<br />
<span wicket:id="message">message will be here</span>
</body>
</html>
Java: (HomePage.java only)
=====
public class HomePage extends WebPage {
public HomePage(final PageParameters parameters) {
// Add the simplest type of label
add(new Label("message", MESSAGE));
add(new Label("mysiteName", "mysite"));
// TODO Add your page's components here
}
static final String MESSAGE = "If you see this message wicket is
properly configured and running";
}
I am getting the following error.
ERROR - RequestCycle - The component(s) below failed to
render. A common problem is that you have added a component in code
but forgot to reference it in the markup (thus the component will
never be rendered).
1. [Component id = mysiteName, page = pages.HomePage, path =
0:mysiteName.Label, isVisible = true, isVersioned = true]
org.apache.wicket.WicketRuntimeException: The component(s) below
failed to render. A common problem is that you have added a component
in code but forgot to reference it in the markup (thus the component
will never be rendered).
1. [Component id = mysiteName, page = pages.HomePage, path =
0:mysiteName.Label, isVisible = true, isVersioned = true]
at org.apache.wicket.Page.checkRendering(Page.java:1115)
Can somebody help me here.
I am using this with Wicket 1.3.4 . (with Jetty engine).
Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]