...
Storing Data Between Requests
Wiki Markup |
---|
{float:right|background=#eee|width=40%}
{since:5.4}
Note: Starting in Tapestry 5.4, the default behavior for server-side validation failures is to re-render the page within the same request (rather than emitting a redirect). This removes the need to use a persistent field to store the tracker.
{since}
{float} |
As with other action requests, the result of a form submission is to send a redirect to the client which re-renders the page. The ValidationTracker must be stored persistently between requests, or all the validation information will be lost (the default ValidationTracker provided by the Form is persistent).
...
Validator | Constraint Type | Description | Example | ||
Ensures that the given input is a valid e-mail address | | ||||
max | long | Enforces a maximum integer value | | ||
maxLength | int | Makes sure that a string value has a maximum length | | ||
min | long | Enforces a minimum integer value | | ||
minLength | int | Makes sure that a string value has a minimum length | | ||
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="54804c2ff40712f2-72dacd15-48624685-9655af8c-453752abdf85ae2db316034d"><ac:plain-text-body><![CDATA[ | regexp | pattern | Makes sure that a string value conforms to a given pattern | | ]]></ac:plain-text-body></ac:structured-macro> |
required | Makes sure that a string value is not null and not the empty string | |
...