Interface for resource related settings
resourcePollFrequency (defaults to no polling frequency) - Frequency
at which resources should be polled for changes.
resourceFinder (classpath) - Set this to alter the search path for
resources.
useDefaultOnMissingResource (defaults to true) - Set to true to
return a default value if available when a required string resource is not
found. If set to false then the throwExceptionOnMissingResource flag is used
to determine how to behave. If no default is available then this is the same
as if this flag were false
A ResourceStreamLocator - An Application's ResourceStreamLocator is
used to find resources such as images or markup files. You can supply your
own ResourceStreamLocator if your prefer to store your application's
resources in a non-standard location (such as a different filesystem
location, a particular JAR file or even a database) by overriding the
getResourceLocator() method.
Resource Factories - Resource factories can be used to create
resources dynamically from specially formatted HTML tag attribute values. For
more details, see
IResourceFactory ,
org.apache.wicket.markup.html.image.resource.DefaultButtonImageResourceFactory and especially
org.apache.wicket.markup.html.image.resource.LocalizedImageResource .
A Localizer The getLocalizer() method returns an object encapsulating
all of the functionality required to access localized resources. For many
localization problems, even this will not be required, as there are
convenience methods available to all components:
org.apache.wicket.Component.getString(String key) and
org.apache.wicket.Component.getString(String keyIModel model) .
stringResourceLoaders - A chain of IStringResourceLoader
instances that are searched in order to obtain string resources used during
localization. By default the chain is set up to first search for resources
against a particular component (e.g. page etc.) and then against the
application.
author: Igor Vaynberg (ivaynberg) |