ModalWindow: unclear exception if property "Content" is not set
---------------------------------------------------------------
Key: WICKET-1491
URL: https://issues.apache.org/jira/browse/WICKET-1491
Project: Wicket
Issue Type: Bug
Components: wicket-extensions
Affects Versions: 1.3.2
Reporter: Sergey Derugo
1. Create ModalWindow and don't set property *content* , for example:
{code}
package com.gfs.corp.bid.app.webcontrols.popup;
import org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow;
public class DialogMessage extends ModalWindow {
public DialogMessage(String id) {
super(id);
setTitle("popups.notification.header");
//setContent(new InformationMessageContent(getContentId()));
}
}
{code}
2. Create instance of DialogMessage and call method *show* - exception is
thrown:
message - WicketMessage: Error creating page for modal dialog.
Using this exception it's impossible to understand what is wrong. Either
exception message should be more detailed.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.