*[${field}$]* is a special variable setup by
FieldTag.java
which assigns things like so
- *[${field.name}$]* is assigned the 'entity.name'
- *[${field.id}$]* is assigned a valid html form of 'entity.name' which in this case is the same
- *[${field.i18nKey}$]* is assigned the string 'entity.name' (may seem repetitive but for arrays, this differs from field.name)
- *[${field.flash}$]* is assigned the value that flash scope has for variable 'entity.name'
- *[${field.error}$]* is assigned the error value from validations flash for variable 'entity.name'
- *[${field.errorClass}$]* is assigned the css class if there was an error in *[${field.error}$]*
- *[${field.flashOrValue}$]* is assigned the flash first if exists and next the original value(ie. if you were editing)
- *[${field.valueOrFlash}$]* is assigned the value first if exists and next the value from flash scope
To make things easier for the developer, this field variable gets passed to the body of the field tag as
well so you can also use the field variable not only in field.tag but in the body that is passed in to keep things
very generic and cut/paste like for future fields. cool, right? well, I thought so