生理中
JBOSSのログに、次のようなエラーが表示される。
01:47:14,471 ERROR [STDERR] ******************************************************************** *** WARNING: Wicket is running in DEVELOPMENT mode. *** *** ^^^^^^^^^^^ *** *** Do NOT deploy to your live server(s) without changing this. *** *** See Application#getConfigurationType() for more information. *** ********************************************************************
package com.snail.wicket.exam;
import org.apache.wicket.Request;
import org.apache.wicket.Response;
import org.apache.wicket.Session;
import org.apache.wicket.protocol.http.WebApplication;
public class WicketApplication extends WebApplication {
public WicketApplication() {
super();
}
@Override
public String getConfigurationType() {
//return WebApplication.DEVELOPMENT;
return WebApplication.DEPLOYMENT;
}
@SuppressWarnings("unchecked")
@Override
public Class getHomePage() {
return MenuPage.class;
}
@Override
public Session newSession(Request req, Response res) {
return new MySession(req);
}
}
<img src="flag.gif" wicket:id="flag"> <a href="nationalAnthem.html" wicket:id="nAnthem"> <wicket:message key="nationalAnthem">国歌</wicket:message> </a>
public class NAnthemPage extends WebPage{ public NAnthemPage(){ Image flagImg = new Image("flag"); add(flagImg); PageLink nAnthemLink = new PageLink("nAnthem",nANthem.class); add(nAnthemLink); ... } }
<wicket:link> <img src="flag.gif"> <a href="nationalAnthem.html"> <wicket:message key="nationalAnthem">国歌</wicket:message> </a> </wicket:link>
public class NAnthemPage extends WebPage{ public NAnthemPage(){ // Image flagImg = new Image("flag"); // add(flagImg); // // PageLink nAnthemLink = new PageLink("nAnthem",nANthem.class); // add(nAnthemLink); ... } }