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");
loginViewContext.setUpdate(true);
add(app.getViewMeta().getLoginPanel(loginModelContext,
loginViewContext));
ModelContext confirmationModelContext = new ModelContext();
confirmationModelContext.setDomainModel(app.getDomainModel());
confirmationModelContext.setEntities(members);
ViewContext confirmationViewContext = new ViewContext();
confirmationViewContext.setApp(app);
confirmationViewContext.setContextPage(this);
confirmationViewContext.setPage(this);
confirmationViewContext.setWicketId("newMemberConfirmPanel");
confirmationViewContext.setUpdate(true);
Panel newMemberConfirmPanel = app.getViewMeta().getNewMemberConfirmPanel(
confirmationModelContext, confirmationViewContext);
add(newMemberConfirmPanel);
if (!app.getDomainModel().getModelConfig().isLogup()) {
newMemberConfirmPanel.setVisible(false);