wicket introduction
DESCRIPTION
Wicket introduction. 2008-10-29 Davey.wu. Agenda. What is wicket Why wicket Wicket Components Ajax Behavior Wicket Validate Wicket Tester Other. What is wicket: Hello World. Create web with just java + html. Just java + html = wicket. Example: Hello, world. What is wicket. - PowerPoint PPT PresentationTRANSCRIPT
红杉树(中国)信息技术有限公司公司 地址:杭州市天目山路 176 号西湖数源软件园 11 号楼 3 层 电话: (86)-0571-89939888
Wicket introduction
2008-10-29
Davey.wu
Agenda
• What is wicket
• Why wicket
• Wicket Components
• Ajax Behavior
• Wicket Validate
• Wicket Tester
• Other
What is wicket: Hello World
• Create web with just java + html.
• Just java + html = wicket.
• Example: Hello, world
What is wicket
• Apache web framework.
• Like Swing Style.
• Component oriented.
• Model-3,Pull against push.
• Rule-based, no xml configuration.
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…
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.
Why Wicket: Login Demo
• Page Redirect: RequestCycle.get().setResponsePage(…)
• Login Form's action value action="?wicket:interface=:0:loginForm::IFormSubmitListener::“
parse
will do
Ajax Behavior
• Creating your own Ajax components: using ajax behaior
components.add( Ibehavior)
add js, markup etc.
Wicket Validate:Client
• Wicket without client validation, but you can add JS behavior.
• Integrate with JQuery Validation.
• relation
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
Resources
• Wicket: http://wicket.apache.org/
• Wicket Stuff: http://wicketstuff.org/confluence/display/STUFFWEB/Home
• Eclipse plugin: http://code.google.com/p/loom-t5/