|
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.FormatTagLib
@Artefact("TagLibrary") class FormatTagLib 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 | |
---|---|
CodecLookup |
codecLookup
|
groovy.lang.Closure |
encodeAs
Encodes the body using the specified codec. |
groovy.lang.Closure |
formatBoolean
Outputs the given boolean as the specified text label. |
groovy.lang.Closure |
formatDate
Outputs the given |
groovy.lang.Closure |
formatNumber
Outputs the given number in the specified format. |
org.springframework.context.MessageSource |
messageSource
|
static java.lang.Object |
returnObjectForTags
|
Method Summary | |
---|---|
java.lang.String
|
messageHelper(java.lang.String code, java.lang.Object defaultMessage = null, java.util.List args = null, java.util.Locale locale = null)
|
java.lang.Object
|
parseStyle(java.lang.Object styleStr)
|
static java.util.Locale
|
resolveLocale(java.lang.Object localeAttr)
|
Methods inherited from 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() |
Property Detail |
---|
CodecLookup codecLookup
groovy.lang.Closure encodeAs
groovy.lang.Closure formatBoolean
true
and false
option are not given,
then the boolean is output using the default label.
groovy.lang.Closure formatDate
Date
object in the specified format. If
the date
is not given, then the current date/time is used.
If the format
option is not given, then the date is output
using the default format.
groovy.lang.Closure formatNumber
format
option is not given, then the number is output
using the default format.
org.springframework.context.MessageSource messageSource
static java.lang.Object returnObjectForTags
Method Detail |
---|
@groovy.transform.CompileStatic java.lang.String messageHelper(java.lang.String code, java.lang.Object defaultMessage = null, java.util.List args = null, java.util.Locale locale = null)
java.lang.Object parseStyle(java.lang.Object styleStr)
@groovy.transform.CompileStatic static java.util.Locale resolveLocale(java.lang.Object localeAttr)
Groovy Documentation