/**
* Constructs a login page.
*/
public LoginPage() {
String loginConcept = app.getModelConfig().getLoginConcept();
Members members = (Members) app.getEntry(loginConcept);
try {
ModelContext menuModelContext = new ModelContext();
menuModelContext.setDomainModel(app.getDomainModel());
ViewContext menuViewContext = new ViewContext();
menuViewContext.setApp(app);
menuViewContext.setContextPage(this);
menuViewContext.setPage(this);
menuViewContext.setWicketId("dmRadMenuPanel");
add(app.getViewMeta().getDmRadMenuPanel(menuModelContext,
menuViewContext));
add(new FeedbackPanel("loginFeedback"));
ModelContext loginModelContext = new ModelContext();
loginModelContext.setDomainModel(app.getDomainModel());
loginModelContext.setEntities(members);
loginModelContext.setEntity(new Member(members.getDomainModel()));
ViewContext loginViewContext = new ViewContext();
loginViewContext.setApp(app);
loginViewContext.setContextPage(this);
loginViewContext.setPage(this);
loginViewContext.setWicketId("loginPanel");