{
add(new Image("beer"));
// Add a couple of links to be able to play around with the session
// locale
add(new Link("goCanadian")
{
private static final long serialVersionUID = 1L;
@Override
public void onClick()
{
getSession().setLocale(Locale.CANADA);
}
});
add(new Link("goUS")
{
private static final long serialVersionUID = 1L;
@Override
public void onClick()
{
getSession().setLocale(Locale.US);
}
});
add(new Link("goDutch")
{
private static final long serialVersionUID = 1L;
@Override
public void onClick()
{
getSession().setLocale(new Locale("nl", "NL"));
}
});
add(new Link("goGerman")
{
private static final long serialVersionUID = 1L;
@Override
public void onClick()
{
getSession().setLocale(new Locale("de", "DE"));
}
});
add(new Link("goChinese")
{
private static final long serialVersionUID = 1L;
@Override
public void onClick()
{
getSession().setLocale(new Locale("zh", "CN"));
}
});
add(new Link("goDanish")
{
private static final long serialVersionUID = 1L;
@Override
public void onClick()