git clone https://github.com/bitstorm/Wicket-tutorial-examples.git
Wicket 7.x Reference Guide
1. Introduction简介
Wicket has been around since 2004 and it has been an Apache project since 2007. During these years it has proved to be a solid and valuable solution for building enterprise web applications.
Wicket自从2004年开始就存在了。它从2007开始是一个Apache的工程。经过这些年,它已经被证实是一个solid而且有价值的企业级Web端程序解决方案。
Wicket core developers have done a wonderful job with this framework and they continue to improve it release after release. However Wicket never provided a freely available documentation and even if you can find on Internet many live examples and many technical articles on it (most of them at Wicket Examples Site and at Wicket in Action), the lack of an organized and freely available documentation has always been a sore point for this framework.
Wicket核心开发人员在这个框架上做得很好,他们在一次又一次的发布中继续改进它。然而,Wicket从未提供过免费提供的文档,即使你可以在互联网上找到许多实时示例和许多技术文章(其中大多数在Wicket examples Site和Wicket in Action),但缺乏有组织的免费文档一直是这个框架的痛点。
That’s quite an issue because many other popular frameworks (like Spring, Hibernate or Struts) offer a vast and very good documentation which substantially contributed to their success.
这是一个很大的问题,因为许多其他流行的框架(如Spring、Hibernate或Struts)提供了大量非常好的文档,这对它们的成功起到了很大的作用。
This document is not intended to be a complete reference for Wicket but it simply aims to be a straightforward introduction to the framework that should significantly reduce its learning curve. What you will find here reflects my experience with Wicket and it’s strictly focused on the framework. The various Wicket-related topics are gradually introduced using pragmatic examples of code that you can find in the according repository on Github. However remember that Wicket is a vast and powerful tool, so you should feel confident with the topics exposed in this document before starting to code your real applications!
本文件并非旨在作为Wicket的完整参考,但其目的只是简单介绍该框架,从而显著减少其学习曲线。你会发现这里反映了我对Wicket的经验,它严格专注于框架。各种与Wicket相关的主题都是通过使用实用的代码示例逐步介绍的,您可以在Github上的相应存储库中找到这些示例。但是请记住,Wicket是一个庞大而强大的工具,因此在开始编写真正的应用程序之前,您应该对本文档中公开的主题充满信心!
For those who need further documentation on Wicket, there are many good books available for this framework.
对于那些需要关于Wicket的进一步文档的人来说,有很多关于这个框架的好书。
Hope you’ll find this guide helpful. Have fun with Wicket!
希望你会觉得这本指南很有帮助。和Wicket玩得开心!
Editors:
PS: this guide is based on Wicket 6. However if you are using an older version you should find this guide useful as well, but it’s likely that the code and the snippets won’t work with your version.
附言:本指南基于Wicket 6。然而,如果您使用的是旧版本,您应该会发现本指南也很有用,但代码和片段很可能不适用于您的版本。
PPS: although I’ve tried to do my best working on this tutorial, this document is a work in progress and may contain errors and/or omissions. That’s why any feedback of any kind is REALLY appreciated!
PPS:尽管我已经尽力完成本教程,但本文档仍在进行中,可能会包含错误和/或遗漏。这就是为什么任何形式的反馈都会受到真正的赞赏!
2. How to use the example code
Most of the code you will find in this document is available as a Git repository and is licensed under the ASF 2.0. Examples are hosted live at {externalink:wicket.tutorial.examples.url}. To get a local copy of the repository you can run the clone command from shell:
If you aren’t used to Git, you can simply download the whole source as a zip archive:
参考:https://nightlies.apache.org/wicket/guide/7.x/single.html