毎回org.apache.wicket.request.resource.CompressedResourceReference改札:モーダルウィンドウとにClassNotFound:</p> <p>にjava.lang.ClassNotFoundException::私は私が手にモーダルウィンドウを実装しようCompressedResourceReference
私のライブラリのどれもが持っていますこの要素。マイ依存している:
<dependency>
<groupId>org.apache.wicket</groupId>
<artifactId>wicket-core</artifactId>
<version>1.5.3</version>
</dependency>
<!-- DatePicker -->
<dependency>
<groupId>org.apache.wicket</groupId>
<artifactId>wicket-datetime</artifactId>
<version>1.5.2</version>
</dependency>
<dependency>
<groupId>org.apache.wicket</groupId>
<artifactId>wicket-extensions</artifactId>
<version>1.5.3</version>
</dependency>
€ザッツ私は私のモーダルウィンドウを実装する方法:
import org.apache.wicket.ajax.AbstractAjaxTimerBehavior;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.markup.html.AjaxLink;
import org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.util.time.Duration;
public class ModalPanel1 extends WebPage
{
public ModalPanel1(String id)
{
final ModalWindow modalWindow = new ModalWindow("modal");
modalWindow.setTitle("Popup");
modalWindow.setInitialWidth(400);
modalWindow.setInitialHeight(400);
modalWindow.setResizable(true);
modalWindow.setContent(new AbstractModalClosePanel(modalWindow)
{
public void onClick(AjaxRequestTarget target)
{
modalWindow.close(target);
}
});
add(modalWindow);
add(new AjaxLink<Void>("open")
{
@Override
public void onClick(AjaxRequestTarget target)
{
modalWindow.show(target);
}
});
add(new AbstractAjaxTimerBehavior(Duration.seconds(2))
{
@Override
protected void onTimer(AjaxRequestTarget target)
{
modalWindow.show(target);
stop();
}
});
}
}
と
import org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow;
import org.apache.wicket.markup.html.panel.Panel;
public abstract class AbstractModalClosePanel extends Panel
{
public AbstractModalClosePanel(ModalWindow modalWindow)
{
super(modalWindow.getContentId());
}
を一切古い輸入はありません。
完全なスタックトレース
完全なスタック:org.apache.wicket.WicketRuntimeException: ')(公共com.onespark.wicket.components.tasks.Tasks' コンストラクタを使用してページをインスタンス化することはできません。それは存在しないかもしれませんが、目に見えないかもしれません(一般)。 org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:196)at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:68)at org.apache.wicket.session.DefaultPageFactory.newPage (DefaultPageFactory.java:47)at org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperContext.java:103)at org.apache.wicket.request.handler.PageProvider.resolvePageInstance(PageProvider.java:264)at org.apache。 org.apache.wicket.request.request.request.handler.PageProvider.getPageInstance(PageProvider.java:165)org.apache.wicket.request.request.request.handler.render.PageRenderer.getPage(PageRenderer.java:78)(org.apache.wicket.request.handler) org.apache.wicket.request.handler.RenderPageRequestHandler.respondの(WebPageRenderer.java:224) RenderPageRequestHandler.java:167)at org.apache.wicket.request.cycle.RequestCycle $ HandlerExecutor.respond(RequestCycl e.java:750)org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:252)at org.apache .wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:209)at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:280)at org.apache.wicket.protocol.http.WicketFilter .processRequest(WicketFilter.java:162)sun.reflect.NativeConstructorAccessorImpl.newInstance0(ネイティブメソッド)(java.lang.reflectのsun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39))のjava.lang.reflect.InvocationTargetException。 orgのorg.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:68)のコンストラクタ.newInstance(コンストラクタ.java:513) .apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:47)at org.apach org.apache.wicket.request.handler.PageProvider。 PageProvider.java:165)org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78)(org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java: 105)at org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:224)at org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:167)at org.apache .wicket.request.cycle.RequestCycle $ HandlerExecutor.respond(RequestCycle.java:750)at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)at org.apache.wicket.request.cycle.RequestCycle .execute(RequestCycle.java:252)at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:209)a org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:280)at org.apache.wicket.protocol.http。WicketFilter.processRequest(WicketFilter.java:162)java.lang.NoClassDefFoundError:org/apache/wicket/request/resource/CompressedResourceReference com.onespark.wicket.components.tasks.ModalPanel1。(ModalPanel1.java:16)at com。 (デフォルトのFactoryFactory.java)のjava.lang.reflect.Constructor.newInstance(Constructor.java:513)のonespark.wicket.components.tasks.Tasks(Tasks.java:14) :177)at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:68)at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:47)at org.apache.wicket.DefaultMapperContext。 org.apache.wicket.request.handler.PageProvider.resolvePageInstance(PageProvider.java:264)at org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:165)のnewPageInstance(DefaultMapperContext.java:103) org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78)at org.apache.wicket.request.h andler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)at org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:224)at org.apache.wicket.request.handler.RenderPageRequestHandler。 org.apache.wicket.request.cycle.RequestCycle $ HandlerExecutor.respond(RequestCycle.java:750)at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)での応答(RenderPageRequestHandler.java:167) org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:252)at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:209)at org.apache.wicket.request org.apache.wicket.protocol.http.WicketFilter.processRequestで.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:280)(WicketFilter.java:162)
私の質問を編集しました。そこには、古い輸入品は見られません。 – user1090145