Skip to content

mitija/zkfields

Repository files navigation

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

About

Form-field rendering based on zkui

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages