|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectorg.codehaus.groovy.grails.plugins.web.taglib.ApplicationTagLib
@Artefact("TagLibrary") class ApplicationTagLib extends java.lang.Object
The base application tag library for Grails many of which take inspiration from Rails helpers (thanks guys! :) This tag library tends to get extended by others as tags within here can be re-used in said libraries
Property Summary | |
---|---|
static java.lang.Object |
LINK_WRITERS
|
static java.lang.Object |
SCOPES
|
static java.lang.Object |
SUPPORTED_TYPES
|
org.springframework.context.ApplicationContext |
applicationContext
|
groovy.lang.Closure |
cookie
Obtains the value of a cookie. |
groovy.lang.Closure |
createLink
Creates a grails application link from a set of attributes. |
groovy.lang.Closure |
createLinkTo
Creates a link to a resource, generally used as a method rather than a tag. |
groovy.lang.Closure |
external
Render the appropriate kind of external link for use in based on the type of the URI. |
GrailsApplication |
grailsApplication
|
UrlMappingsHolder |
grailsUrlMappingsHolder
|
groovy.lang.Closure |
header
Renders the specified request header value. |
groovy.lang.Closure |
img
Render an img tag with src set to a static resource
|
groovy.lang.Closure |
join
Uses the Groovy JDK join method to concatenate the toString() representation of each item in this collection with the given separator. |
groovy.lang.Closure |
link
General linking to controllers, actions etc. |
LinkGenerator |
linkGenerator
|
groovy.lang.Closure |
meta
Output application metadata that is loaded from application.properties. |
GrailsPluginManager |
pluginManager
|
groovy.lang.Closure |
resource
Creates a link to a resource, generally used as a method rather than a tag. |
groovy.lang.Closure |
set
Sets a variable in the pageContext or the specified scope. |
boolean |
useJsessionId
|
groovy.lang.Closure |
withTag
Helper method for creating tags called like: withTag(name:'script',attrs:[type:'text/javascript']) { ... }
|
Method Summary | |
---|---|
void
|
afterPropertiesSet()
|
static java.lang.String
|
attrsToString(java.util.Map attrs)
|
static java.lang.Object
|
getAttributesToRender(java.lang.Object constants, java.lang.Object attrs)
|
protected java.lang.Object
|
renderResourceLink(java.lang.Object attrs)
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), 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() |
Property Detail |
---|
static java.lang.Object LINK_WRITERS
static final java.lang.Object SCOPES
static java.lang.Object SUPPORTED_TYPES
org.springframework.context.ApplicationContext applicationContext
groovy.lang.Closure cookie
groovy.lang.Closure createLink
groovy.lang.Closure createLinkTo
groovy.lang.Closure external