在我的第一個基於Quickstart Maven原型的Wicket項目(使用Eclipse mars和Glassfish 4.1在Wicket 6.20中開發)中,我使用 getResourceSettings().getResourceFinders().add(new WebApplicationPath(getServletContext(), "html"));
將代碼與標記分開。Wicket測試程序不搜索WebApplicationPath
我的主頁效果很好,但WicketTester拋出一個異常org.apache.wicket.markup.MarkupNotFoundException: Can not determine Markup. Component is not yet connected to a parent. [Page class = ...MyProject.HomePage, id = 0, render count = 1]
此問題似乎並沒有被文獻的任何地方解決。