You can provide alternative languages on the application, page, or even component level.In Wicket the concept of “model” is probably the most important topic of the entire framework and it is strictly related to the usage of its components.SEARCH_ENGINES = List(new String ); //variable to hold the selected value from dropdown box, //and also make "Google" is selected by default private String selected = "Google"; Drop Down Choice import I've been stuck with this problem for a while now, and frankly it isstarting to piss me off : PSo lets get down to business!That's why we haven't talked about models so far, and why this chapter discusses these two topics together.
Pages and Components in Wicket are real Java objects that support encapsulation, inheritance and events.
In addition, the level of indirection introduced by models allows access data object only when it is really needed (for example during the rendering phase) and not earlier when it may not be ready to be used.
Any component can get/set its model as well as its data object using the 4 public shortcut methods listed in the class diagram above.
The two methods on Model Changed() and on Model Changing() are triggered by Wicket each time a model is modified: the first one is called after the model has been changed, the second one just before the change occurs.
In this example we will work the component to give a little more insight into its workings.