Interface for class(es) responsible for taking the String/String[] properties contained in the
HttpServletRequest and:
Converting them to the rich type of the property on the target JavaBean
Setting the properties on the JavaBean using the appropriate mechanism
Causes the JavaScriptBuilder to navigate the properties of the supplied object and
convert them to JavaScript, writing them to the supplied writer as it goes.
Checks to see if a single field's set of values are 'present', where that is defined
as having one or more values, and where each value is a non-empty String after it has
had white space trimmed from each end.
Default locale picker that uses a comma separated list of locales in the servlet init
parameters to determine the set of locales that are supported by the application.
Default TypeConverterFactory implementation that simply creates an instance level map of all the
TypeConverters included in the Stripes distribution, and their applicable classes.
Writes things out in the following order:
The form open tag
Hidden fields for the form name and source page
The buffered body content
The form close tag
Final implementation of the doEndTag() method that allows the base InputTagSupport class
to insert functionality before and after the tag performs it's doEndTag equivelant
method.
Performs the primary work of the filter, including constructing a StripesRequestWrapper to
wrap the HttpServletRequest, and using the configured LocalePicker to decide which
Locale will be used to process the request.
Performs several basic validations on the String value supplied in the HttpServletRequest,
based on information provided in annotations on the ActionBean.
Determines if the tag should display errors based on the action that it is displaying for,
and then fetches the appropriate list of errors and makes sure it is non-empty.
Final implementation of the doStartTag() method that allows the base InputTagSupport class
to insert functionality before and after the tag performs it's doStartTag equivelant
method.
The errors tag has two modes, one where it displays all validation errors in a list
and a second mode when there is a single enclosed field-error tag that has no name attribute
in which case this tag iterates over the body, displaying each error in turn in place
of the field-error tag.
Streams data from the InputStream or Reader to the response's OutputStream or PrinterWriter,
using a moderately sized buffer to ensure that the operation is reasonable efficient.
Implementations should implement this method to simply return a reference to the
BootstrapPropertyResolver passed to the Configuration at initialization time.
Implementations must implement this method to return a reference to the context object
provided to the ActionBean during the call to setContext(ActionBeanContext).
Returns the name of the file that the user selected and uplaoded (this is not necessarily
the name that the underlying file is now stored on the server using).
Does a simple check to see if the clazz specified is equal to or a subclass of
java.util.Date or java.lang.Number, and if so, creates a formatter instance.
Returns an instance of FormatterFactory that is responsible for creating Formatter objects
for converting rich types into Strings for display on pages.
Returns an instance of LocalizationBundleFactory that is responsible for looking up
resource bundles for the varying localization needs ot a web application.
Returns the String value set by the tag attribute on the JSP, or the override value set in
the HttpRequest, or the override value bound to the ActionBean object in scope.
Creates and stores instances of the objects of the type that the Configuration is
responsible for providing, except where subclasses have already provided instances.
Tag handler for a tag that produces an HTML label tag which is capable of looking up
localized field names and formatting the label when validation errors exist.
Builds a set of JavaScript statements that will re-construct the value of a Java object,
including all Number, String, Enum, Boolea, Collection, Map and Array properties.
On the surface, allows a developer to define a layout using a custom tag - but is actually
the tag responsible for generating the output of the layout.
A wafer thin wrapper around Commons logging that uses var-args to make it
much more efficient to call the logging methods in commons logging without having to
surround every call site with calls to Log.isXXXEnabled().
Contains implementation classes for all the Stripes custom tags and interfaces
for overriding the strategy used to (re-)populate tag values and rendering tags
in case of validation errors.
This package contains interfaces and implementations of error message classes
and of classes that convert Strings to rich objects, providing validation during
the conversion.
Used to override the default ListPropertyAccessor in Ognl to return nulls instead of throw
IndexOutOfBoundExceptions, when an attmept is made to access a List property that is not
within the bounds of the list.
Abstract class that provides a consistent API for all Resolutions that send the user onward to
another view - either by forwarding, redirecting or some other mechanism.
Takes the form field name supplied and tries first to resolve a String in the locale
specific bundle for the field name, and if that fails, will try to make a semi-friendly
name by parsing the form field name.
Configuration class that uses the BootstrapPropertyResolver to look for configuration values,
and when it cannot find a value, falls back on the DefaultConfiguration to supply default
values.
An extension of AnnotatedClassActionResolver that
uses a Spring context to inject Spring beans into newly created ActionBeans before handing
them back for processing.
Constructor that builds a StreamingResolution that will stream binary data back to the
client and identify the data as being of the specified content type.
Constructor that builds a StreamingResolution that will stream character data back to the
client and identify the data as being of the specified content type.
This tag library validator verifies that stripes tags are used in the correct hiearchy,
for example by checking that the stripes:hidden tag is within a stripes:form tag.
Returns a String representation of the class, including the map of attributes that
are set on the tag, the toString of its parent tag, and the pageContext.