Form-field rendering based on zkui
Groovy
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
grails-app
scripts
src
README.md
ZkFieldsGrailsPlugin.groovy
application.properties
dependencies.groovy
plugin.xml

README.md

zkfields

The ZkFields plugin allows you to very quickly render forms for properties of domain objects, command beans and POGOs based on their type, name, etc. The plugin aims to:

  • Use good defaults for fields.
  • Support embedded properties of GORM domain classes.

Usage

The zkf:field tag will automatically handle embedded domain properties recursively:

<zkf:field bean="person" property="address"/>

To make it more convenient when rendering lots of properties of the same bean you can use the zkf:with tag to avoid having to specify bean on any tags nested inside:

<zkf:with bean="person" viewmode="edit">
	<zkf:field property="name"/>
	<zkf:field property="address"/>
	<zkf:field property="dateOfBirth"/>
</zkf:with>

the zkf:with tag accepts an optional argument: viewmode. It accepts two values: edit and readonly. The default is edit. If readonly is set then all fields will be rendered as labels instead of inputs

Changelog

Version 0.1.0

2012-12-04: Initial releaseorm-field rendering based on zkui