1 / 27

Introduction to Apache Wicket: A Java-based Web Framework

This introduction covers the fundamentals of Apache Wicket, a component-oriented web framework that allows developers to create web applications using just Java and HTML. It explores Wicket's core concepts, including its model-view-controller (MVC) design, the use of Ajax behaviors, and validation features. Learn why Wicket stands out among frameworks such as JSF and Webwork, and discover how to create reusable components and improve web application maintenance. The session includes demos of creating custom components and integrating validation.

gail-fowler
Download Presentation

Introduction to Apache Wicket: A Java-based Web Framework

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Wicket introduction 2008-10-29 Davey.wu

  2. Agenda • What is wicket • Why wicket • Wicket Components • Ajax Behavior • Wicket Validate • Wicket Tester • Other

  3. What is wicket: Hello World • Create web with just java + html. • Just java + html = wicket. • Example: Hello, world

  4. What is wicket

  5. What is wicket • Apache web framework. • Like Swing Style. • Component oriented. • Model-3,Pull against push. • Rule-based, no xml configuration.

  6. Why wicket • Just java + html • Object oriented component model easy to reused, maintain/extend, test • Very complete framework Ajax, security, redirect after post, input valid&feedback,popups,i18n…

  7. Why wicket • Compare several Framework Table Page example (JSF, FreeMarker, JSP) problems Merge logic into normal HTML, hard to read & maintain Hard to refactoring. Hard to work with designers.

  8. Why Wicket: vs. webwork • Compare with Webwork • Google trends

  9. Why Wicket: Login Demo • Page Redirect: RequestCycle.get().setResponsePage(…) • Login Form's action value action="?wicket:interface=:0:loginForm::IFormSubmitListener::“ parse will do

  10. Core Concepts • Application • Session • RequestCycle • Models • Components • Behaviors

  11. Core Concepts • Models

  12. Wicket Components

  13. Wicket Components

  14. Wicket Components • Some Special Demo wizard window panel tab panel tree,treetable

  15. Wicket Components • Creating your own components: using a Panel

  16. Ajax Behavior • AjaxLink

  17. Ajax Behavior • Ajax behaviors are those that can receive Ajax requests.

  18. Ajax Behavior • Creating your own Ajax components: using ajax behaior components.add( Ibehavior) add js, markup etc.

  19. Wicket Validate:Server • FeedbackPanel • Validation

  20. Wicket Validate:Server • Required • NumberValidator • Customized Validator: PatronCodeValidator

  21. Wicket Validate:Client • Wicket without client validation, but you can add JS behavior. • Integrate with JQuery Validation.

  22. Wicket test • Easy to Test: WicketTester • JDave: Wicket module

  23. Other • Wicket + Spring • Wicket Security

  24. Pull Vs Push • Pull vs. Push • http://java.sun.com/blueprints/patterns/MVC-detailed.html • http://www.theserverside.com/patterns/thread.tss?thread_id=22143 view model • relation

  25. Resources • Wicket: http://wicket.apache.org/ • Wicket Stuff: http://wicketstuff.org/confluence/display/STUFFWEB/Home • Eclipse plugin: http://code.google.com/p/loom-t5/

  26. Resources

  27. Q & A Q & A

More Related