Wicket Tutorial

wicket tutorial

Apache Wicket is a simple and features rich component-based web framework, the real reusable components is the main selling point of this framework. However, due to the big different between component-based and MVC architecture, it makes Wicket hard to learn, especially for those classic MVC developers.

In this tutorials, it providing many step by step examples and explanations on using Apache Wicket 1.4.

Basic & Configuration

Wicket hello world, basic stuff and URL configuration.

Model

Wicket model examples, to bind from components to object property, and vise verse.

Form Components

Wicket form component examples.

Validators

Custom validator in Wicket.

Wicket Integration

Integrate Wicket with others.

FAQs

Some common FAQs in Wicket.

Common Errors

Some common error messages in Wicket.

Wicket References

What’s Next?

To study more topics on Wicket frameworks, I recommend below two great Wicket books.

Wicket in Action
Apache Wicket Cookbook

About the Author

author image
mkyong
Founder of Mkyong.com, love Java and open source stuff. Follow him on Twitter, or befriend him on Facebook or Google Plus. If you like my tutorials, consider make a donation to these charities.

Comments

Leave a Reply

avatar
newest oldest most voted
Bhagat
Guest
Bhagat
Hello Mkyong, Can you please help me, i need some documentation or examples related to Apache Wicket Forms where I can navigate between a flow of screens having Text fields, Drop downs, Back and Next button. I tried a simple example with two screens where i can navigate between the two screens. The issue that i am facing is, I am unable to see the form data that i entered in the first screen on click of “Back” button from my second page and also I am not able to see the data that i entered in second screen on… Read more »
nhlanhla mabasa
Guest
nhlanhla mabasa

Hi, i am new to the wicket and i want to add two tabbed panes in one class and call them in the template page. i want to show this panels in the same screen in wicket. can you help me in this problem thanks in advance

Puneet Mathur
Guest
Puneet Mathur
Love your work! Thanks for the Wicket tutorials. Have a quick question (very new to Wicket)…I have a web page class which extends a master template which, in turn extends WebPage I need to call a method in an external library & update value of a label. Is onConfigure() the best place call. Doesn’t seem to be working for me. public class Processed extends Master{ String loginID = “”; String tmp = “”; public Processed(PageParameters pageParams) { super (pageParams); loginID = pageParams.getString(“userid”); add(new Label (“result”, “User id = “” + loginID + “”, Key = ” + tmp )); }… Read more »
Keith McNeill
Guest
Keith McNeill
Just a comment on how easy, or otherwise, it is to learn Wicket. If you approach Wicket from the perspective of a Spring MVC, JSF, JSP perspective, it is indeed very different. However, the difference is that the concept is actually much simpler. Wicket attempts to enfore separation of concerns, therefore (almost) no logic whatsoever in the HTML template. This makes the HTML much more readable, especially from the point of view of a Web Designer. The logic is held within the associated Java class, which could be viewed as the ‘Controller’. The design of a Wicket application resembles very… Read more »
Farooq Rahu
Guest
Farooq Rahu

Hi MkYong, I need an example in wicket for showing please wait dialogue during processing a form submit and form should be locked during submit process.

Steph
Guest
Steph

last news from wicket https://twitter.com/apache_wicket

Chaminda
Guest
Chaminda

Hi, I am newbie to Wicket. Can you please do a tutorial on Tree structures.
Best if can be done on a Panel, So its easy to reuse.

Thanks,

http://printable-coloring-pages.net
Guest
http://printable-coloring-pages.net

In all honesty this is a wonderful detailed article nonetheless as with every great authors there are a few items that might be labored after. Yet by no means the actual much less it absolutely was intriguing.

Lakshmi
Guest
Lakshmi

Please teach me how to create Menu in wicket

Hajo
Guest
Hajo

Nice tutorial. Thanks for some easy to use ideas :-)

I’m stuck with the problem to display a grid of small pictures (used for a picture based captcha). The pictures are loaded randomly from the database. So I have each of them in a byte[] array and no clue how to display them in some kind of table or grid structure.

Any hint would be highly appreciated!

Best Regards

Hajo

trackback
Wicket in meinem MoinMoin Wiki | Hotchpotch Blog
rajeev
Guest
rajeev
i have downloaded wicket sm2w pluglin from source forge but I am not able to install and use it please guide me on this
Arun
Guest
Arun

Is it possible to do web service composition using wickets??

Arun
Guest
Arun

is it possibleto do web service composition using wickets

Amir
Guest
Amir

It sounds Netbeans has some problems with wicket. despite Netbeans Plug-in for wicket I couldn’t integrate wicket1.4 with spring . I try to solve this problem for more than one week .

Anjali
Guest
Anjali

In wicket-Srping MVC integration, can you tell me how to pass the control from wicket page to Spring Controller?

Sudeep Shakya
Guest
Sudeep Shakya

I have found that “org.apache.wicket.markup.html.resources” package is not available in the wicket-core library in wicket 1.5.3 plugin for netbeans 7.1.1.
Is there any way to add the package????????

Sudeep Shakya
Guest
Sudeep Shakya

I am using Netbeans 7.1.1 and i have installed Wicket 1.5.3 and I am a beginner. And find wicket easy to learn.
I am having a problem with a package. I used the package org.apache.wicket.markup.html.resources.StyleSheetReference but it is not recognized.