java.lang.Object | |
↳ | com.atlassian.jira.web.action.util.CalendarResourceIncluder |
This class exists to get around problems with calling out to other methods in velocity.
For the date pickers, we need to include the javascript for the calendar. However, many of the date pickers are generated in velocity, where it is not easy to call out to WebResourceManager (seemacros.vm
).
This class gives you a nice way of including resources.
buildParams(com.atlassian.jira.issue.fields.CustomField, com.atlassian.jira.issue.fields.config.FieldConfig, com.atlassian.jira.issue.Issue, com.atlassian.jira.issue.fields.layout.field.FieldLayoutItem, Object, java.util.Map, webwork.action.Action, java.util.Map)
getVelocityParams(com.atlassian.jira.issue.Issue)
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Checks if there is a translation for the pop-up calendar in the language of the given locale.
| |||||||||||
Include the javascript resources for the DHTML calendar.
| |||||||||||
This method is deprecated.
since 4.3. use
includeForLocale(java.util.Locale) instead.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object |
Checks if there is a translation for the pop-up calendar in the language of the given locale.
locale | user's locale. |
---|
Include the javascript resources for the DHTML calendar. If a translation is not found for the locale then an English translation is used. See JRA-23434.
locale | The user's locale. |
---|
This method is deprecated.
since 4.3. use includeForLocale(java.util.Locale)
instead.
Call this method when you want to include the "jira.webresources:calendar" resource (probably because you are about to use the DHTML calendar)
locale | user's locale |
---|