You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Sergey Derugo (JIRA)" <ji...@apache.org> on 2008/04/07 18:31:26 UTC
[jira] Updated: (WICKET-1491) ModalWindow: unclear exception if
property "Content" is not set
[ https://issues.apache.org/jira/browse/WICKET-1491?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sergey Derugo updated WICKET-1491:
----------------------------------
Description:
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.
was:
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.
> 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 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.