Package | Description |
---|---|
net.sourceforge.stripes.action |
This package defines the ActionBean interface and related classes and interfaces for
writing ActionBeans.
|
net.sourceforge.stripes.controller |
This package contains classes which form the core internals of Stripes.
|
net.sourceforge.stripes.mock |
Mock objects that implement many of the Servlet and Http Servlet interfaces.
|
net.sourceforge.stripes.validation |
This package contains interfaces and implementations of error message classes
and of classes that convert Strings to rich objects, providing validation during
the conversion.
|
net.sourceforge.stripes.validation.expression |
This package provides several classes that give Stripes the ability to execute
EL expressions for validation using various implementations.
|
Modifier and Type | Method and Description |
---|---|
ValidationErrors |
ActionBeanContext.getValidationErrors()
Returns the set of validation errors associated with the current form.
|
Modifier and Type | Method and Description |
---|---|
void |
ActionBeanContext.setValidationErrors(ValidationErrors validationErrors)
Replaces the current set of validation errors.
|
Modifier and Type | Method and Description |
---|---|
ValidationErrors |
ActionBeanPropertyBinder.bind(ActionBean bean,
ActionBeanContext context,
boolean validate)
Populates all the properties in the request which have a matching property in the target
bean.
|
ValidationErrors |
DefaultActionBeanPropertyBinder.bind(ActionBean bean,
ActionBeanContext context,
boolean validate)
Loops through the parameters contained in the request and attempts to bind each one to the
supplied ActionBean.
|
Modifier and Type | Method and Description |
---|---|
protected void |
DefaultActionBeanPropertyBinder.checkSingleRequiredField(java.lang.String name,
java.lang.String strippedName,
java.lang.String[] values,
StripesRequestWrapper req,
ValidationErrors errors)
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.
|
protected void |
DefaultActionBeanPropertyBinder.doExpressionValidation(ActionBean bean,
ParameterName name,
java.util.List<java.lang.Object> values,
ValidationMetadata validationInfo,
ValidationErrors errors)
Performs validation of attribute values using a JSP EL expression if one is defined in the
@Validate annotation.
|
protected void |
DefaultActionBeanPropertyBinder.doPostConversionValidations(ActionBean bean,
java.util.Map<ParameterName,java.util.List<java.lang.Object>> convertedValues,
ValidationErrors errors)
Performs basic post-conversion validations on the properties of the ActionBean after they
have been converted to their rich type by the type conversion system.
|
protected void |
DefaultActionBeanPropertyBinder.handlePropertyBindingError(ActionBean bean,
ParameterName name,
java.util.List<java.lang.Object> values,
java.lang.Exception e,
ValidationErrors errors)
Invoked whenever an exception is thrown when attempting to bind a property to an ActionBean.
|
protected void |
DefaultActionBeanPropertyBinder.validateRequiredFields(java.util.Map<ParameterName,java.lang.String[]> parameters,
ActionBean bean,
ValidationErrors errors)
Validates that all required fields have been submitted.
|
Modifier and Type | Method and Description |
---|---|
ValidationErrors |
MockRoundtrip.getValidationErrors()
Gets the (potentially empty) set of Validation Errors that were produced by the request.
|
Modifier and Type | Method and Description |
---|---|
Resolution |
ValidationErrorHandler.handleValidationErrors(ValidationErrors errors)
Allows the ActionBean to influence what happens when validation errors occur during
validation and binding.
|
Modifier and Type | Method and Description |
---|---|
void |
ExpressionExecutorSupport.evaluate(ActionBean bean,
ParameterName name,
java.util.List<java.lang.Object> values,
ValidationMetadata validationInfo,
ValidationErrors errors) |
void |
ExpressionExecutor.evaluate(ActionBean bean,
ParameterName name,
java.util.List<java.lang.Object> values,
ValidationMetadata validationInfo,
ValidationErrors errors)
Performs validation of an ActionBean property using the expression contained
within the validation metadata.
|
static void |
ExpressionValidator.evaluate(ActionBean bean,
ParameterName name,
java.util.List<java.lang.Object> values,
ValidationMetadata validationInfo,
ValidationErrors errors)
Run expression validation on the bean property provided with the values provided.
|
void |
Jsp21ExpressionExecutor.evaluate(ActionBean bean,
ParameterName name,
java.util.List<java.lang.Object> values,
ValidationMetadata validationInfo,
ValidationErrors errors) |
? Copyright 2005-2006, Stripes Development Team.