Taglib reference guide

Attributes

mode
edit|show
propertyName
Name of the property of the domain object to be used
object
The domain object to be used
class
The CSS class to supply to the enclosing row
 

Description

Displays a HTML input checkbox to be used in a form.

Example

<dialog:checkBox object="${todoItemInstance}" propertyName="completed" mode="edit" />

Attributes

mode
edit|show
propertyName
Name of the property of the domain object to be used
object
The domain object to be used
class
The CSS class to supply to the enclosing row

Description

Displays a JQuery date datepicker control to enter a date.

Example

<dialog:date object="${todoItemInstance}" propertyName="dueDate" mode="edit" />

Attributes

mode
edit|show
propertyName
Name of the property of the domain object to be used
object
The domain object to be used
class
The CSS class to supply to the enclosing row

Description

Displays a JQuery date datepicker control to enter a date plus a text input element for the time in hh:mm format.

Example

<dialog:dateTime object="${todoItemInstance}" propertyName="dueDate" mode="edit" />

Attributes

domainClass
The domain class to be used for the detail table
property
Name of the property of the detail domain class that refers to this domain class
object
The domain object to be used (master)
class
The CSS class to supply to the enclosing row
listConfig
The listConfig object to be used for the detail table
rowreordering
true|false Determines if drag and drop row reordering should be enabled (default:false)
Any extra attributes are copied to the <table> element

Description

Displays a detail table in master/detail view

Example

<dialog:detailTable property="workflow" object="${workflowInstance}" domainClass="${org.workflow4people.Task}" />

Attributes

mode
edit|show|autocomplete
propertyName
Name of the property of the domain object to be used
object
The domain object to be used
class
The CSS class to supply to the enclosing row
from
A list of values to be used in lieu of all objects in the domain class
sort
The property to sort the domain class items in the list by (default: name)

Description

Displays a HTML select element that allows a domain object to be selected in a form. If the mode 'autocomplete' is selected an action 'autocomplete' is expected to be preseent on the controller of the target domain class. The autocomplete action should generate the results to be shown.

Example

<dialog:domainObject object="${projectInstance}" propertyName="customer" mode="edit" sort="customerName"/>

Attributes

object
The domain object to be used
newButton
Determines if a [new] button should be present

Description

Displays a files table. The files associated with the domain object are shown and update/delete actions are shown.

Example

<dialog:filesTable object="${bookInstance}" />

Attributes

name
The name of this form (optional, default taken from object class propertyName)
width
The CSS width of this dialog (default: 600px)
height
The CSS height of this dialog (default: auto)
title
The title of this dialog, default is from messages with key: form.${name}.title
noBelongsTo
true|false controls generation of hidden field with parent ID. Default:false
 

Description

Displays a dialog form.

Example

<dialog:form object="${todoItemInstance}" >

Attributes

name
The name of this form (optional, default:"form")
action
The action, default is name prefixed by 'submit'
class
The css class name(s) to be added to the enclosing div
formClass
The css class name(s) to be added to the form element
error
Error text to be shown
object
domain object

Description

Displays a page dialog form.

Example

<dialog:pageform object="${todoItemInstance}" >

Attributes

mode
edit|show
propertyName
Name of the property of the domain object to be used
object
The domain object to be used
class
The CSS class to supply to the enclosing row
from
A list of values to be used
optionKey
optionKey attribute to be supplied to the <select> element
optionValue
optionValue attribute to be supplied to the <select> element
multiple
multiple attribute to be supplied to the <select> element
style
style attribute to be supplied to the <select> element

Description

Displays a HTML select element.

Example

<g:select name="reportFormat" from="${['CSV','HTML','PDF']}" />

Attributes

names
The name of this tab
object
The domain object

Description

This tag generates a tab within a form. Should be used within <dialog:tabs>.

Example

<dialog:tab name="Details" object="${userInstance}">

Attributes

none

Description

Displays a table to contain form rows in a dialog.

Example

<dialog:table> ... </dialog:table>

Attributes

names
A comma sepatated list of tab names
object
The domain object

Description

This tag divides a form into multiple tags.

Example

<dialog:tabs names="Details,Groups,Expiry,Task" object="${userInstance}">

Attributes

mode
edit|show
propertyName
Name of the property of the domain object to be used
object
The domain object to be used
class
The CSS class to supply to the enclosing row. Use 'codemirror' to get a CodeMirror editor, 'ckeditor' to get a CKEditor editor.
toolbar
The CKEditor toolbar to be used.
toolbar
codeMirrorMode
text/html|text/x-groovy - The CodeMirror mode to be used.

Description

Displays a HTML textarea element to be used in a form. This can be a plain textarea element, or a CKEditor or CodeMirror editor.
When using CodeMirror the mode determines

Example

<dialog:textArea object="${todoItemInstance}" propertyName="description" mode="edit" />

Attributes

mode
edit|show
propertyName
Name of the property of the domain object to be used
object
The domain object to be used
type
The type of input to be used (default is text)
class
The CSS class to supply to the enclosing row
value
Value to show in the input (default: the value of the property of the domain object)

Description

Displays a HTML input element to be used in a form.

Example

<dialog:textField object="${todoItemInstance}" propertyName="description" mode="edit" />

Attributes

sFileName
The filename to be used on the server
identifier
The identifier to be used in the upload
action
The action to be performed when the upload is received
Any extra attributes apart from 'object','propertyName','mode','class','type','value' are copied to the <div> element.

Description

Displays an upload control in the dialog

Example

<dialog:upload sFileName="${bookInstance.isbn?bookInstance.isbn:'newbook'}.jpg" identifier="${bookInstance.id}" action="${createLink(controller:'book',action:'uploadcover')}"/>

Attributes

mode
edit|show
propertyName
Name of the property of the domain object to be used
object
The domain object to be used
class
The CSS class to supply to the enclosing row. Use 'codemirror' to get a CodeMirror editor, 'ckeditor' to get a CKEditor editor.
toolbar
The CKEditor toolbar to be used.
toolbar
codeMirrorMode
text/html|text/x-groovy - The CodeMirror mode to be used.

Description

This is like a textArea, but is meant for XML content. It is prettified before editing.

Example

<dialog:xml object="${todoItemInstance}" propertyName="description" mode="edit" />