"Fossies" - the Fresh Open Source Software Archive

Member "grails-core-5.2.4/grails-docs/src/test/resources/docs/ref/Constraints/attributes.html" (14 Sep 2022, 59867 Bytes) of package /linux/www/grails-core-5.2.4.tar.gz:


Caution: In this restricted "Fossies" environment the current HTML page may not be correctly presentated and may have some non-functional links. You can here alternatively try to browse the pure source code or just view or download the uninterpreted raw source code. If the rendering is insufficient you may try to find and view the page on the grails-core-5.2.4.tar.gz project site itself.

(Quick Reference)

attributes

Purpose

Adds custom attributes to scaffolding tags.

Examples

birthDate attributes: [years: 2000..2011]

Description

Adds extra attributes to the GSP tag used to display the edit field for the specified domain class property. For example, the rendered tag in scaffolding for the birthDate property above would look like:

<g:datePicker name="birthDate" ... years="2000..2011" ... />

Hence, the scaffolded view would limit a user to the years 2000-2011, as dictated by the g:datePicker tag.

This constraint only works for boolean (checkbox), date (datePicker), and collection (*select) properties.

Error Code: This constraint only impacts the scaffolding and does not create errors.