@groovy.transform.CompileStatic @TagLib class UrlMappingTagLib extends java.lang.Object
Tag library with tags that integration with the URL mappings API (paginate, include etc.)
Type | Name and description |
---|---|
CodecLookup |
codecLookup |
groovy.lang.Closure |
include Includes another controller/action within the current response. |
groovy.lang.Closure |
paginate Creates next/previous links to support pagination for the current controller. |
groovy.lang.Closure |
sortableColumn Renders a sortable column to support sorting in list views. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Includes another controller/action within the current response.
<g:include controller="foo" action="test"></g:include>
Creates next/previous links to support pagination for the current controller.
<g:paginate total="${Account.count()}" />
Renders a sortable column to support sorting in list views.
Attribute title or titleKey is required. When both attributes are specified then titleKey takes precedence,
resulting in the title caption to be resolved against the message source. In case when the message could
not be resolved, the title will be used as title caption.
Examples:
<g:sortableColumn property="title" title="Title" />
<g:sortableColumn property="title" title="Title" style="width: 200px" />
<g:sortableColumn property="title" titleKey="book.title" />
<g:sortableColumn property="releaseDate" defaultOrder="desc" title="Release Date" />
<g:sortableColumn property="releaseDate" defaultOrder="desc" title="Release Date" titleKey="book.releaseDate" />