[ 
https://issues.apache.org/jira/browse/WICKET-1491?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Matej Knopp resolved WICKET-1491.
---------------------------------

    Resolution: Fixed

There should be no exception

> 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: Improvement
>          Components: wicket-extensions
>    Affects Versions: 1.3.2
>            Reporter: Sergey Derugo
>            Assignee: Matej Knopp
>
> 1. Create ModalWindow and don't set property *content* , for example:
> {code}
> package test.demo.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.

Reply via email to