wicket |
wicket package
The core Wicket package. The key core classes you will need to learn to
do basic Wicket programming are:
- {@link wicket.Application} / {@link wicket.protocol.http.WebApplication} - Subclass WebApplication to create your application.
Set your home page with Application.getPages().setHomePage(MyHomePage.class).
Configure Wicket for deployment with Application.getSettings().configure("deployment").
Substitute "development" to get default settings for a development environment.
- {@link wicket.Component} - You will need to carefully study this class as Component is very
central to Wicket. There are a large number of convenience methods in Component
and, naturally, every component in Wicket is a subclass of Component, so all these
methods are available to all Components.
- {@link wicket.IRequestCycleFactory} - If you are working with a persistence framework
such as Hibernate or JDO, you may need to implement a request cycle factory in order
to open a persistence session at the beginning of a request and close the session
at the end of the request.
- {@link wicket.ISessionFactory} - For all but the most trivial applications, you will
need to create your own session factory. Your implementation of this interface
will generally be quite simple, generally just returning a new instance of your
own application-specific subclass of WebSession.
- {@link wicket.MarkupContainer} - You will need to study MarkupContainer carefully as
this class contains all the logic for creating and maintaining component hierarchies.
- {@link wicket.Page} / {@link wicket.markup.html.WebPage} - Every page in your wicket application will extend WebPage
(or some other subclass of Page if you are writing something other than a web application).
There are a number of important methods in Page and you should be familiar with all of them.
- {@link wicket.PageParameters} - A simple wrapper for query string parameters.
- {@link wicket.Session} / {@link wicket.protocol.http.WebSession} - It is particularly important to understand Session
if you are doing clustering, but even for a very basic application you will want
to create your own subclass of WebSession using a session factory so that you can
store any session properties in a typesafe way. Note that since Pages are first
class objects with models of their own, it is likely or at least possible that you
will not have many session properties.
|
Java Source File Name | Type | Comment |
AbortException.java | Class | Immediately aborts any further processing. |
AbortWithHttpStatusException.java | Class | Causes Wicket to abort processing and set the specified HTTP status code. |
AbstractRestartResponseException.java | Class | An exception that causes the request cycle to immediately switch to respond
stage. |
Application.java | Class | Base class for all Wicket applications. |
ApplicationSettingsTest.java | Class | Test cases for the ApplicationSettings class. |
AttributeModifier.java | Class | This class allows a tag attribute of a component to be modified dynamically
with a value obtained from a model object. |
AttributeModifierComponentPage.java | Class | Test page used for checking the attribute modification functionality of
Component. |
AttributeModifierComponentTest.java | Class | This set of tests builds a sample application for testing the dynamic modicication of
attributes in both component tags and also in raw markup. |
AttributeModifierTest.java | Class | Test case for the component tag attribute modifer test. |
AuthorizationTest.java | Class | Authorization tests. |
Component.java | Class | Component serves as the highest level abstract base class for all components.
- Identity - All Components must have a non-null id which is
retrieved by calling getId().
|
ComponentTest.java | Class | Test for ajax handler. |
DisabledComponentPage1.java | Class | Mock page for testing. |
DisabledComponentPage2.java | Class | |
DisabledComponentTest.java | Class | |
FormDispatchEventTest.java | Class | |
HomePageRedirectTest.java | Class | |
IDestroyer.java | Interface | Optional interface for
IInitializer initializers that can clean up
stuff initializers created. |
IInitializer.java | Interface | Initializes something when application loads.
Initializer is there for clustering. |
Initializer.java | Class | Initializer for components in wicket core library. |
IPageFactory.java | Interface | A factory class that creates Pages. |
IRedirectListener.java | Interface | Request listener called on page redirects. |
IRequestCycleFactory.java | Interface | Factory for creating request cycles for a session. |
IRequestListener.java | Interface | Base interface for all interfaces that listen for requests from the client
browser. |
IRequestTarget.java | Interface |
A request target is the base entity that is the subject of a request.
Different types of request have different request targets. |
IResourceFactory.java | Interface | A factory which creates resources for a given specification string. |
IResourceListener.java | Interface | Listens for requests regarding resources. |
IResponseFilter.java | Interface | A response filter can be added to the
wicket.settings.IRequestCycleSettings.addResponseFilter(IResponseFilter) object
The will be called from the Buffered Response objects right before they would send it to the
real responses. |
ISessionFactory.java | Interface | A factory interface used by Applications to create Sessions. |
Localizer.java | Class | A utility class that encapsulates all of the localization related
functionality in a way that it can be accessed by all areas of the framework
in a consistent way. |
LocalizerTest.java | Class | Test cases for the Localizer class. |
MarkupContainer.java | Class | A MarkupContainer holds a map of child components.
- Children - Children can be added by calling the add() method, and
they can be looked up using a dotted path.
|
MarkupContainerTest.java | Class | |
MarkupFragmentFinder.java | Class | Responding to an AJAX request requires that we position the markup stream at
the component associated with the AJAX request. |
MetaDataEntry.java | Class | Class used for holding meta data entries. |
MetaDataKey.java | Class | A key to a piece of metadata associated with a Component at runtime. |
MockPageWithLink.java | Class | Use this mock when testing you wan't to test a link on a page. |
MockPageWithLinkAndComponent.java | Class | Use this mock when testing you wan't to test a link and a component on a page. |
MockPageWithOneComponent.java | Class | |
MyMockPage.java | Class | |
MyPage0.java | Class | |
MyPage1.java | Class | |
MyPage2.java | Class | |
MyPage3.java | Class | |
MyPage4.java | Class | |
MyPage5.java | Class | |
Page.java | Class | Abstract base class for pages. |
PageFactoryTest.java | Class | |
PageMap.java | Class | A container for pages held in the session. |
PageParameters.java | Class | A typesafe abstraction and container for parameters to a requested page. |
PageParametersTest.java | Class | Unit test for the PageParameters, introduced for bug
[ 1213889 ] PageParameter keyValuePair disallows negatives. |
Request.java | Class | Base class for page request implementations allowing access to request
parameters. |
RequestCycle.java | Class | THIS CLASS IS DELIBERATELY NOT INSTANTIABLE BY FRAMEWORK CLIENTS AND IS NOT
INTENDED TO BE SUBCLASSED BY FRAMEWORK CLIENTS.
Represents the request cycle, including the applicable application, page,
request, response and session.
Convenient container for an application, session, request and response object
for a page request cycle. |
RequestListenerInterface.java | Class | Base class for request listener interfaces. |
Resource.java | Class | A Resource is something that implements IResourceListener and provides a
getResource() method which returns the raw IResource to be rendered back to
the client browser.
Resources themselves do not currently have URLs. |
ResourceReference.java | Class | ResourceReference is essentially a reference to an actual resource which is
shared through the Application. |
Response.java | Class | Abstract base class for different implementations of response writing. |
RestartResponseAtInterceptPageException.java | Class | Causes Wicket to interrupt current request processing and immediately
redirect to an intercept page. |
RestartResponseException.java | Class | Causes wicket to interrupt current request processing and immediately respond
with the specified page. |
Session.java | Class | Holds information about a user session, including some fixed number of most
recent pages (and all their nested component information).
|
SharedResources.java | Class | Class which holds shared resources. |
SharedResourceUrlTest.java | Class | |
TesterTest.java | Class | |
TestPage_1.java | Class | Mock page for testing. |
WicketRuntimeException.java | Class | Generic runtime exception subclass thrown by Wicket. |
WicketTestCase.java | Class | Base class for tests which require comparing wicket response with a file. |