我试着去使用mountPage在检票口安装“/” URL作为我的URL的MainPage。
我的WebApplication现在看起来是这样的:
public class WicketApplication extends WebApplication
{
@Override
public Class<HomePage> getHomePage()
{
return HomePage.class;
}
@Override
public void init()
{
super.init();
mountPages();
}
private void mountPages()
{
mountPage( "/home", HomePage.class );
mountPage( "/about", AboutCompany.class );
mountPage( "/prices", Prices.class );
mountPage( "/gallery", Gallery.class );
mountPage( "/contact", Contact.class );
mountPage( "/offer", Offer.class );
}
}
和实际工作很好,但我想“/家庭”转变为“/”,但它搅乱了很多与CSS例如,不transfering,但整个首页来代替。 我怎样才能使这项工作我想要的方式?