It consists of a page with two elements: a dropdown menu and a label.
When the dropdown selection changes, the label (and only the label) will be updated.
Wicket provides a layer of abstraction that aims to do away entirely with the plumbing code.
We've included two simple examples, which can be found on Git Hub, to give you a taste of what development with this framework looks like.
Additional configuration is only needed if you want to change the default behaviour.
In the source code's package directory, first add the shall appear.
The catalog of the components with live examples is available here.
In this introductory article, we've covered the basics of Wicket the component-based web framework in Java.
Property Model; public class Home Page extends Web Page Code Briefly Explained: The most important part of this example is the Ajax Form Component Updating Behaviour which is used to listen for event changes(selection change) and then populating the other drop down box.
In order to change what the label displays we simply modified a POJO.
This blog entry is going to be about showing how to implement a dropdown choice in Apache Wicket, which is currently my favourite java web framework. Admittedly, this is a fairly simple example especially to the experienced wicket users.
Specifically, I would be showing off an example of a web page with two drop down choices, where the selection in the first drop down choice determines the available options in the other drop down choice. But then it is still my first open contribution to the building documentations available in the wicket community.