API / Apache Wicket Interview questions
What is a Wicket Page?
A Page is the root component in a Wicket application — the Java class that corresponds to one full HTML document, and the entry point Wicket's request cycle renders in response to a URL.
Every Page subclass pairs with an HTML file of the same name and package location (e.g. HomePage.java alongside HomePage.html), and inside its constructor it builds the component tree by instantiating child components (labels, forms, links) and attaching each one via add() to the matching wicket:id in that HTML file.
Pages can be stateful, meaning Wicket keeps the constructed object (and its component tree) around in the session between requests so callbacks like button clicks can act on the exact same instance, or stateless, where the page is rebuilt fresh on every request and nothing about it depends on prior server-side state.
More Related questions...