[ https://issues.apache.org/jira/browse/WICKET-1491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12586458#action_12586458 ]
Sergey Derugo commented on WICKET-1491: --------------------------------------- Full stack trace: WicketMessage: Error creating page for modal dialog.Root cause:org.apache.wicket.WicketRuntimeException: Error creating page for modal dialog. at org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow.getWindowOpenJavascript(ModalWindow.java:932) at org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow.show(ModalWindow.java:279) at test.demo.HomePage$1.onSubmit(HomePage.java:30) at org.apache.wicket.ajax.markup.html.form.AjaxButton$1.onSubmit(AjaxButton.java:86) at org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:135) at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:161) at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:288) at org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:100) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:90) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1166) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1241) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1316) at org.apache.wicket.RequestCycle.request(RequestCycle.java:493) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:354) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:619) > 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.