There was an error while loading. Please reload this page.
<env-entry> <env-entry-name>welcomeMessage</env-entry-name> <env-entry-type>java.lang.String</env-entry-type> <env-entry-value>@Welcome</env-entry-value> </env-entry>
public class ListContacts extends WebPage { @Resource(name="welcomeMessage") private String welcome; public ListContacts() { new Label(this, "welcomeMessage", welcome); //.......
addComponentInstantiationListener(new JavaEEComponentInjector(this));
inside the init() method of your Wicket WebApplication?, like in the example:
public class WicketJavaEEApplication extends WebApplication { protected void init() { addComponentInstantiationListener(new JavaEEComponentInjector(this)); } }