如何使用 apache wicket 扩展?
我想使用 wicket 中的 AjaxFallbackDefaultDataTable 来查看我的数据,但这些导入在 eclipse 中显示错误:
import org.apache.wicket.extensions.ajax.markup.html.repeater.data.table.AjaxFallbackDefaultDataTable; import org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator;
import org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn;
import org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn;
import org.apache.wicket.extensions.markup.html.repeater.data.table.PropertyColumn;
我想我应该从某个地方下载扩展 jar 文件,但我不知道在哪里,并且Apache wicket 网站关于这一点含糊其辞。
我正在使用带有 Maven 插件和 wicket 1.5RC1 的 Eclipse
I want to use the AjaxFallbackDefaultDataTable
in wicket to view my data but these imports are showing error in eclipse :
import org.apache.wicket.extensions.ajax.markup.html.repeater.data.table.AjaxFallbackDefaultDataTable; import org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator;
import org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn;
import org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn;
import org.apache.wicket.extensions.markup.html.repeater.data.table.PropertyColumn;
I guess I should be downloading an extensions jar file from somewhere but I don't know where at, and the Apache wicket website is vague regarding this point.
I am using eclipse with maven plugin and wicket 1.5RC1
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以从 maven 存储库 获取 wicket-extensions 库。该站点显示了各种版本,并允许您通过下载 jar 或使用各种构建工具(当然包括 maven)来检索它。
Maven 是处理 java 依赖管理的好工具,wicket Quickstart 对于启动 wicket 很有用使用 Maven 设置的项目。
You can get the wicket-extensions library from the maven repository. This site shows assorted versions and allows you to retrieve it by just downloading the jar or by using various build tools including of course maven.
Maven is a good tool for dealing java dependency management, and wicket quickstart is useful for starting wicket projects with a maven setup.
我只是将以下几行添加到 pom.xml 文件中以添加扩展依赖项。
I simply added the following lines to the pom.xml file to add the extensions dependency .