| 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 |
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.
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
DefaultActionBeanPropertyBinder.checkSingleRequiredField(String name,
String strippedName,
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,
List<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,
Map<ParameterName,List<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,
List<Object> values,
Exception e,
ValidationErrors errors)
Invoked whenever an exception is thrown when attempting to bind a property to an ActionBean.
|
protected void |
DefaultActionBeanPropertyBinder.validateRequiredFields(Map<ParameterName,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 |
Jsp21ExpressionExecutor.evaluate(ActionBean bean,
ParameterName name,
List<Object> values,
ValidationMetadata validationInfo,
ValidationErrors errors) |
static void |
ExpressionValidator.evaluate(ActionBean bean,
ParameterName name,
List<Object> values,
ValidationMetadata validationInfo,
ValidationErrors errors)
Run expression validation on the bean property provided with the values provided.
|
void |
ExpressionExecutorSupport.evaluate(ActionBean bean,
ParameterName name,
List<Object> values,
ValidationMetadata validationInfo,
ValidationErrors errors) |
void |
ExpressionExecutor.evaluate(ActionBean bean,
ParameterName name,
List<Object> values,
ValidationMetadata validationInfo,
ValidationErrors errors)
Performs validation of an ActionBean property using the expression contained
within the validation metadata.
|
© Copyright 2005-2006, Stripes Development Team.