I looked at the formatDate code to find out that it is possible to put the format string in my "messages.properties" file. When the given key (by formatName) does not exist, a TagError should be thrown. However, this does not happen.
The existence of the formatName key is checked with:
format = message(code:formatName)
if(!format) throwTagError("Attribute [formatName] of Tag [formatDate] specifies a format key [$formatName] that does not exist within a message bundle!")
IMHO this should be:
format = message(code:formatName, default: "")
if(!format) throwTagError("Attribute [formatName] of Tag [formatDate] specifies a format key [$formatName] that does not exist within a message bundle!")
Sorry, I don't know how to submit this as a patch.
Description
I looked at the formatDate code to find out that it is possible to put the format string in my "messages.properties" file. When the given key (by formatName) does not exist, a TagError should be thrown. However, this does not happen.
The existence of the formatName key is checked with:
format = message(code:formatName)
if(!format) throwTagError("Attribute [formatName] of Tag [formatDate] specifies a format key [$formatName] that does not exist within a message bundle!")
IMHO this should be:
format = message(code:formatName, default: "")
if(!format) throwTagError("Attribute [formatName] of Tag [formatDate] specifies a format key [$formatName] that does not exist within a message bundle!")
Sorry, I don't know how to submit this as a patch.