Package | Description |
---|---|
net.sourceforge.stripes.tag |
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.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
LinkTagSupport.buildUrl()
Builds the URL based on the information currently stored in the tag.
|
protected <R> R |
HtmlTagSupport.evaluateExpression(java.lang.String expression,
java.lang.Class<R> resultType)
Evaluates a single expression and returns the result.
|
ActionBean |
InputTagSupport.getActionBean()
Fetches the ActionBean associated with the form if one is present.
|
protected java.lang.String |
InputTextTag.getEffectiveMaxlength()
Gets the maxlength value that is in effect for this tag, as determined by checking
InputTextTag.getMaxlength() and then the maxlength element of the Validate
annotation on the associated ActionBean property. |
java.util.List<ValidationError> |
InputTagSupport.getFieldErrors()
Access for the field errors that occurred on the form input this tag represents
|
java.lang.String |
InputTagSupport.getLocalizedFieldName()
Fetches the localized name for this field if one exists in the resource bundle.
|
protected java.lang.String |
InputTagSupport.getLocalizedFieldName(java.lang.String name)
Attempts to fetch a "field name" resource from the localization bundle.
|
protected java.lang.Object |
InputTagSupport.getOverrideValueOrValues()
Gets the value for this tag based on the current population strategy.
|
FormTag |
InputTagSupport.getParentFormTag()
Locates the enclosing stripes form tag.
|
protected java.lang.String |
LinkTagSupport.getPreferredBaseUrl()
Returns the base URL that should be used for building the link.
|
protected java.lang.Object |
InputTagSupport.getSingleOverrideValue()
Returns a single value for the the value of this field.
|
protected ValidationMetadata |
InputTagSupport.getValidationMetadata() |
java.lang.Object |
PopulationStrategy.getValue(InputTagSupport tag) |
java.lang.Object |
BeanFirstPopulationStrategy.getValue(InputTagSupport tag)
Implementation of the interface method that will follow the search described in the class
level JavaDoc and attempt to find a value for this tag.
|
java.lang.Object |
DefaultPopulationStrategy.getValue(InputTagSupport tag)
Implementation of the interface method that will follow the search described in the class
level JavaDoc and attempt to find a value for this tag.
|
protected java.lang.Object |
DefaultPopulationStrategy.getValueFromActionBean(InputTagSupport tag)
Helper method that will check to see if there is an ActionBean present in the request,
and if so, retrieve the value for this tag from the ActionBean.
|
protected java.lang.String[] |
DefaultPopulationStrategy.getValuesFromRequest(InputTagSupport tag)
Helper method that will check the current request for user submitted values for the
tag supplied and return them as a String[] if there is one or more present.
|
boolean |
InputTagSupport.hasErrors()
Returns true if one or more validation errors exist for the field represented by
this input tag.
|
protected boolean |
DefaultPopulationStrategy.isFormInError(InputTagSupport tag)
Helper method that will check to see if the form containing this tag is being rendered
as a result of validation errors.
|
boolean |
InputSelectTag.isOptionSelected(java.lang.Object optionValue,
boolean selectedOnPage)
Checks to see if the option value should be rendered as selected or not.
|
protected void |
InputTagSupport.loadErrors()
Find errors that are related to the form field this input tag represents and place
them in an instance variable to use during error rendering.
|
protected void |
InputTagSupport.registerWithParentForm()
Registers the field with the parent form within which it must be enclosed.
|
protected void |
InputLabelTag.registerWithParentForm()
Overridden to do nothing, since a label isn't really a form field.
|
protected void |
InputOptionTag.registerWithParentForm()
Overridden to make sure that options do not try and register themselves with
the form tag.
|
void |
FormTag.setBeanclass(java.lang.Object beanclass)
Sets the 'action' attribute by inspecting the bean class provided and asking the current
ActionResolver what the appropriate URL is.
|
void |
ErrorsTag.setBeanclass(java.lang.Object beanclass)
Sets the action attribute by figuring out what ActionBean class is identified
and then in turn finding out the appropriate URL for the ActionBean.
|
void |
FieldMetadataTag.setBeanclass(java.lang.Object beanclass)
Sets the 'action' attribute by inspecting the bean class provided and asking the current
ActionResolver what the appropriate URL is.
|
void |
UseActionBeanTag.setBeanclass(java.lang.Object beanclass)
Sets the binding attribute by figuring out what ActionBean class is identified
and then in turn finding out the appropriate URL for the ActionBean.
|
? Copyright 2005-2006, Stripes Development Team.