Skip to content

Commit

Permalink
Merge pull request #3470 from Wadeck/ADD_CHECKX_DOC_JELLY
Browse files Browse the repository at this point in the history
Taglib docs: Add consistently the checkX attributes
  • Loading branch information
oleg-nenashev committed Jun 1, 2018
2 parents 63fa178 + 0015d89 commit e4a3138
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/src/main/resources/lib/form/number.jelly
Expand Up @@ -60,6 +60,10 @@ THE SOFTWARE.
If @field is specified, this will be inferred automatically,
which is the recommended approach.
</st:attribute>
<st:attribute name="checkMethod" use="optional" type="String">
Specify 'post' (must be lowercase) to change the HTTP method used for the AJAX requests to @checkUrl from a GET to a POST.
If any other value is specified then requests will use GET.
</st:attribute>
</st:documentation>
<f:prepareDatabinding />

Expand Down
8 changes: 8 additions & 0 deletions core/src/main/resources/lib/form/password.jelly
Expand Up @@ -44,13 +44,21 @@ THE SOFTWARE.
Additional CSS class(es) to add (such as client-side validation clazz="required",
"number" or "positive-number"; these may be combined, as clazz="required number").
</st:attribute>
<st:attribute name="checkMessage">
Override the default error message when client-side validation fails,
as with clazz="required", etc.
</st:attribute>
<st:attribute name="checkUrl">
If specified, the value entered in this input field will be checked (via AJAX)
against this URL, and errors will be rendered under the text field.

If @field is specified, this will be inferred automatically,
which is the recommended approach.
</st:attribute>
<st:attribute name="checkMethod" use="optional" type="String">
Specify 'post' (must be lowercase) to change the HTTP method used for the AJAX requests to @checkUrl from a GET to a POST.
If any other value is specified then requests will use GET.
</st:attribute>
</st:documentation>
<f:prepareDatabinding />
<m:input xmlns:m="jelly:hudson.util.jelly.MorphTagLibrary"
Expand Down
15 changes: 15 additions & 0 deletions core/src/main/resources/lib/form/select.jelly
Expand Up @@ -40,6 +40,21 @@ THE SOFTWARE.
<st:attribute name="default">
The default value of the text box, in case both @value is and 'instance[field]' is null.
</st:attribute>
<st:attribute name="checkMessage">
Override the default error message when client-side validation fails,
as with clazz="required", etc.
</st:attribute>
<st:attribute name="checkUrl">
If specified, the value entered in this input field will be checked (via AJAX)
against this URL, and errors will be rendered under the text field.

If @field is specified, this will be inferred automatically,
which is the recommended approach.
</st:attribute>
<st:attribute name="checkMethod" use="optional" type="String">
Specify 'post' (must be lowercase) to change the HTTP method used for the AJAX requests to @checkUrl from a GET to a POST.
If any other value is specified then requests will use GET.
</st:attribute>
</st:documentation>

<f:prepareDatabinding/>
Expand Down
4 changes: 4 additions & 0 deletions core/src/main/resources/lib/form/textarea.jelly
Expand Up @@ -44,6 +44,10 @@ THE SOFTWARE.
<st:attribute name="default">
The default value of the text box, in case both @value is and 'instance[field]' is null.
</st:attribute>
<st:attribute name="checkMessage">
Override the default error message when client-side validation fails,
as with clazz="required", etc.
</st:attribute>
<st:attribute name="checkUrl">
If specified, the value entered in this input field will be checked (via AJAX)
against this URL, and errors will be rendered under the text field.
Expand Down

0 comments on commit e4a3138

Please sign in to comment.