From 17d73d21a1203c86aab9c6b887d4e5c01e36a160 Mon Sep 17 00:00:00 2001
From: Lukasz Lenart
- * This provider is only invoked if one or more action packages are passed to the dispatcher,
- * usually from the web.xml.
- * Configurations are created for objects that either implement Action or have classnames that end with "Action".
- */
-public class ClasspathPackageProvider implements PackageProvider {
-
- /**
- * The default page prefix (or "path").
- * Some applications may place pages under "/WEB-INF" as an extreme security precaution.
- */
- protected static final String DEFAULT_PAGE_PREFIX = "struts.configuration.classpath.defaultPagePrefix";
-
- /**
- * The default page prefix (none).
- */
- private String defaultPagePrefix = "";
-
- /**
- * The default page extension, to use in place of ".jsp".
- */
- protected static final String DEFAULT_PAGE_EXTENSION = "struts.configuration.classpath.defaultPageExtension";
-
- /**
- * The defacto default page extension, usually associated with JavaServer Pages.
- */
- private String defaultPageExtension = ".jsp";
-
- /**
- * A setting to indicate a custom default parent package,
- * to use in place of "struts-default".
- */
- protected static final String DEFAULT_PARENT_PACKAGE = "struts.configuration.classpath.defaultParentPackage";
-
- /**
- * A setting to disable action scanning.
- */
- protected static final String DISABLE_ACTION_SCANNING = "struts.configuration.classpath.disableActionScanning";
-
- /**
- * Name of the framework's default configuration package,
- * that application configuration packages automatically inherit.
- */
- private String defaultParentPackage = "struts-default";
-
- /**
- * The default page prefix (or "path").
- * Some applications may place pages under "/WEB-INF" as an extreme security precaution.
- */
- protected static final String FORCE_LOWER_CASE = "struts.configuration.classpath.forceLowerCase";
-
- /**
- * Whether to use a lowercase letter as the initial letter of an action.
- * If false, actions will retain the initial uppercase letter from the Action class.
- * (
- * A tag that creates an HTML <a/> element, that when clicked makes an asynchronous request(XMLHttpRequest). The url
- * attribute must be build using the <s:url/> tag.
- * Examples The autocomplete tag is a combobox that can autocomplete text entered on the input box. If an action
- * is used to populate the autocompleter, the output of the action must be a well formed JSON string. The autocompleter follows this rule to find its datasource:
- * 1. If the response is an array, assume that it contains 2-dimension array elements, like:
- * 2. If a value is specified in the "dataFieldName" attribute, and the response has a field with that
- * name, assume that's the datasource, which can be an array of 2-dimension array elements, or a map,
- * like (assuming dataFieldName="state"): 3. If there is a field that starts with the value specified on the "name" attribute, assume
- * that's the datasource, like (assuming name="state"): 4. Use first array that is found, like:
- * 5. If the response is a map, use it (recommended as it is the easiest one to generate):
- * Examples
- * This tag will generate event listeners for multiple events on multiple sources,
- * making an asynchronous request to the specified href, and updating multiple targets.
- * Examples
- * Renders a date/time picker in a dropdown container.
- *
- * A stand-alone DateTimePicker widget that makes it easy to select a date/time, or increment by week, month,
- * and/or year.
- *
- * It is possible to customize the user-visible formatting with either the
- * 'formatLength' (long, short, medium or full) or 'displayFormat' attributes. By defaulty current
- * locale will be used.
- * The value sent to the server is a locale-independent value, in a hidden field as defined
- * by the name attribute. The value will be formatted conforming to RFC3 339
- * (yyyy-MM-dd'T'HH:mm:ss)
- *
- * The following formats(in order) will be used to parse the values of the attributes 'value',
- * 'startDate' and 'endDate':
- *
- * This tag generates an HTML div that loads its content using an XMLHttpRequest call, via
- * the dojo framework. When the "updateFreq" is set the built in timer will start automatically and
- * reload the div content with the value of "updateFreq" as the refresh period(in milliseconds).
- * Topics can be used to stop(stopTimerListenTopics) and start(startTimerListenTopics) this timer.
- *
- * When used inside a "tabbedpanel" tag, each div becomes a tab. Some attributes are specific
- * to this use case, like:
- * view.action (true) versus View.action (false)).
- */
- private boolean forceLowerCase = true;
-
- protected static final String CLASS_SUFFIX = "struts.codebehind.classSuffix";
- /**
- * Default suffix that can be used to indicate POJO "Action" classes.
- */
- protected String classSuffix = "Action";
-
- protected static final String CHECK_IMPLEMENTS_ACTION = "struts.codebehind.checkImplementsAction";
-
- /**
- * When testing a class, check that it implements Action
- */
- protected boolean checkImplementsAction = true;
-
- protected static final String CHECK_ANNOTATION = "struts.codebehind.checkAnnotation";
-
- /**
- * When testing a class, check that it has an @Action annotation
- */
- protected boolean checkAnnotation = true;
-
- /**
- * Helper class to scan class path for server pages.
- */
- private PageLocator pageLocator = new ClasspathPageLocator();
-
- /**
- * Flag to indicate the packages have been loaded.
- *
- * @see #loadPackages
- * @see #needsReload
- */
- private boolean initialized = false;
-
- private boolean disableActionScanning = false;
-
- private PackageLoader packageLoader;
-
- /**
- * Logging instance for this class.
- */
- private static final Logger LOG = LoggerFactory.getLogger(ClasspathPackageProvider.class);
-
- /**
- * The XWork Configuration for this application.
- *
- * @see #init
- */
- private Configuration configuration;
-
- private String actionPackages;
-
- private ServletContext servletContext;
-
- public ClasspathPackageProvider() {
- }
-
- /**
- * PageLocator defines a locate method that can be used to discover server pages.
- */
- public static interface PageLocator {
- public URL locate(String path);
- }
-
- /**
- * ClasspathPathLocator searches the classpath for server pages.
- */
- public static class ClasspathPageLocator implements PageLocator {
- public URL locate(String path) {
- return ClassLoaderUtil.getResource(path, getClass());
- }
- }
-
- @Inject("actionPackages")
- public void setActionPackages(String packages) {
- this.actionPackages = packages;
- }
-
- public void setServletContext(ServletContext ctx) {
- this.servletContext = ctx;
- }
-
- /**
- * Disables action scanning.
- *
- * @param disableActionScanning True to disable
- */
- @Inject(value=DISABLE_ACTION_SCANNING, required=false)
- public void setDisableActionScanning(String disableActionScanning) {
- this.disableActionScanning = "true".equals(disableActionScanning);
- }
-
- /**
- * Check that the class implements Action
- *
- * @param checkImplementsAction True to check
- */
- @Inject(value=CHECK_IMPLEMENTS_ACTION, required=false)
- public void setCheckImplementsAction(String checkImplementsAction) {
- this.checkImplementsAction = "true".equals(checkImplementsAction);
- }
-
- /**
- * Check that the class has an @Action annotation
- *
- * @param checkImplementsAction True to check
- */
- @Inject(value=CHECK_ANNOTATION, required=false)
- public void setCheckAnnotation(String checkAnnotation) {
- this.checkAnnotation = "true".equals(checkAnnotation);
- }
-
- /**
- * Register a default parent package for the actions.
- *
- * @param defaultParentPackage the new defaultParentPackage
- */
- @Inject(value=DEFAULT_PARENT_PACKAGE, required=false)
- public void setDefaultParentPackage(String defaultParentPackage) {
- this.defaultParentPackage = defaultParentPackage;
- }
-
- /**
- * Register a default page extension to use when locating pages.
- *
- * @param defaultPageExtension the new defaultPageExtension
- */
- @Inject(value=DEFAULT_PAGE_EXTENSION, required=false)
- public void setDefaultPageExtension(String defaultPageExtension) {
- this.defaultPageExtension = defaultPageExtension;
- }
-
- /**
- * Reigster a default page prefix to use when locating pages.
- *
- * @param defaultPagePrefix the defaultPagePrefix to set
- */
- @Inject(value=DEFAULT_PAGE_PREFIX, required=false)
- public void setDefaultPagePrefix(String defaultPagePrefix) {
- this.defaultPagePrefix = defaultPagePrefix;
- }
-
- /**
- * Default suffix that can be used to indicate POJO "Action" classes.
- *
- * @param classSuffix the classSuffix to set
- */
- @Inject(value=CLASS_SUFFIX, required=false)
- public void setClassSuffix(String classSuffix) {
- this.classSuffix = classSuffix;
- }
-
- /**
- * Whether to use a lowercase letter as the initial letter of an action.
- *
- * @param force If false, actions will retain the initial uppercase letter from the Action class.
- * (view.action (true) versus View.action (false)).
- */
- @Inject(value=FORCE_LOWER_CASE, required=false)
- public void setForceLowerCase(String force) {
- this.forceLowerCase = "true".equals(force);
- }
-
- /**
- * Register a PageLocation to use to scan for server pages.
- *
- * @param locator
- */
- public void setPageLocator(PageLocator locator) {
- this.pageLocator = locator;
- }
-
- /**
- * Scan a list of packages for Action classes.
- *
- * This method loads classes that implement the Action interface
- * or have a class name that ends with the letters "Action".
- *
- * @param pkgs A list of packages to load
- * @see #processActionClass
- */
- protected void loadPackages(String[] pkgs) {
-
- packageLoader = new PackageLoader();
- ResolverUtil
- * [
- * ["Alabama", "AL"],
- * ["Alaska", "AK"]
- * ]
- *
- *
- * {
- * "state" : [
- * ["Alabama","AL"],
- * ["Alaska","AK"]
- * ]
- * }
- * or
- * {
- * "state" : {
- * "Alabama" : "AL",
- * "Alaska" : "AK"
- * }
- * }
- *
- *
- *
- * {
- * "states" : [
- * ["Alabama","AL"],
- * ["Alaska","AK"]
- * ]
- * }
- *
- *
- * {
- * "anything" : [
- * ["Alabama", "AL"],
- * ["Alaska", "AK"]
- * ]
- * }
- *
- * {
- * "Alabama" : "AL",
- * "Alaska" : "AK"
- * }
- *
- *
- *
- *
- *
- *
- *
- * Format
- * Description
- *
- *
- * d
- * Day of the month
- *
- *
- * D
- * Day of year
- *
- *
- * M
- * Month - Use one or two for the numerical month, three for the abbreviation, or four for the full name, or 5 for the narrow name.
- *
- *
- * y
- * Year
- *
- *
- * h
- * Hour [1-12].
- *
- *
- * H
- * Hour [0-23].
- *
- *
- * m
- * Minute. Use one or two for zero padding.
- *
- *
- * s
- * Second. Use one or two for zero padding.
- *
- *
- *
- *
- * Examples
- *
- *
- *
- * <sx:datetimepicker name="order.date" label="Order Date" />
- * <sx:datetimepicker name="delivery.date" label="Delivery Date" displayFormat="yyyy-MM-dd" />
- * <sx:datetimepicker name="delivery.date" label="Delivery Date" value="%{date}" />
- * <sx:datetimepicker name="delivery.date" label="Delivery Date" value="%{'2007-01-01'}" />
- * <sx:datetimepicker name="order.date" label="Order Date" value="%{'today'}"/>
- *
- *
- *
- *
- * <sx:datetimepicker id="picker" label="Order Date" />
- * <script type="text/javascript">
- * function setValue() {
- * var picker = dojo.widget.byId("picker");
- *
- * //string value
- * picker.setValue('2007-01-01');
- *
- * //Date value
- * picker.setValue(new Date());
- * }
- *
- * function showValue() {
- * var picker = dojo.widget.byId("picker");
- *
- * //string value
- * var stringValue = picker.getValue();
- * alert(stringValue);
- *
- * //date value
- * var dateValue = picker.getDate();
- * alert(dateValue);
- * }
- * </script>
- *
- *
- *
- * <sx:datetimepicker id="picker" label="Order Date" valueNotifyTopics="/value"/>
- *
- * <script type="text/javascript">
- * dojo.event.topic.subscribe("/value", function(textEntered, date, widget){
- * alert('value changed');
- * //textEntered: String enetered in the textbox
- * //date: JavaScript Date object with the value selected
- * //widet: widget that published the topic
- * });
- * </script>
- *
- */
-@StrutsTag(name="datetimepicker", tldTagClass="org.apache.struts2.dojo.views.jsp.ui.DateTimePickerTag", description="Render datetimepicker")
-public class DateTimePicker extends UIBean {
-
- final public static String TEMPLATE = "datetimepicker";
- // SimpleDateFormat is not thread-safe see:
- // http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6231579
- // http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6178997
- // solution is to use stateless MessageFormat instead:
- final private static String RFC3339_FORMAT = "yyyy-MM-dd'T'HH:mm:ss";
- final private static String RFC3339_PATTERN = "{0,date," + RFC3339_FORMAT + "}";
- final protected static Logger LOG = LoggerFactory.getLogger(DateTimePicker.class);
- final private static transient Random RANDOM = new Random();
-
- protected String iconPath;
- protected String formatLength;
- protected String displayFormat;
- protected String toggleType;
- protected String toggleDuration;
- protected String type;
-
- protected String displayWeeks;
- protected String adjustWeeks;
- protected String startDate;
- protected String endDate;
- protected String weekStartsOn;
- protected String staticDisplay;
- protected String dayWidth;
- protected String language;
- protected String templateCssPath;
- protected String valueNotifyTopics;
-
- public DateTimePicker(ValueStack stack, HttpServletRequest request, HttpServletResponse response) {
- super(stack, request, response);
- }
-
- protected String getDefaultTemplate() {
- return TEMPLATE;
- }
-
- public void evaluateParams() {
- super.evaluateParams();
-
- if(displayFormat != null)
- addParameter("displayFormat", findString(displayFormat));
- if(displayWeeks != null)
- addParameter("displayWeeks", findString(displayWeeks));
- if(adjustWeeks != null)
- addParameter("adjustWeeks", findValue(adjustWeeks, Boolean.class));
-
- if(disabled != null)
- addParameter("disabled", findValue(disabled, Boolean.class));
-
- if(startDate != null)
- addParameter("startDate", format(findValue(startDate)));
- if(endDate != null)
- addParameter("endDate", format(findValue(endDate)));
- if(weekStartsOn != null)
- addParameter("weekStartsOn", findString(weekStartsOn));
- if(staticDisplay != null)
- addParameter("staticDisplay", findValue(staticDisplay, Boolean.class));
- if(dayWidth != null)
- addParameter("dayWidth", findValue(dayWidth, Integer.class));
- if(language != null)
- addParameter("language", findString(language));
- if(value != null)
- addParameter("value", format(findValue(value)));
-
- if(iconPath != null)
- addParameter("iconPath", findString(iconPath));
- if(formatLength != null)
- addParameter("formatLength", findString(formatLength));
- if(toggleType != null)
- addParameter("toggleType", findString(toggleType));
- if(toggleDuration != null)
- addParameter("toggleDuration", findValue(toggleDuration,
- Integer.class));
- if(type != null)
- addParameter("type", findString(type));
- else
- addParameter("type", "date");
- if(templateCssPath != null)
- addParameter("templateCssPath", findString(templateCssPath));
- if(valueNotifyTopics != null)
- addParameter("valueNotifyTopics", findString(valueNotifyTopics));
-
- // format the value to RFC 3399
- if(parameters.containsKey("value")) {
- addParameter("nameValue", parameters.get("value"));
- } else {
- if(parameters.containsKey("name")) {
- addParameter("nameValue", format(findValue((String)parameters.get("name"))));
- }
- }
-
- // generate a random ID if not explicitly set and not parsing the content
- Boolean parseContent = (Boolean)stack.getContext().get(Head.PARSE_CONTENT);
- boolean generateId = (parseContent != null ? !parseContent : true);
-
- addParameter("pushId", generateId);
- if ((this.id == null || this.id.length() == 0) && generateId) {
- // resolves Math.abs(Integer.MIN_VALUE) issue reported by FindBugs
- // http://findbugs.sourceforge.net/bugDescriptions.html#RV_ABSOLUTE_VALUE_OF_RANDOM_INT
- int nextInt = RANDOM.nextInt();
- nextInt = nextInt == Integer.MIN_VALUE ? Integer.MAX_VALUE : Math.abs(nextInt);
- this.id = "widget_" + String.valueOf(nextInt);
- addParameter("id", this.id);
- }
- }
-
- @Override
- @StrutsTagSkipInheritance
- public void setTheme(String theme) {
- super.setTheme(theme);
- }
-
- @Override
- public String getTheme() {
- return "ajax";
- }
-
- @StrutsTagAttribute(description="If true, weekly size of calendar changes to acomodate the month if false," +
- " 42 day format is used", type="Boolean", defaultValue="false")
- public void setAdjustWeeks(String adjustWeeks) {
- this.adjustWeeks = adjustWeeks;
- }
-
- @StrutsTagAttribute(description="How to render the names of the days in the header(narrow, abbr or wide)", defaultValue="narrow")
- public void setDayWidth(String dayWidth) {
- this.dayWidth = dayWidth;
- }
-
- @StrutsTagAttribute(description="Total weeks to display", type="Integer", defaultValue="6")
- public void setDisplayWeeks(String displayWeeks) {
- this.displayWeeks = displayWeeks;
- }
-
- @StrutsTagAttribute(description="Last available date in the calendar set", type="Date", defaultValue="2941-10-12")
- public void setEndDate(String endDate) {
- this.endDate = endDate;
- }
-
- @StrutsTagAttribute(description="First available date in the calendar set", type="Date", defaultValue="1492-10-12")
- public void setStartDate(String startDate) {
- this.startDate = startDate;
- }
-
- @StrutsTagAttribute(description="Disable all incremental controls, must pick a date in the current display", type="Boolean", defaultValue="false")
- public void setStaticDisplay(String staticDisplay) {
- this.staticDisplay = staticDisplay;
- }
-
- @StrutsTagAttribute(description="Adjusts the first day of the week 0==Sunday..6==Saturday", type="Integer", defaultValue="0")
- public void setWeekStartsOn(String weekStartsOn) {
- this.weekStartsOn = weekStartsOn;
- }
-
- @StrutsTagAttribute(description="Language to display this widget in", defaultValue="brower's specified preferred language")
- public void setLanguage(String language) {
- this.language = language;
- }
-
- @StrutsTagAttribute(description="A pattern used for the visual display of the formatted date, e.g. dd/MM/yyyy")
- public void setDisplayFormat(String displayFormat) {
- this.displayFormat = displayFormat;
- }
-
- @StrutsTagAttribute(description="Type of formatting used for visual display. Possible values are " +
- "long, short, medium or full", defaultValue="short")
- public void setFormatLength(String formatLength) {
- this.formatLength = formatLength;
- }
-
- @StrutsTagAttribute(description="Path to icon used for the dropdown")
- public void setIconPath(String iconPath) {
- this.iconPath = iconPath;
- }
-
- @StrutsTagAttribute(description="Duration of toggle in milliseconds", type="Integer", defaultValue="100")
- public void setToggleDuration(String toggleDuration) {
- this.toggleDuration = toggleDuration;
- }
-
- @StrutsTagAttribute(description="Defines the type of the picker on the dropdown. Possible values are 'date'" +
- " for a DateTimePicker, and 'time' for a timePicker", defaultValue="date")
- public void setType(String type) {
- this.type = type;
- }
-
- @StrutsTagAttribute(description="oggle type of the dropdown. Possible values are plain,wipe,explode,fade", defaultValue="plain")
- public void setToggleType(String toggleType) {
- this.toggleType = toggleType;
- }
-
- @StrutsTagAttribute(description="Template css path")
- public void setTemplateCssPath(String templateCssPath) {
- this.templateCssPath = templateCssPath;
- }
-
- @StrutsTagAttribute(description="Preset the value of input element")
- public void setValue(String arg0) {
- super.setValue(arg0);
- }
-
- @StrutsTagAttribute(description="Comma delimmited list of topics that will published when a value is selected")
- public void setValueNotifyTopics(String valueNotifyTopics) {
- this.valueNotifyTopics = valueNotifyTopics;
- }
-
- private String format(Object obj) {
- if(obj == null)
- return null;
-
- if(obj instanceof Date) {
- return MessageFormat.format(RFC3339_PATTERN, (Date) obj);
- } else if(obj instanceof Calendar) {
- return MessageFormat.format(RFC3339_PATTERN, ((Calendar) obj).getTime());
- }
- else {
- // try to parse a date
- String dateStr = obj.toString();
- if(dateStr.equalsIgnoreCase("today"))
- return MessageFormat.format(RFC3339_PATTERN, new Date());
-
-
- Date date = null;
- //formats used to parse the date
- List
- *
- *
Examples
- * - * <sx:div href="%{#url}">Initial Content</sx:div> - * - * - * - * <img id="indicator" src="${pageContext.request.contextPath}/images/indicator.gif" style="display:none"/> - * <sx:div href="%{#url}" updateFreq="2000" indicator="indicator"> - * Initial Content - * </sx:div> - * - * - * - * <form id="form"> - * <label for="textInput">Text to be submited when div reloads</label> - * <input type=textbox id="textInput" name="data"> - * </form> - * <sx:div - * href="%{#url}" - * updateFreq="3000" - * listenTopics="/refresh" - * startTimerListenTopics="/startTimer" - * stopTimerListenTopics="/stopTimer" - * highlightColor="red" - * formId="form"> - * Initial Content - * </sx:div> - * - */ -@StrutsTag(name="div", tldTagClass="org.apache.struts2.dojo.views.jsp.ui.DivTag", description="Render HTML div providing content from remote call via AJAX") -public class Div extends AbstractRemoteBean { - - public static final String TEMPLATE = "div"; - public static final String TEMPLATE_CLOSE = "div-close"; - public static final String COMPONENT_NAME = Div.class.getName(); - - protected String updateFreq; - protected String autoStart; - protected String delay; - protected String startTimerListenTopics; - protected String stopTimerListenTopics; - protected String refreshOnShow; - protected String closable; - protected String preload; - - public Div(ValueStack stack, HttpServletRequest request, HttpServletResponse response) { - super(stack, request, response); - } - - public String getDefaultOpenTemplate() { - return TEMPLATE; - } - - protected String getDefaultTemplate() { - return TEMPLATE_CLOSE; - } - - public void evaluateExtraParams() { - super.evaluateExtraParams(); - - if (updateFreq != null) - addParameter("updateFreq", findValue(updateFreq, Integer.class)); - if (autoStart != null) - addParameter("autoStart", findValue(autoStart, Boolean.class)); - if (refreshOnShow != null) - addParameter("refreshOnShow", findValue(refreshOnShow, Boolean.class)); - if (delay != null) - addParameter("delay", findValue(delay, Integer.class)); - if (startTimerListenTopics != null) - addParameter("startTimerListenTopics", findString(startTimerListenTopics)); - if (stopTimerListenTopics != null) - addParameter("stopTimerListenTopics", findString(stopTimerListenTopics)); - if (separateScripts != null) - addParameter("separateScripts", findValue(separateScripts, Boolean.class)); - if (closable != null) - addParameter("closable", findValue(closable, Boolean.class)); - if (preload != null) - addParameter("preload", findValue(preload, Boolean.class)); - } - - @StrutsTagAttribute(description="Start timer automatically", type="Boolean", defaultValue="true") - public void setAutoStart(String autoStart) { - this.autoStart = autoStart; - } - - @StrutsTagAttribute(description="How long to wait before fetching the content (in milliseconds)", type="Integer") - public void setDelay(String delay) { - this.delay = delay; - } - - @StrutsTagAttribute(description="How often to reload the content (in milliseconds)", type="Integer") - public void setUpdateFreq(String updateInterval) { - this.updateFreq = updateInterval; - } - - @StrutsTagAttribute(description="Topics that will start the timer (for autoupdate)") - public void setStartTimerListenTopics(String startTimerListenTopic) { - this.startTimerListenTopics = startTimerListenTopic; - } - - @StrutsTagAttribute(description="Topics that will stop the timer (for autoupdate)") - public void setStopTimerListenTopics(String stopTimerListenTopic) { - this.stopTimerListenTopics = stopTimerListenTopic; - } - - @StrutsTagAttribute(description="Content will be loaded when div becomes visible, used only inside the tabbedpanel tag", type="Boolean", defaultValue="false") - public void setRefreshOnShow(String refreshOnShow) { - this.refreshOnShow = refreshOnShow; - } - - @StrutsTagAttribute(description="Show a close button when the div is inside a 'tabbedpanel'", defaultValue="false") - public void setClosable(String closable) { - this.closable = closable; - } - - @StrutsTagAttribute(description="Load content when page is loaded", type="Boolean", defaultValue="true") - public void setPreload(String preload) { - this.preload = preload; - } - - @StrutsTagAttribute(description = "Color used to perform a highlight effect on this element", - defaultValue = "none") - public void setHighlightColor(String highlightColor) { - this.highlightColor = highlightColor; - } -} diff --git a/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Head.java b/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Head.java deleted file mode 100644 index 814a510ac..000000000 --- a/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Head.java +++ /dev/null @@ -1,218 +0,0 @@ -/* - * $Id$ - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.struts2.dojo.components; - -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; - -import org.apache.struts2.views.annotations.StrutsTag; -import org.apache.struts2.views.annotations.StrutsTagAttribute; -import org.apache.struts2.views.annotations.StrutsTagSkipInheritance; - -import com.opensymphony.xwork2.util.ValueStack; - -/** - * - * The "head" tag renders required JavaScript code to configure Dojo and is required in order to use - * any of the tags included in the Dojo plugin. - * - * - * - * - * - *To debug javascript errors set the "debug" attribute to true, which will display Dojo - * (and Struts) warning and error messages at the bottom of the page. Core Dojo files are by default - * compressed, to improve loading time, which makes them very hard to read. To debug Dojo and Struts - * widgets, set the "compressed" attribute to true. Make sure to turn this option off before - * moving your project into production, as uncompressed files will take longer to download. - *
- *For troubleshooting javascript problems the following configuration is recommended:
- *- * <sx:head debug="true" cache="false" compressed="false" /> - *- * - *
Dojo files are loaded as required by the Dojo loading mechanism. The problem with this - * approach is that the files are not cached by the browser, so reloading a page or navigating - * to a different page that uses the same widgets will cause the files to be reloaded. To solve - * this problem a custom Dojo profile is distributed with the Dojo plugin. This profile contains - * the files required by the tags in the Dojo plugin, all in one file (524Kb), which is cached - * by the browser. This file will take longer to load by the browser but it will be downloaded - * only once. By default the "cache" attribute is set to false.
- * - *Some tags like the "datetimepicker" can use different locales, to use a locale - * that is different from the request locale, it must be specified on the "extraLocales" - * attribute. This attribute can contain a comma separated list of locale names. From - * Dojo's documentation:
- * - *- * The locale is a short string, defined by the host environment, which conforms to RFC 3066 - * (http://www.ietf.org/rfc/rfc3066.txt) used in the HTML specification. - * It consists of short identifiers, typically two characters - * long which are case-insensitive. Note that Dojo uses dash separators, not underscores like - * Java (e.g. "en-us", not "en_US"). Typically country codes are used in the optional second - * identifier, and additional variants may be specified. For example, Japanese is "ja"; - * Japanese in Japan is "ja-jp". Notice that the lower case is intentional -- while Dojo - * will often convert all locales to lowercase to normalize them, it is the lowercase that - * must be used when defining your resources. - *
- * - *The "locale" attribute configures Dojo's locale:
- * - *"The locale Dojo uses on a page may be overridden by setting djConfig.locale. This may be - * done to accomodate applications with a known user profile or server pages which do manual - * assembly and assume a certain locale. You may also set djConfig.extraLocale to load - * localizations in addition to your own, in case you want to specify a particular - * translation or have multiple languages appear on your page."
- * - *To improve loading time, the property "parseContent" is set to false by default. This property will - * instruct Dojo to only build widgets using specific element ids. If the property is set to true - * Dojo will scan the whole document looking for widgets.
- * - *Dojo 0.4.3 is distributed with the Dojo plugin, to use a different Dojo version, the - * "baseRelativePath" attribute can be set to the URL of the Dojo root folder on your application. - *
- * - * - * Examples - * - *- * - * <%@ taglib prefix="sx" uri="/struts-dojo-tags" %> - * <head> - * <title>My page</title> - * <sx:head/> - * </head> - * - *- * - *
- * - * <%@ taglib prefix="sx" uri="/struts-dojo-tags" %> - * <head> - * <title>My page</title> - * <sx:head debug="true" extraLocales="en-us,nl-nl,de-de"/> - * </head> - * - *- * - */ -@StrutsTag(name="head", tldBodyContent="empty", tldTagClass="org.apache.struts2.dojo.views.jsp.ui.HeadTag", - description="Render a chunk of HEAD for your HTML file") -@StrutsTagSkipInheritance -public class Head extends org.apache.struts2.components.Head { - public static final String TEMPLATE = "head"; - public static final String PARSE_CONTENT = "struts.dojo.head.parseContent"; - - private String debug; - private String compressed; - private String baseRelativePath; - private String extraLocales; - private String locale; - private String cache; - private String parseContent; - - public Head(ValueStack stack, HttpServletRequest request, HttpServletResponse response) { - super(stack, request, response); - } - - protected String getDefaultTemplate() { - return TEMPLATE; - } - - public void evaluateParams() { - super.evaluateParams(); - - if (this.debug != null) - addParameter("debug", findValue(this.debug, Boolean.class)); - if (this.compressed != null) - addParameter("compressed", findValue(this.compressed, Boolean.class)); - if (this.baseRelativePath != null) - addParameter("baseRelativePath", findString(this.baseRelativePath)); - if (this.extraLocales != null) { - String locales = findString(this.extraLocales); - addParameter("extraLocales", locales.split(",")); - } - if (this.locale != null) - addParameter("locale", findString(this.locale)); - if (this.cache != null) - addParameter("cache", findValue(this.cache, Boolean.class)); - if (this.parseContent != null) { - Boolean shouldParseContent = (Boolean) findValue(this.parseContent, Boolean.class); - addParameter("parseContent", shouldParseContent); - stack.getContext().put(PARSE_CONTENT, shouldParseContent); - } else { - addParameter("parseContent", false); - stack.getContext().put(PARSE_CONTENT, false); - } - } - - @Override - @StrutsTagSkipInheritance - public void setTheme(String theme) { - super.setTheme(theme); - } - - @Override - public String getTheme() { - return "ajax"; - } - - public boolean isDebug() { - return debug != null && Boolean.parseBoolean(debug); - } - - @StrutsTagAttribute(description="Enable Dojo debug messages", defaultValue="false", type="Boolean") - public void setDebug(String debug) { - this.debug = debug; - } - - @StrutsTagAttribute(description="Use compressed version of dojo.js", defaultValue="true", type="Boolean") - public void setCompressed(String compressed) { - this.compressed = compressed; - } - - @StrutsTagAttribute(description="Context relative path of Dojo distribution folder", defaultValue="/struts/dojo") - public void setBaseRelativePath(String baseRelativePath) { - this.baseRelativePath = baseRelativePath; - } - - @StrutsTagAttribute(description="Comma separated list of locale names to be loaded by Dojo, locale names must be specified as in RFC3066") - public void setExtraLocales(String extraLocales) { - this.extraLocales = extraLocales; - } - - @StrutsTagAttribute(description="Default locale to be used by Dojo, locale name must be specified as in RFC3066") - public void setLocale(String locale) { - this.locale = locale; - } - - @StrutsTagAttribute(description="Use Struts Dojo profile, which contains all Struts widgets in one file, making it possible to be chached by " + - "the browser", defaultValue="true", type="Boolean") - public void setCache(String cache) { - this.cache = cache; - } - - @StrutsTagAttribute(description="Parse the whole document for widgets", defaultValue="false", type="Boolean") - public void setParseContent(String parseContent) { - this.parseContent = parseContent; - } -} diff --git a/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/RemoteBean.java b/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/RemoteBean.java deleted file mode 100644 index a65afb2b5..000000000 --- a/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/RemoteBean.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * $Id$ - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.struts2.dojo.components; - - -public interface RemoteBean { - - void setListenTopics(String topics); - - void setNotifyTopics(String topics); - - void setHref(String href); - - void setErrorText(String errorText); - - void setAfterNotifyTopics(String afterNotifyTopics); - - void setBeforeNotifyTopics(String beforeNotifyTopics); - - void setErrorNotifyTopics(String errorNotifyTopics); - - void setExecuteScripts(String executeScripts); - - void setLoadingText(String loadingText); - - void setHandler(String handler); - - void setFormFilter(String formFilter); - - void setFormId(String formId); - - void setShowErrorTransportText(String showError); - - void setShowLoadingText(String showLoadingText); - - void setIndicator(String indicator); - - void setName(String name); - - void setCssStyle(String style); - - void setCssClass(String cssClass); - - void setHighlightColor(String color); - - void setHighlightDuration(String color); - - void setSeparateScripts(String separateScripts); - - void setTransport(String transport); - - void setParseContent(String parseContent); -} diff --git a/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Submit.java b/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Submit.java deleted file mode 100644 index 815b0705e..000000000 --- a/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Submit.java +++ /dev/null @@ -1,465 +0,0 @@ -/* - * $Id$ - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.struts2.dojo.components; - -import java.io.Writer; -import java.util.Random; - -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; - -import org.apache.struts2.components.Form; -import org.apache.struts2.components.FormButton; -import org.apache.struts2.views.annotations.StrutsTag; -import org.apache.struts2.views.annotations.StrutsTagAttribute; -import org.apache.struts2.views.annotations.StrutsTagSkipInheritance; - -import com.opensymphony.xwork2.util.ValueStack; -import com.opensymphony.xwork2.util.logging.Logger; -import com.opensymphony.xwork2.util.logging.LoggerFactory; - -/** - * - * Renders a submit button that can submit a form asynchronously. - * The submit can have three different types of rendering: - *
Examples
- * - * <sx:submit value="%{'Submit'}" /> - * - * - * - * <sx:submit type="image" value="%{'Submit'}" label="Submit the form" src="submit.gif"/> - * - - * - * <sx:submit type="button" value="%{'Submit'}" label="Submit the form"/> - * - * - * - * <div id="div1">Div 1</div> - * <s:url id="ajaxTest" value="/AjaxTest.action"/> - * - * <sx:submit id="link1" href="%{ajaxTest}" target="div1" /> - * - * - * - * <s:form id="form" action="AjaxTest"> - * <input type="textbox" name="data"> - * <sx:submit /> - * </s:form> - * - * - * - * <s:form id="form" action="AjaxTest"> - * <input type="textbox" name="data"> - * </s:form> - * - * <sx:submit formId="form" /> - * - * - * - * <script type="text/javascript"> - * dojo.event.topic.subscribe("/before", function(event, widget){ - * alert('inside a topic event. before request'); - * //event: set event.cancel = true, to cancel request - * //widget: widget that published the topic - * }); - * </script> - * - * <sx:submit beforeNotifyTopics="/before" /> - * - * - * - * <script type="text/javascript"> - * dojo.event.topic.subscribe("/after", function(data, request, widget){ - * alert('inside a topic event. after request'); - * //data : text returned from request(the html) - * //request: XMLHttpRequest object - * //widget: widget that published the topic - * }); - * </script> - * - * <sx:submit afterNotifyTopics="/after" highlightColor="red" href="%{#ajaxTest}" /> - * - * - * - * <script type="text/javascript"> - * dojo.event.topic.subscribe("/error", function(error, request, widget){ - * alert('inside a topic event. on error'); - * //error : error object (error.message has the error message) - * //request: XMLHttpRequest object - * //widget: widget that published the topic - * }); - * </script> - * - * <img id="ind1" src="${pageContext.request.contextPath}/images/indicator.gif" style="display:none"/> - * <sx:submit errorNotifyTopics="/error" indicator="ind1" href="%{#ajaxTest}" /> - * - */ -@StrutsTag(name="submit", tldTagClass="org.apache.struts2.dojo.views.jsp.ui.SubmitTag", description="Render a submit button") -public class Submit extends FormButton implements RemoteBean { - - private static final Logger LOG = LoggerFactory.getLogger(Submit.class); - private final static transient Random RANDOM = new Random(); - - final public static String OPEN_TEMPLATE = "submit"; - final public static String TEMPLATE = "submit-close"; - - protected String href; - protected String errorText; - protected String executeScripts; - protected String loadingText; - protected String listenTopics; - protected String handler; - protected String formId; - protected String formFilter; - protected String src; - protected String notifyTopics; - protected String showErrorTransportText; - protected String indicator; - protected String showLoadingText; - protected String targets; - protected String beforeNotifyTopics; - protected String afterNotifyTopics; - protected String errorNotifyTopics; - protected String highlightColor; - protected String highlightDuration; - protected String validate; - protected String ajaxAfterValidation; - protected String separateScripts; - protected String transport; - protected String parseContent; - - public Submit(ValueStack stack, HttpServletRequest request, HttpServletResponse response) { - super(stack, request, response); - } - - protected String getDefaultTemplate() { - return TEMPLATE; - } - - @Override - public String getDefaultOpenTemplate() { - return OPEN_TEMPLATE; - } - - public void evaluateParams() { - if ((key == null) && (value == null)) { - value = "Submit"; - } - - if (((key != null)) && (value == null)) { - this.value = "%{getText('"+key +"')}"; - } - - super.evaluateParams(); - } - - public void evaluateExtraParams() { - super.evaluateExtraParams(); - - if (href != null) - addParameter("href", findString(href)); - if (errorText != null) - addParameter("errorText", findString(errorText)); - if (loadingText != null) - addParameter("loadingText", findString(loadingText)); - if (executeScripts != null) - addParameter("executeScripts", findValue(executeScripts, Boolean.class)); - if (listenTopics != null) - addParameter("listenTopics", findString(listenTopics)); - if (notifyTopics != null) - addParameter("notifyTopics", findString(notifyTopics)); - if (handler != null) - addParameter("handler", findString(handler)); - if (formId != null) - addParameter("formId", findString(formId)); - if (formFilter != null) - addParameter("formFilter", findString(formFilter)); - if (src != null) - addParameter("src", findString(src)); - if (indicator != null) - addParameter("indicator", findString(indicator)); - if (targets != null) - addParameter("targets", findString(targets)); - if (showLoadingText != null) - addParameter("showLoadingText", findString(showLoadingText)); - if (showLoadingText != null) - addParameter("showLoadingText", findString(showLoadingText)); - if (beforeNotifyTopics != null) - addParameter("beforeNotifyTopics", findString(beforeNotifyTopics)); - if (afterNotifyTopics != null) - addParameter("afterNotifyTopics", findString(afterNotifyTopics)); - if (errorNotifyTopics != null) - addParameter("errorNotifyTopics", findString(errorNotifyTopics)); - if (highlightColor != null) - addParameter("highlightColor", findString(highlightColor)); - if (highlightDuration != null) - addParameter("highlightDuration", findString(highlightDuration)); - if (separateScripts != null) - addParameter("separateScripts", findValue(separateScripts, Boolean.class)); - if (transport != null) - addParameter("transport", findString(transport)); - if (parseContent != null) - addParameter("parseContent", findValue(parseContent, Boolean.class)); - - Boolean validateValue = false; - if (validate != null) { - validateValue = (Boolean) findValue(validate, Boolean.class); - addParameter("validate", validateValue); - } - - Form form = (Form) findAncestor(Form.class); - if (form != null) - addParameter("parentTheme", form.getTheme()); - - if (ajaxAfterValidation != null) - addParameter("ajaxAfterValidation", findValue(ajaxAfterValidation, Boolean.class)); - - // generate a random ID if not explicitly set and not parsing the content - Boolean parseContent = (Boolean)stack.getContext().get(Head.PARSE_CONTENT); - boolean generateId = (parseContent != null ? !parseContent : true); - - addParameter("pushId", generateId); - if ((this.id == null || this.id.length() == 0) && generateId) { - // resolves Math.abs(Integer.MIN_VALUE) issue reported by FindBugs - // http://findbugs.sourceforge.net/bugDescriptions.html#RV_ABSOLUTE_VALUE_OF_RANDOM_INT - int nextInt = RANDOM.nextInt(); - nextInt = nextInt == Integer.MIN_VALUE ? Integer.MAX_VALUE : Math.abs(nextInt); - this.id = "widget_" + String.valueOf(nextInt); - addParameter("id", this.id); - } - } - - @Override - @StrutsTagSkipInheritance - public void setTheme(String theme) { - super.setTheme(theme); - } - - @Override - public String getTheme() { - return "ajax"; - } - - /** - * Indicate whether the concrete button supports the type "image". - * - * @return true to indicate type image is supported. - */ - protected boolean supportsImageType() { - return true; - } - - /** - * Overrides to be able to render body in a template rather than always before the template - */ - public boolean end(Writer writer, String body) { - evaluateParams(); - try { - addParameter("body", body); - - mergeTemplate(writer, buildTemplateName(template, getDefaultTemplate())); - } catch (Exception e) { - LOG.error("error when rendering", e); - } - finally { - popComponentStack(); - } - - return false; - } - - @StrutsTagAttribute(description="Topic that will trigger the remote call") - public void setListenTopics(String listenTopics) { - this.listenTopics = listenTopics; - } - - @StrutsTagAttribute(description="The URL to call to obtain the content. Note: If used with ajax context, the value must be set as an url tag value.") - public void setHref(String href) { - this.href = href; - } - - @StrutsTagAttribute(description="The text to display to the user if the is an error fetching the content") - public void setErrorText(String errorText) { - this.errorText = errorText; - } - - @StrutsTagAttribute(description="Javascript code in the fetched content will be executed", type="Boolean", defaultValue="false") - public void setExecuteScripts(String executeScripts) { - this.executeScripts = executeScripts; - } - - @StrutsTagAttribute(description="Text to be shown while content is being fetched", defaultValue="Loading...") - public void setLoadingText(String loadingText) { - this.loadingText = loadingText; - } - - @StrutsTagAttribute(description="Javascript function name that will make the request") - public void setHandler(String handler) { - this.handler = handler; - } - - @StrutsTagAttribute(description="Function name used to filter the fields of the form.") - public void setFormFilter(String formFilter) { - this.formFilter = formFilter; - } - - @StrutsTagAttribute(description="Form id whose fields will be serialized and passed as parameters") - public void setFormId(String formId) { - this.formId = formId; - } - - @StrutsTagAttribute(description="Supply an image src for image type submit button. Will have no effect for types input and button.") - public void setSrc(String src) { - this.src = src; - } - - @StrutsTagAttribute(description="Comma delimited list of ids of the elements whose content will be updated") - public void setTargets(String targets) { - this.targets = targets; - } - - @StrutsTagAttribute(description="Comma delimmited list of topics that will published before and after the request, and on errors") - public void setNotifyTopics(String notifyTopics) { - this.notifyTopics = notifyTopics; - } - - @StrutsTagAttribute(description="Set whether errors will be shown or not", type="Boolean", defaultValue="true") - public void setShowErrorTransportText(String showErrorTransportText) { - this.showErrorTransportText = showErrorTransportText; - } - - @StrutsTagAttribute(description="Set indicator") - public void setIndicator(String indicator) { - this.indicator = indicator; - } - - @StrutsTagAttribute(description="Show loading text on targets", type="Boolean", defaultValue="false") - public void setShowLoadingText(String showLoadingText) { - this.showLoadingText = showLoadingText; - } - - @StrutsTagAttribute(description="The css class to use for element") - public void setCssClass(String cssClass) { - super.setCssClass(cssClass); - } - - @StrutsTagAttribute(description="The css style to use for element") - public void setCssStyle(String cssStyle) { - super.setCssStyle(cssStyle); - } - - @StrutsTagAttribute(description="The id to use for the element") - public void setId(String id) { - super.setId(id); - } - - @StrutsTagAttribute(description="The name to set for element") - public void setName(String name) { - super.setName(name); - } - - @StrutsTagAttribute(description="The type of submit to use. Valid values are input, " + - "button and image.", defaultValue="input") - public void setType(String type) { - super.setType(type); - } - - @StrutsTagAttribute(description="Preset the value of input element.") - public void setValue(String value) { - super.setValue(value); - } - - @StrutsTagAttribute(description="Label expression used for rendering a element specific label") - public void setLabel(String label) { - super.setLabel(label); - } - - @StrutsTagAttribute(description="Comma delimmited list of topics that will published after the request(if the request succeeds)") - public void setAfterNotifyTopics(String afterNotifyTopics) { - this.afterNotifyTopics = afterNotifyTopics; - } - - @StrutsTagAttribute(description="Comma delimmited list of topics that will published before the request") - public void setBeforeNotifyTopics(String beforeNotifyTopics) { - this.beforeNotifyTopics = beforeNotifyTopics; - } - - @StrutsTagAttribute(description="Comma delimmited list of topics that will published after the request(if the request fails)") - public void setErrorNotifyTopics(String errorNotifyTopics) { - this.errorNotifyTopics = errorNotifyTopics; - } - - @StrutsTagAttribute(description = "Color used to perform a highlight effect on the elements specified in the 'targets' attribute", - defaultValue = "none") - public void setHighlightColor(String highlightColor) { - this.highlightColor = highlightColor; - } - - @StrutsTagAttribute(description = "Duration of highlight effect in milliseconds. Only valid if 'highlightColor' attribute is set", - defaultValue = "1000") - public void setHighlightDuration(String highlightDuration) { - this.highlightDuration = highlightDuration; - } - - @StrutsTagAttribute(description = "Perform Ajax validation. 'ajaxValidation' interceptor must be applied to action", type="Boolean", - defaultValue = "false") - public void setValidate(String validate) { - this.validate = validate; - } - - @StrutsTagAttribute(description = "Make an asynchronous request if validation succeeds. Only valid if 'validate' is 'true'", type="Boolean", - defaultValue = "false") - public void setAjaxAfterValidation(String ajaxAfterValidation) { - this.ajaxAfterValidation = ajaxAfterValidation; - } - - @StrutsTagSkipInheritance - public void setAction(String action) { - super.setAction(action); - } - - @StrutsTagAttribute(description="Run scripts in a separate scope, unique for each tag", defaultValue="true") - public void setSeparateScripts(String separateScripts) { - this.separateScripts = separateScripts; - } - - @StrutsTagAttribute(description="Transport used by Dojo to make the request", defaultValue="XMLHTTPTransport") - public void setTransport(String transport) { - this.transport = transport; - } - - @StrutsTagAttribute(description="Parse returned HTML for Dojo widgets", defaultValue="true", type="Boolean") - public void setParseContent(String parseContent) { - this.parseContent = parseContent; - } -} diff --git a/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/TabbedPanel.java b/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/TabbedPanel.java deleted file mode 100644 index c16cb6a43..000000000 --- a/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/TabbedPanel.java +++ /dev/null @@ -1,223 +0,0 @@ -/* - * $Id$ - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.struts2.dojo.components; - -import com.opensymphony.xwork2.util.ValueStack; -import org.apache.struts2.components.ClosingUIBean; -import org.apache.struts2.views.annotations.StrutsTag; -import org.apache.struts2.views.annotations.StrutsTagAttribute; -import org.apache.struts2.views.annotations.StrutsTagSkipInheritance; - -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.util.Random; - -/** - * - * The tabbedpanel widget is primarily an AJAX component, where each tab can either be local content or remote - * content (refreshed each time the user selects that tab). - * If the useSelectedTabCookie attribute is set to true, the id of the selected tab is saved in a cookie on activation. - * When coming back to this view, the cookie is read and the tab will be activated again, unless an actual value for the - * selectedTab attribute is specified. - * If you want to use the cookie feature, please be sure that you provide a unique id for your tabbedpanel component, - * since this will also be the identifying name component of the stored cookie. - * - * - * Examples - * - * - * - * <sx:head /> - * <sx:tabbedpanel id="test" > - * <sx:div id="one" label="one" theme="ajax" labelposition="top" > - * This is the first pane<br/> - * <s:form> - * <s:textfield name="tt" label="Test Text"/> <br/> - * <s:textfield name="tt2" label="Test Text2"/> - * </s:form> - * </sx:div> - * <sx:div id="three" label="remote" theme="ajax" href="/AjaxTest.action" > - * This is the remote tab - * </sx:div> - * </sx:tabbedpanel> - * - * - * - * <sx:head /> - * <script type="text/javascript"> - * dojo.event.topic.subscribe("/beforeSelect", function(event, tab, tabContainer){ - * event.cancel = true; - * }); - * </script> - * - * <sx:tabbedpanel id="test" beforeSelectTabNotifyTopics="/beforeSelect"> - * <sx:div id="three" label="remote" theme="ajax" href="/AjaxTest.action" > - * One Tab - * </sx:div> - * <sx:div id="three" label="remote" theme="ajax" href="/AjaxTest.action" > - * Another tab - * </sx:div> - * </sx:tabbedpanel> - * - */ -@StrutsTag(name="tabbedpanel", tldTagClass="org.apache.struts2.dojo.views.jsp.ui.TabbedPanelTag", description="Render a tabbedPanel widget.") -public class TabbedPanel extends ClosingUIBean { - public static final String TEMPLATE = "tabbedpanel"; - public static final String TEMPLATE_CLOSE = "tabbedpanel-close"; - final private static String COMPONENT_NAME = TabbedPanel.class.getName(); - private final static transient Random RANDOM = new Random(); - - protected String selectedTab; - protected String closeButton; - protected String doLayout ; - protected String templateCssPath; - protected String beforeSelectTabNotifyTopics; - protected String afterSelectTabNotifyTopics; - protected String disabledTabCssClass; - protected String useSelectedTabCookie; - - public TabbedPanel(ValueStack stack, HttpServletRequest request, HttpServletResponse response) { - super(stack, request, response); - } - - - protected void evaluateExtraParams() { - super.evaluateExtraParams(); - - if (selectedTab != null) - addParameter("selectedTab", findString(selectedTab)); - if (closeButton != null) - addParameter("closeButton", findString(closeButton)); - addParameter("doLayout", doLayout != null ? findValue(doLayout, Boolean.class) : Boolean.FALSE); - if (labelPosition != null) { - //dojo has some weird name for label positions - if(labelPosition.equalsIgnoreCase("left")) - labelPosition = "left-h"; - if(labelPosition.equalsIgnoreCase("right")) - labelPosition = "right-h"; - addParameter("labelPosition", null); - addParameter("labelPosition", labelPosition); - } - if (templateCssPath != null) - addParameter("templateCssPath", findString(templateCssPath)); - if (beforeSelectTabNotifyTopics!= null) - addParameter("beforeSelectTabNotifyTopics", findString(beforeSelectTabNotifyTopics)); - if (afterSelectTabNotifyTopics!= null) - addParameter("afterSelectTabNotifyTopics", findString(afterSelectTabNotifyTopics)); - if (disabledTabCssClass!= null) - addParameter("disabledTabCssClass", findString(disabledTabCssClass)); - if(useSelectedTabCookie != null) { - addParameter("useSelectedTabCookie", findString(useSelectedTabCookie)); - } - - // generate a random ID if not explicitly set and not parsing the content - Boolean parseContent = (Boolean)stack.getContext().get(Head.PARSE_CONTENT); - boolean generateId = (parseContent != null ? !parseContent : true); - - addParameter("pushId", generateId); - if ((this.id == null || this.id.length() == 0) && generateId) { - // resolves Math.abs(Integer.MIN_VALUE) issue reported by FindBugs - // http://findbugs.sourceforge.net/bugDescriptions.html#RV_ABSOLUTE_VALUE_OF_RANDOM_INT - int nextInt = RANDOM.nextInt(); - nextInt = nextInt == Integer.MIN_VALUE ? Integer.MAX_VALUE : Math.abs(nextInt); - this.id = "widget_" + String.valueOf(nextInt); - addParameter("id", this.id); - } - } - - @Override - @StrutsTagSkipInheritance - public void setTheme(String theme) { - super.setTheme(theme); - } - - @Override - public String getTheme() { - return "ajax"; - } - - public String getDefaultOpenTemplate() { - return TEMPLATE; - } - - protected String getDefaultTemplate() { - return TEMPLATE_CLOSE; - } - - public String getComponentName() { - return COMPONENT_NAME; - } - - @StrutsTagAttribute(description="The id to assign to the component.", required=true) - public void setId(String id) { - // This is required to override tld generation attributes to required=true - super.setId(id); - } - - - @StrutsTagAttribute(description=" The id of the tab that will be selected by default") - public void setSelectedTab(String selectedTab) { - this.selectedTab = selectedTab; - } - - @StrutsTagAttribute(description="Deprecated. Use 'closable' on each div(tab)") - public void setCloseButton(String closeButton) { - this.closeButton = closeButton; - } - - @StrutsTagAttribute(description="If doLayout is false, the tab container's height equals the height of the currently selected tab", type="Boolean", defaultValue="false") - public void setDoLayout(String doLayout) { - this.doLayout = doLayout; - } - - @StrutsTagAttribute(description="Template css path") - public void setTemplateCssPath(String templateCssPath) { - this.templateCssPath = templateCssPath; - } - - - @StrutsTagAttribute(description="Comma separated list of topics to be published when a tab is clicked on (before it is selected)" + - "The tab container widget will be passed as the first argument to the topic. The second parameter is the tab widget." + - "The event can be cancelled setting to 'true' the 'cancel' property " + - "of the third parameter passed to the topics.") - public void setBeforeSelectTabNotifyTopics(String selectedTabNotifyTopics) { - this.beforeSelectTabNotifyTopics = selectedTabNotifyTopics; - } - - @StrutsTagAttribute(description="Comma separated list of topics to be published when a tab is clicked on (after it is selected)." + - "The tab container widget will be passed as the first argument to the topic. The second parameter is the tab widget.") - public void setAfterSelectTabNotifyTopics(String afterSelectTabNotifyTopics) { - this.afterSelectTabNotifyTopics = afterSelectTabNotifyTopics; - } - - @StrutsTagAttribute(description="Css class to be applied to the tab button of disabled tabs", defaultValue="strutsDisabledTab") - public void setDisabledTabCssClass(String disabledTabCssClass) { - this.disabledTabCssClass = disabledTabCssClass; - } - - @StrutsTagAttribute(required = false, defaultValue = "false", description = "If set to true, the id of the last selected " + - "tab will be stored in cookie. If the view is rendered, it will be tried to read this cookie and activate " + - "the corresponding tab on success, unless overridden by the selectedTab attribute. The cookie name is \"Struts2TabbedPanel_selectedTab_\"+id.") - public void setUseSelectedTabCookie( String useSelectedTabCookie ) { - this.useSelectedTabCookie = useSelectedTabCookie; - } -} diff --git a/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/TextArea.java b/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/TextArea.java deleted file mode 100644 index c61dd70a4..000000000 --- a/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/TextArea.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * $Id$ - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.struts2.dojo.components; - -import java.util.Random; - -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; - -import org.apache.struts2.views.annotations.StrutsTag; - -import com.opensymphony.xwork2.util.ValueStack; - -/** - * - * Render Dojo Editor2 widget - * - * - */ -@StrutsTag(name="textarea", tldTagClass="org.apache.struts2.dojo.views.jsp.ui.TextareaTag", description="Renders Dojo Editor2 widget") -public class TextArea extends org.apache.struts2.components.TextArea { - private final static transient Random RANDOM = new Random(); - - public TextArea(ValueStack stack, HttpServletRequest request, - HttpServletResponse response) { - super(stack, request, response); - } - - public void evaluateExtraParams() { - super.evaluateExtraParams(); - - // generate a random ID if not explicitly set and not parsing the content - Boolean parseContent = (Boolean)stack.getContext().get(Head.PARSE_CONTENT); - boolean generateId = (parseContent != null ? !parseContent : true); - - addParameter("pushId", generateId); - if ((this.id == null || this.id.length() == 0) && generateId) { - // resolves Math.abs(Integer.MIN_VALUE) issue reported by FindBugs - // http://findbugs.sourceforge.net/bugDescriptions.html#RV_ABSOLUTE_VALUE_OF_RANDOM_INT - int nextInt = RANDOM.nextInt(); - nextInt = nextInt == Integer.MIN_VALUE ? Integer.MAX_VALUE : Math.abs(nextInt); - this.id = "widget_" + String.valueOf(nextInt); - addParameter("id", this.id); - } - } - - @Override - public String getTheme() { - return "ajax"; - } -} diff --git a/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Tree.java b/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Tree.java deleted file mode 100644 index 123a5c000..000000000 --- a/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Tree.java +++ /dev/null @@ -1,551 +0,0 @@ -/* - * $Id$ - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.struts2.dojo.components; - -import java.io.Writer; -import java.util.ArrayList; -import java.util.List; -import java.util.Random; - -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; - -import org.apache.struts2.components.ClosingUIBean; -import org.apache.struts2.views.annotations.StrutsTag; -import org.apache.struts2.views.annotations.StrutsTagAttribute; -import org.apache.struts2.views.annotations.StrutsTagSkipInheritance; - -import com.opensymphony.xwork2.util.ValueStack; - -/** - * - * - * Renders a tree widget with AJAX support. - * - * The "id "attribute is normally specified(recommended), such that it could be looked up using - * javascript if necessary. The "id" attribute is required if the "selectedNotifyTopic" or the - * "href" attributes are going to be used. - * - * - * - * - * <s:tree id="..." label="..."> - * <s:treenode id="..." label="..." /> - * <s:treenode id="..." label="..."> - * <s:treenode id="..." label="..." /> - * <s:treenode id="..." label="..." /> - * </s:treenode> - * <s:treenode id="..." label="..." /> - * </s:tree> - * - * - * - * <s:tree - * id="..." - * rootNode="..." - * nodeIdProperty="..." - * nodeTitleProperty="..." - * childCollectionProperty="..." /> - * - * - * - * <s:url id="nodesUrl" namespace="/nodecorate" action="getNodes" /> - * <div style="float:left; margin-right: 50px;"> - * <sx:tree id="tree" href="%{#nodesUrl}" /> - * </div> - * - * On this example the url specified on the "href" attibute will be called to load - * the elements on the root. The response is expected to be a JSON array of objects like: - * [ - * { - * label: "Node 1", - * hasChildren: false, - * id: "Node1" - * }, - * { - * label: "Node 2", - * hasChildren: true, - * id: "Node2" - * }, - * ] - * - * "label" is the text that will be displayed for the node. "hasChildren" marks the node has - * having children or not (if true, a plus icon will be assigned to the node so it can be - * expanded). The "id" attribute will be used to load the children of the node, when the node - * is expanded. When a node is expanded a request will be made to the url in the "href" attribute - * and the node's "id" will be passed in the parameter "nodeId". - * - * The children collection for a node will be loaded only once, to reload the children of a - * node, use the "reload()" function of the treenode widget. To reload the children nodes of "Node1" - * from the example above use the following javascript: - * - * dojo.widget.byId("Node1").reload(); - * - */ -@StrutsTag(name="tree", tldTagClass="org.apache.struts2.dojo.views.jsp.ui.TreeTag", description="Render a tree widget.") -public class Tree extends ClosingUIBean { - - private static final String TEMPLATE = "tree-close"; - private static final String OPEN_TEMPLATE = "tree"; - private final static transient Random RANDOM = new Random(); - - protected String toggle; - protected String selectedNotifyTopics; - protected String expandedNotifyTopics; - protected String collapsedNotifyTopics; - protected String rootNodeAttr; - protected String childCollectionProperty; - protected String nodeTitleProperty; - protected String nodeIdProperty; - protected String showRootGrid; - - protected String showGrid; - protected String blankIconSrc; - protected String gridIconSrcL; - protected String gridIconSrcV; - protected String gridIconSrcP; - protected String gridIconSrcC; - protected String gridIconSrcX; - protected String gridIconSrcY; - protected String expandIconSrcPlus; - protected String expandIconSrcMinus; - protected String iconWidth; - protected String iconHeight; - protected String toggleDuration; - protected String templateCssPath; - protected String href; - protected String errorNotifyTopics; - - private List- * - * - * <-- Creating tree statically using hard-coded data. --> - * <s:tree id="..." label="..."> - * <s:treenode id="..." label="..." /> - * <s:treenode id="..." label="..."> - * <s:treenode id="..." label="..." /> - * <s:treenode id="..." label="..." /> - * </s:treenode> - * <s:treenode id="..." label="..." /> - * </s:tree> - * - * <-- Creating tree dynamically using data from backing action. --> - * <s:tree - * id="..." - * rootNode="..." - * nodeIdProperty="..." - * nodeTitleProperty="..." - * childCollectionProperty="..." /> - * - * - *- * - */ -@StrutsTag(name="treenode", tldTagClass="org.apache.struts2.dojo.views.jsp.ui.TreeNodeTag", description="Render a tree node within a tree widget.") -public class TreeNode extends ClosingUIBean { - private static final String TEMPLATE = "treenode-close"; - private static final String OPEN_TEMPLATE = "treenode"; - private final static transient Random RANDOM = new Random(); - - public TreeNode(ValueStack stack, HttpServletRequest request, HttpServletResponse response) { - super(stack, request, response); - } - - @Override - @StrutsTagSkipInheritance - public void setTheme(String theme) { - super.setTheme(theme); - } - - @Override - public String getTheme() { - return "ajax"; - } - - public String getDefaultOpenTemplate() { - return OPEN_TEMPLATE; - } - - protected String getDefaultTemplate() { - return TEMPLATE; - } - - protected void evaluateExtraParams() { - super.evaluateExtraParams(); - - // generate a random ID if not explicitly set and not parsing the content - Boolean parseContent = (Boolean)stack.getContext().get(Head.PARSE_CONTENT); - boolean generateId = (parseContent != null ? !parseContent : true); - - addParameter("pushId", generateId); - if ((this.id == null || this.id.length() == 0) && generateId) { - // resolves Math.abs(Integer.MIN_VALUE) issue reported by FindBugs - // http://findbugs.sourceforge.net/bugDescriptions.html#RV_ABSOLUTE_VALUE_OF_RANDOM_INT - int nextInt = RANDOM.nextInt(); - nextInt = nextInt == Integer.MIN_VALUE ? Integer.MAX_VALUE : Math.abs(nextInt); - this.id = "widget_" + String.valueOf(nextInt); - addParameter("id", this.id); - } - - Tree parentTree = (Tree) findAncestor(Tree.class); - parentTree.addChildrenId(this.id); - } - - @StrutsTagAttribute(description="Label expression used for rendering tree node label.", required=true) - public void setLabel(String label) { - super.setLabel(label); - } - - @StrutsTagAttribute(description="The css class to use for element") - public void setCssClass(String cssClass) { - super.setCssClass(cssClass); - } - - @StrutsTagAttribute(description="The css style to use for element") - public void setCssStyle(String cssStyle) { - super.setCssStyle(cssStyle); - } - - @StrutsTagAttribute(description="The id to use for the element") - public void setId(String id) { - super.setId(id); - } - - @StrutsTagAttribute(description="The name to set for element") - public void setName(String name) { - super.setName(name); - } -} diff --git a/plugins/dojo/src/main/java/org/apache/struts2/dojo/views/DojoTagLibrary.java b/plugins/dojo/src/main/java/org/apache/struts2/dojo/views/DojoTagLibrary.java deleted file mode 100644 index a8439bf61..000000000 --- a/plugins/dojo/src/main/java/org/apache/struts2/dojo/views/DojoTagLibrary.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * $Id$ - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.struts2.dojo.views; - -import java.util.Arrays; -import java.util.List; - -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; - -import org.apache.struts2.dojo.views.freemarker.tags.DojoModels; -import org.apache.struts2.dojo.views.velocity.components.AnchorDirective; -import org.apache.struts2.dojo.views.velocity.components.AutocompleterDirective; -import org.apache.struts2.dojo.views.velocity.components.BindDirective; -import org.apache.struts2.dojo.views.velocity.components.DateTimePickerDirective; -import org.apache.struts2.dojo.views.velocity.components.DivDirective; -import org.apache.struts2.dojo.views.velocity.components.HeadDirective; -import org.apache.struts2.dojo.views.velocity.components.SubmitDirective; -import org.apache.struts2.dojo.views.velocity.components.TabbedPanelDirective; -import org.apache.struts2.dojo.views.velocity.components.TextAreaDirective; -import org.apache.struts2.dojo.views.velocity.components.TreeDirective; -import org.apache.struts2.dojo.views.velocity.components.TreeNodeDirective; -import org.apache.struts2.views.TagLibraryDirectiveProvider; - -import com.opensymphony.xwork2.util.ValueStack; -import org.apache.struts2.views.TagLibraryModelProvider; - -public class DojoTagLibrary implements TagLibraryDirectiveProvider, TagLibraryModelProvider { - - public Object getModels(ValueStack stack, HttpServletRequest req, HttpServletResponse res) { - - return new DojoModels(stack, req, res); - } - - public List
TreeDirective
- * @see Tree
- */
-public class TreeDirective extends DojoAbstractDirective {
- public String getBeanName() {
- return "tree";
- }
-
- protected Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
- return new Tree(stack, req, res);
- }
-
- public int getType() {
- return BLOCK;
- }
-}
diff --git a/plugins/dojo/src/main/java/org/apache/struts2/dojo/views/velocity/components/TreeNodeDirective.java b/plugins/dojo/src/main/java/org/apache/struts2/dojo/views/velocity/components/TreeNodeDirective.java
deleted file mode 100644
index 3a52bd332..000000000
--- a/plugins/dojo/src/main/java/org/apache/struts2/dojo/views/velocity/components/TreeNodeDirective.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * $Id$
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.struts2.dojo.views.velocity.components;
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.apache.struts2.components.Component;
-import org.apache.struts2.dojo.components.TreeNode;
-
-import com.opensymphony.xwork2.util.ValueStack;
-
-/**
- * TreeNodeDirective
- * @see TreeNode
- */
-public class TreeNodeDirective extends DojoAbstractDirective {
- public String getBeanName() {
- return "treenode";
- }
-
- protected Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
- return new TreeNode(stack, req, res);
- }
-
- public int getType() {
- return BLOCK;
- }
-}
-
diff --git a/plugins/dojo/src/main/resources/META-INF/README.txt b/plugins/dojo/src/main/resources/META-INF/README.txt
deleted file mode 100644
index 71cb1b7ed..000000000
--- a/plugins/dojo/src/main/resources/META-INF/README.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-TLD file is generated inside META-INF after compilation.
-If META-INF is empty, Maven will not copy it to the "target/classes" folder.
-Please do not remove META-INF, or this file.
\ No newline at end of file
diff --git a/plugins/dojo/src/main/resources/NOTICE.txt b/plugins/dojo/src/main/resources/NOTICE.txt
deleted file mode 100644
index 740b77fe3..000000000
--- a/plugins/dojo/src/main/resources/NOTICE.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-Apache Struts
-Copyright 2000-2011 The Apache Software Foundation
-
-This product includes software developed by
-The Apache Software Foundation (http://www.apache.org/).
-Dojo (http://dojotoolkit.org/).
diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/TabbedPanel.css b/plugins/dojo/src/main/resources/org/apache/struts2/static/TabbedPanel.css
deleted file mode 100644
index e93a8e861..000000000
--- a/plugins/dojo/src/main/resources/org/apache/struts2/static/TabbedPanel.css
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * $Id$
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-.strutsDisabledTab div span {
- font-style: italic;
- color: #7986A1
-}
\ No newline at end of file
diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/LICENSE b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/LICENSE
deleted file mode 100644
index 225d20c79..000000000
--- a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/LICENSE
+++ /dev/null
@@ -1,195 +0,0 @@
-Dojo is availble under *either* the terms of the modified BSD license *or* the
-Academic Free License version 2.1. As a recipient of Dojo, you may choose which
-license to receive this code under (except as noted in per-module LICENSE
-files). Some modules may not be the copyright of the Dojo Foundation. These
-modules contain explicit declarations of copyright in both the LICENSE files in
-the directories in which they reside and in the code itself. No external
-contributions are allowed under licenses which are fundamentally incompatible
-with the AFL or BSD licenses that Dojo is distributed under.
-
-The text of the AFL and BSD licenses is reproduced below.
-
--------------------------------------------------------------------------------
-The "New" BSD License:
-**********************
-
-Copyright (c) 2005-2006, The Dojo Foundation
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of the Dojo Foundation nor the names of its contributors
- may be used to endorse or promote products derived from this software
- without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
-FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
--------------------------------------------------------------------------------
-The Academic Free License, v. 2.1:
-**********************************
-
-This Academic Free License (the "License") applies to any original work of
-authorship (the "Original Work") whose owner (the "Licensor") has placed the
-following notice immediately following the copyright notice for the Original
-Work:
-
-Licensed under the Academic Free License version 2.1
-
-1) Grant of Copyright License. Licensor hereby grants You a world-wide,
-royalty-free, non-exclusive, perpetual, sublicenseable license to do the
-following:
-
-a) to reproduce the Original Work in copies;
-
-b) to prepare derivative works ("Derivative Works") based upon the Original
-Work;
-
-c) to distribute copies of the Original Work and Derivative Works to the
-public;
-
-d) to perform the Original Work publicly; and
-
-e) to display the Original Work publicly.
-
-2) Grant of Patent License. Licensor hereby grants You a world-wide,
-royalty-free, non-exclusive, perpetual, sublicenseable license, under patent
-claims owned or controlled by the Licensor that are embodied in the Original
-Work as furnished by the Licensor, to make, use, sell and offer for sale the
-Original Work and Derivative Works.
-
-3) Grant of Source Code License. The term "Source Code" means the preferred
-form of the Original Work for making modifications to it and all available
-documentation describing how to modify the Original Work. Licensor hereby
-agrees to provide a machine-readable copy of the Source Code of the Original
-Work along with each copy of the Original Work that Licensor distributes.
-Licensor reserves the right to satisfy this obligation by placing a
-machine-readable copy of the Source Code in an information repository
-reasonably calculated to permit inexpensive and convenient access by You for as
-long as Licensor continues to distribute the Original Work, and by publishing
-the address of that information repository in a notice immediately following
-the copyright notice that applies to the Original Work.
-
-4) Exclusions From License Grant. Neither the names of Licensor, nor the names
-of any contributors to the Original Work, nor any of their trademarks or
-service marks, may be used to endorse or promote products derived from this
-Original Work without express prior written permission of the Licensor. Nothing
-in this License shall be deemed to grant any rights to trademarks, copyrights,
-patents, trade secrets or any other intellectual property of Licensor except as
-expressly stated herein. No patent license is granted to make, use, sell or
-offer to sell embodiments of any patent claims other than the licensed claims
-defined in Section 2. No right is granted to the trademarks of Licensor even if
-such marks are included in the Original Work. Nothing in this License shall be
-interpreted to prohibit Licensor from licensing under different terms from this
-License any Original Work that Licensor otherwise would have a right to
-license.
-
-5) This section intentionally omitted.
-
-6) Attribution Rights. You must retain, in the Source Code of any Derivative
-Works that You create, all copyright, patent or trademark notices from the
-Source Code of the Original Work, as well as any notices of licensing and any
-descriptive text identified therein as an "Attribution Notice." You must cause
-the Source Code for any Derivative Works that You create to carry a prominent
-Attribution Notice reasonably calculated to inform recipients that You have
-modified the Original Work.
-
-7) Warranty of Provenance and Disclaimer of Warranty. Licensor warrants that
-the copyright in and to the Original Work and the patent rights granted herein
-by Licensor are owned by the Licensor or are sublicensed to You under the terms
-of this License with the permission of the contributor(s) of those copyrights
-and patent rights. Except as expressly stated in the immediately proceeding
-sentence, the Original Work is provided under this License on an "AS IS" BASIS
-and WITHOUT WARRANTY, either express or implied, including, without limitation,
-the warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
-PURPOSE. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL WORK IS WITH YOU.
-This DISCLAIMER OF WARRANTY constitutes an essential part of this License. No
-license to Original Work is granted hereunder except under this disclaimer.
-
-8) Limitation of Liability. Under no circumstances and under no legal theory,
-whether in tort (including negligence), contract, or otherwise, shall the
-Licensor be liable to any person for any direct, indirect, special, incidental,
-or consequential damages of any character arising as a result of this License
-or the use of the Original Work including, without limitation, damages for loss
-of goodwill, work stoppage, computer failure or malfunction, or any and all
-other commercial damages or losses. This limitation of liability shall not
-apply to liability for death or personal injury resulting from Licensor's
-negligence to the extent applicable law prohibits such limitation. Some
-jurisdictions do not allow the exclusion or limitation of incidental or
-consequential damages, so this exclusion and limitation may not apply to You.
-
-9) Acceptance and Termination. If You distribute copies of the Original Work or
-a Derivative Work, You must make a reasonable effort under the circumstances to
-obtain the express assent of recipients to the terms of this License. Nothing
-else but this License (or another written agreement between Licensor and You)
-grants You permission to create Derivative Works based upon the Original Work
-or to exercise any of the rights granted in Section 1 herein, and any attempt
-to do so except under the terms of this License (or another written agreement
-between Licensor and You) is expressly prohibited by U.S. copyright law, the
-equivalent laws of other countries, and by international treaty. Therefore, by
-exercising any of the rights granted to You in Section 1 herein, You indicate
-Your acceptance of this License and all of its terms and conditions.
-
-10) Termination for Patent Action. This License shall terminate automatically
-and You may no longer exercise any of the rights granted to You by this License
-as of the date You commence an action, including a cross-claim or counterclaim,
-against Licensor or any licensee alleging that the Original Work infringes a
-patent. This termination provision shall not apply for an action alleging
-patent infringement by combinations of the Original Work with other software or
-hardware.
-
-11) Jurisdiction, Venue and Governing Law. Any action or suit relating to this
-License may be brought only in the courts of a jurisdiction wherein the
-Licensor resides or in which Licensor conducts its primary business, and under
-the laws of that jurisdiction excluding its conflict-of-law provisions. The
-application of the United Nations Convention on Contracts for the International
-Sale of Goods is expressly excluded. Any use of the Original Work outside the
-scope of this License or after its termination shall be subject to the
-requirements and penalties of the U.S. Copyright Act, 17 U.S.C. § 101 et
-seq., the equivalent laws of other countries, and international treaty. This
-section shall survive the termination of this License.
-
-12) Attorneys Fees. In any action to enforce the terms of this License or
-seeking damages relating thereto, the prevailing party shall be entitled to
-recover its costs and expenses, including, without limitation, reasonable
-attorneys' fees and costs incurred in connection with such action, including
-any appeal of such action. This section shall survive the termination of this
-License.
-
-13) Miscellaneous. This License represents the complete agreement concerning
-the subject matter hereof. If any provision of this License is held to be
-unenforceable, such provision shall be reformed only to the extent necessary to
-make it enforceable.
-
-14) Definition of "You" in This License. "You" throughout this License, whether
-in upper or lower case, means an individual or a legal entity exercising rights
-under, and complying with all of the terms of, this License. For legal
-entities, "You" includes any entity that controls, is controlled by, or is
-under common control with you. For purposes of this definition, "control" means
-(i) the power, direct or indirect, to cause the direction or management of such
-entity, whether by contract or otherwise, or (ii) ownership of fifty percent
-(50%) or more of the outstanding shares, or (iii) beneficial ownership of such
-entity.
-
-15) Right to Use. You may use the Original Work in all ways not otherwise
-restricted or conditioned by this License or by law, and Licensor promises not
-to interfere with or be responsible for such uses by You.
-
-This license is Copyright (C) 2003-2004 Lawrence E. Rosen. All rights reserved.
-Permission is hereby granted to copy and distribute this license without
-modification. This license may not be modified without the express written
-permission of its copyright owner.
diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/README b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/README
deleted file mode 100644
index 2bb84eaf2..000000000
--- a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/README
+++ /dev/null
@@ -1,176 +0,0 @@
-The Dojo Toolkit
-----------------
-
-Dojo is a portable JavaScript toolkit for web application developers and
-JavaScript professionals. Dojo solves real-world problems by providing powerful
-abstractions and solid, tested implementations.
-
-Getting Started
----------------
-
-To use Dojo in your application, download one of the pre-built editions from the
-Dojo website, http://dojotoolkit.org. Once you have downloaded the file you will
-need to unzip the archive in your website root. At a minimum, you will need to
-extract:
-
- src/ (folder)
- dojo.js
- iframe_history.html
-
-To begin using dojo, include dojo in your pages by using:
-
-
-
-Depending on the edition that you have downloaded, this base dojo.js file may or
-may not include the modules you wish to use in your application. The files which
-have been "baked in" to the dojo.js that is part of your distribution are listed
-in the file build.txt that is part of the top-level directory that is created
-when you unpack the archive. To ensure modules you wish to use are available,
-use dojo.require() to request them. A very rich application might include:
-
-
-
-
-Note that only those modules which are *not* already "baked in" to dojo.js by
-the edition's build process are requested by dojo.require(). This helps make
-your application faster without forcing you to use a build tool while in
-development. See "Building Dojo" and "Working From Source" for more details.
-
-
-Compatibility
--------------
-
-In addition to it's suite of unit-tests for core system components, Dojo has
-been tested on almost every modern browser, including:
-
- - IE 5.5+
- - Mozilla 1.5+, Firefox 1.0+
- - Safari 1.3.9+
- - Konqueror 3.4+
- - Opera 8.5+
-
-Note that some widgets and features may not perform exactly the same on every
-browser due to browser implementation differences.
-
-For those looking to use Dojo in non-browser environments, please see "Working
-From Source".
-
-
-Documentation and Getting Help
-------------------------------
-
-Articles outlining major Dojo systems are linked from:
-
- http://dojotoolkit.org/docs/
-
-Toolkit APIs are listed in outline form at:
-
- http://dojotoolkit.org/docs/apis/
-
-And documented in full at:
-
- http://manual.dojotoolkit.org/
-
-The project also maintains a JotSpot Wiki at:
-
- http://dojo.jot.com/
-
-A FAQ has been extracted from mailing list traffic:
-
- http://dojo.jot.com/FAQ
-
-And the main Dojo user mailing list is archived and made searchable at:
-
- http://news.gmane.org/gmane.comp.web.dojo.user/
-
-You can sign up for this list, which is a great place to ask questions, at:
-
- http://dojotoolkit.org/mailman/listinfo/dojo-interest
-
-The Dojo developers also tend to hang out in IRC and help people with Dojo
-problems. You're most likely to find them at:
-
- irc.freenode.net #dojo
-
-Note that 3PM Wed PST in #dojo-meeting is reserved for a weekly meeting between
-project developers, although anyone is welcome to participate.
-
-
-Working From Source
--------------------
-
-The core of Dojo is a powerful package system that allows developers to optimize
-Dojo for deployment while using *exactly the same* application code in
-development. Therefore, working from source is almost exactly like working from
-a pre-built edition. Pre-built editions are significantly faster to load than
-working from source, but are not as flexible when in development.
-
-There are multiple ways to get the source. Nightly snapshots of the Dojo source
-repository are available at:
-
- http://archive.dojotoolkit.org/nightly.tgz
-
-Anonymous Subversion access is also available:
-
- %> svn co http://svn.dojotoolkit.org/dojo/trunk/ dojo
-
-Each of these sources will include some extra directories not included in the
-pre-packaged editions, including command-line tests and build tools for
-constructing your own packages.
-
-Running the command-line unit test suite requires Ant 1.6. If it is installed
-and in your path, you can run the tests using:
-
- %> cd buildscripts
- %> ant test
-
-The command-line test harness makes use of Rhino, a JavaScript interpreter
-written in Java. Once you have a copy of Dojo's source tree, you have a copy of
-Rhino. From the root directory, you can use Rhino interactively to load Dojo:
-
- %> java -jar buildscripts/lib/js.jar
- Rhino 1.5 release 3 2002 01 27
- js> load("dojo.js");
- js> print(dojo);
- [object Object]
- js> quit();
-
-This environment is wonderful for testing raw JavaScript functionality in, or
-even for scripting your system. Since Rhino has full access to anything in
-Java's classpath, the sky is the limit!
-
-Building Dojo
--------------
-
-Dojo requires Ant 1.6.x in order to build correctly. While using Dojo from
-source does *NOT* require that you make a build, speeding up your application by
-constructing a custom profile build does.
-
-Once you have Ant and a source snapshot of Dojo, you can make your own profile
-build ("edition") which includes only those modules your application uses by
-customizing one of the files in:
-
- [dojo]/buildscripts/profiles/
-
-These files are named *.profile.js and each one contains a list of modules to
-include in a build. If we created a new profile called "test.profile.js", we
-could then make a profile build using it by doing:
-
- %> cd buildscripts
- %> ant -Dprofile=test -Ddocless=true release intern-strings
-
-If the build is successful, your newly minted and compressed profile build will
-be placed in [dojo]/release/dojo/
-
--------------------------------------------------------------------------------
-Copyright (c) 2004-2006, The Dojo Foundation, All Rights Reserved
-
-vim:ts=4:et:tw=80:shiftwidth=4:
diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/Storage_version6.swf b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/Storage_version6.swf
deleted file mode 100644
index c97b14c9210ebb365c18d66473793066a9862129..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 1963
zcmV;c2UPe&S5pR^5dZ*q+N@YhZ`;@vJ|wTCE8B4r#|dMPoWzqj6U}6lWLmU9I?2TK
zYt$yBAWgdHq695n*-R)>ASoy6rn8%@ycEy^UG)#Ni$OOThis file is used in Dojo's back/fwd button management.
- - diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_ROOT.js b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_ROOT.js deleted file mode 100644 index 77aa210f9..000000000 --- a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_ROOT.js +++ /dev/null @@ -1,11 +0,0 @@ -/* - Copyright (c) 2004-2006, The Dojo Foundation - All Rights Reserved. - - Licensed under the Academic Free License version 2.1 or above OR the - modified BSD license. For more information on Dojo licensing, see: - - http://dojotoolkit.org/community/licensing.shtml -*/ - -dojo.provide("nls.dojo_ROOT");dojo.provide("dojo.i18n.calendar.nls.gregorian");dojo.i18n.calendar.nls.gregorian._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorian.ROOT");dojo.i18n.calendar.nls.gregorian.ROOT={"field-weekday":"Day of the Week","dateFormat-medium":"yyyy MMM d","field-second":"Second","field-week":"Week","pm":"PM","timeFormat-full":"HH:mm:ss z","months-standAlone-narrow":["1","2","3","4","5","6","7","8","9","10","11","12"],"am":"AM","days-standAlone-narrow":["1","2","3","4","5","6","7"],"field-year":"Year","eras":["BCE","CE"],"field-minute":"Minute","timeFormat-medium":"HH:mm:ss","field-hour":"Hour","dateFormat-long":"yyyy MMMM d","field-day":"Day","field-dayperiod":"Dayperiod","field-month":"Month","dateFormat-short":"yy/MM/dd","months-format-wide":["1","2","3","4","5","6","7","8","9","10","11","12"],"field-era":"Era","timeFormat-short":"HH:mm","months-format-abbr":["1","2","3","4","5","6","7","8","9","10","11","12"],"timeFormat-long":"HH:mm:ss z","days-format-wide":["1","2","3","4","5","6","7"],"dateFormat-full":"EEEE, yyyy MMMM dd","field-zone":"Zone","days-format-abbr":["1","2","3","4","5","6","7"]};dojo.provide("dojo.i18n.calendar.nls.gregorianExtras");dojo.i18n.calendar.nls.gregorianExtras._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorianExtras.ROOT");dojo.i18n.calendar.nls.gregorianExtras.ROOT={"dateFormat-yearOnly":"yyyy"};dojo.provide("dojo.i18n.calendar.nls.gregorian");dojo.i18n.calendar.nls.gregorian._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorian.ROOT");dojo.i18n.calendar.nls.gregorian.ROOT={"field-weekday":"Day of the Week","dateFormat-medium":"yyyy MMM d","field-second":"Second","field-week":"Week","pm":"PM","timeFormat-full":"HH:mm:ss z","months-standAlone-narrow":["1","2","3","4","5","6","7","8","9","10","11","12"],"am":"AM","days-standAlone-narrow":["1","2","3","4","5","6","7"],"field-year":"Year","eras":["BCE","CE"],"field-minute":"Minute","timeFormat-medium":"HH:mm:ss","field-hour":"Hour","dateFormat-long":"yyyy MMMM d","field-day":"Day","field-dayperiod":"Dayperiod","field-month":"Month","dateFormat-short":"yy/MM/dd","months-format-wide":["1","2","3","4","5","6","7","8","9","10","11","12"],"field-era":"Era","timeFormat-short":"HH:mm","months-format-abbr":["1","2","3","4","5","6","7","8","9","10","11","12"],"timeFormat-long":"HH:mm:ss z","days-format-wide":["1","2","3","4","5","6","7"],"dateFormat-full":"EEEE, yyyy MMMM dd","field-zone":"Zone","days-format-abbr":["1","2","3","4","5","6","7"]};dojo.provide("dojo.widget.nls.TimePicker");dojo.widget.nls.TimePicker._built=true;dojo.provide("dojo.widget.nls.TimePicker.ROOT");dojo.widget.nls.TimePicker.ROOT={"any":"any"};dojo.provide("dojo.widget.nls.DropdownTimePicker");dojo.widget.nls.DropdownTimePicker._built=true;dojo.provide("dojo.widget.nls.DropdownTimePicker.ROOT");dojo.widget.nls.DropdownTimePicker.ROOT={"selectTime":"Select time"};dojo.provide("dojo.widget.nls.DropdownDatePicker");dojo.widget.nls.DropdownDatePicker._built=true;dojo.provide("dojo.widget.nls.DropdownDatePicker.ROOT");dojo.widget.nls.DropdownDatePicker.ROOT={"selectDate":"Select a date"}; \ No newline at end of file diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_de-de.js b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_de-de.js deleted file mode 100644 index 41b5bacea..000000000 --- a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_de-de.js +++ /dev/null @@ -1,11 +0,0 @@ -/* - Copyright (c) 2004-2006, The Dojo Foundation - All Rights Reserved. - - Licensed under the Academic Free License version 2.1 or above OR the - modified BSD license. For more information on Dojo licensing, see: - - http://dojotoolkit.org/community/licensing.shtml -*/ - -dojo.provide("nls.dojo_de-de");dojo.provide("dojo.i18n.calendar.nls.gregorian");dojo.i18n.calendar.nls.gregorian._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorian.de_de");dojo.i18n.calendar.nls.gregorian.de_de={"field-weekday":"Wochentag","dateFormat-medium":"dd.MM.yyyy","field-second":"Sekunde","field-week":"Woche","pm":"nachm.","timeFormat-full":"H:mm' Uhr 'z","months-standAlone-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"am":"vorm.","days-standAlone-narrow":["S","M","D","M","D","F","S"],"field-year":"Jahr","eras":["v. Chr.","n. Chr."],"field-hour":"Stunde","dateFormat-long":"d. MMMM yyyy","field-day":"Tag","field-dayperiod":"Tageshälfte","field-month":"Monat","dateFormat-short":"dd.MM.yy","months-format-wide":["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],"field-era":"Epoche","months-format-abbr":["Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],"days-format-wide":["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],"dateFormat-full":"EEEE, d. MMMM yyyy","field-zone":"Zone","days-format-abbr":["So","Mo","Di","Mi","Do","Fr","Sa"],"field-minute":"Minute","timeFormat-medium":"HH:mm:ss","timeFormat-short":"HH:mm","timeFormat-long":"HH:mm:ss z"};dojo.provide("dojo.i18n.calendar.nls.gregorianExtras");dojo.i18n.calendar.nls.gregorianExtras._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorianExtras.de_de");dojo.i18n.calendar.nls.gregorianExtras.de_de={"dateFormat-yearOnly":"yyyy"};dojo.provide("dojo.i18n.calendar.nls.gregorian");dojo.i18n.calendar.nls.gregorian._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorian.de_de");dojo.i18n.calendar.nls.gregorian.de_de={"field-weekday":"Wochentag","dateFormat-medium":"dd.MM.yyyy","field-second":"Sekunde","field-week":"Woche","pm":"nachm.","timeFormat-full":"H:mm' Uhr 'z","months-standAlone-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"am":"vorm.","days-standAlone-narrow":["S","M","D","M","D","F","S"],"field-year":"Jahr","eras":["v. Chr.","n. Chr."],"field-hour":"Stunde","dateFormat-long":"d. MMMM yyyy","field-day":"Tag","field-dayperiod":"Tageshälfte","field-month":"Monat","dateFormat-short":"dd.MM.yy","months-format-wide":["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],"field-era":"Epoche","months-format-abbr":["Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],"days-format-wide":["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],"dateFormat-full":"EEEE, d. MMMM yyyy","field-zone":"Zone","days-format-abbr":["So","Mo","Di","Mi","Do","Fr","Sa"],"field-minute":"Minute","timeFormat-medium":"HH:mm:ss","timeFormat-short":"HH:mm","timeFormat-long":"HH:mm:ss z"};dojo.provide("dojo.widget.nls.TimePicker");dojo.widget.nls.TimePicker._built=true;dojo.provide("dojo.widget.nls.TimePicker.de_de");dojo.widget.nls.TimePicker.de_de={"any":"any"};dojo.provide("dojo.widget.nls.DropdownTimePicker");dojo.widget.nls.DropdownTimePicker._built=true;dojo.provide("dojo.widget.nls.DropdownTimePicker.de_de");dojo.widget.nls.DropdownTimePicker.de_de={"selectTime":"Select time"};dojo.provide("dojo.widget.nls.DropdownDatePicker");dojo.widget.nls.DropdownDatePicker._built=true;dojo.provide("dojo.widget.nls.DropdownDatePicker.de_de");dojo.widget.nls.DropdownDatePicker.de_de={"selectDate":"Select a date"}; \ No newline at end of file diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_de.js b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_de.js deleted file mode 100644 index c28095197..000000000 --- a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_de.js +++ /dev/null @@ -1,11 +0,0 @@ -/* - Copyright (c) 2004-2006, The Dojo Foundation - All Rights Reserved. - - Licensed under the Academic Free License version 2.1 or above OR the - modified BSD license. For more information on Dojo licensing, see: - - http://dojotoolkit.org/community/licensing.shtml -*/ - -dojo.provide("nls.dojo_de");dojo.provide("dojo.i18n.calendar.nls.gregorian");dojo.i18n.calendar.nls.gregorian._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorian.de");dojo.i18n.calendar.nls.gregorian.de={"field-weekday":"Wochentag","dateFormat-medium":"dd.MM.yyyy","field-second":"Sekunde","field-week":"Woche","pm":"nachm.","timeFormat-full":"H:mm' Uhr 'z","months-standAlone-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"am":"vorm.","days-standAlone-narrow":["S","M","D","M","D","F","S"],"field-year":"Jahr","eras":["v. Chr.","n. Chr."],"field-hour":"Stunde","dateFormat-long":"d. MMMM yyyy","field-day":"Tag","field-dayperiod":"Tageshälfte","field-month":"Monat","dateFormat-short":"dd.MM.yy","months-format-wide":["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],"field-era":"Epoche","months-format-abbr":["Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],"days-format-wide":["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],"dateFormat-full":"EEEE, d. MMMM yyyy","field-zone":"Zone","days-format-abbr":["So","Mo","Di","Mi","Do","Fr","Sa"],"field-minute":"Minute","timeFormat-medium":"HH:mm:ss","timeFormat-short":"HH:mm","timeFormat-long":"HH:mm:ss z"};dojo.provide("dojo.i18n.calendar.nls.gregorianExtras");dojo.i18n.calendar.nls.gregorianExtras._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorianExtras.de");dojo.i18n.calendar.nls.gregorianExtras.de={"dateFormat-yearOnly":"yyyy"};dojo.provide("dojo.i18n.calendar.nls.gregorian");dojo.i18n.calendar.nls.gregorian._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorian.de");dojo.i18n.calendar.nls.gregorian.de={"field-weekday":"Wochentag","dateFormat-medium":"dd.MM.yyyy","field-second":"Sekunde","field-week":"Woche","pm":"nachm.","timeFormat-full":"H:mm' Uhr 'z","months-standAlone-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"am":"vorm.","days-standAlone-narrow":["S","M","D","M","D","F","S"],"field-year":"Jahr","eras":["v. Chr.","n. Chr."],"field-hour":"Stunde","dateFormat-long":"d. MMMM yyyy","field-day":"Tag","field-dayperiod":"Tageshälfte","field-month":"Monat","dateFormat-short":"dd.MM.yy","months-format-wide":["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],"field-era":"Epoche","months-format-abbr":["Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],"days-format-wide":["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],"dateFormat-full":"EEEE, d. MMMM yyyy","field-zone":"Zone","days-format-abbr":["So","Mo","Di","Mi","Do","Fr","Sa"],"field-minute":"Minute","timeFormat-medium":"HH:mm:ss","timeFormat-short":"HH:mm","timeFormat-long":"HH:mm:ss z"};dojo.provide("dojo.widget.nls.TimePicker");dojo.widget.nls.TimePicker._built=true;dojo.provide("dojo.widget.nls.TimePicker.de");dojo.widget.nls.TimePicker.de={"any":"any"};dojo.provide("dojo.widget.nls.DropdownTimePicker");dojo.widget.nls.DropdownTimePicker._built=true;dojo.provide("dojo.widget.nls.DropdownTimePicker.de");dojo.widget.nls.DropdownTimePicker.de={"selectTime":"Select time"};dojo.provide("dojo.widget.nls.DropdownDatePicker");dojo.widget.nls.DropdownDatePicker._built=true;dojo.provide("dojo.widget.nls.DropdownDatePicker.de");dojo.widget.nls.DropdownDatePicker.de={"selectDate":"Select a date"}; \ No newline at end of file diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_en-gb.js b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_en-gb.js deleted file mode 100644 index 9a6bb1ca4..000000000 --- a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_en-gb.js +++ /dev/null @@ -1,11 +0,0 @@ -/* - Copyright (c) 2004-2006, The Dojo Foundation - All Rights Reserved. - - Licensed under the Academic Free License version 2.1 or above OR the - modified BSD license. For more information on Dojo licensing, see: - - http://dojotoolkit.org/community/licensing.shtml -*/ - -dojo.provide("nls.dojo_en-gb");dojo.provide("dojo.i18n.calendar.nls.gregorian");dojo.i18n.calendar.nls.gregorian._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorian.en_gb");dojo.i18n.calendar.nls.gregorian.en_gb={"months-standAlone-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"dateFormat-long":"MMMM d, yyyy","timeFormat-full":"h:mm:ss a v","eras":["BC","AD"],"timeFormat-medium":"h:mm:ss a","dateFormat-medium":"MMM d, yyyy","months-format-abbr":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"dateFormat-full":"EEEE, MMMM d, yyyy","days-format-abbr":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"timeFormat-long":"h:mm:ss a z","timeFormat-short":"h:mm a","dateFormat-short":"M/d/yy","months-format-wide":["January","February","March","April","May","June","July","August","September","October","November","December"],"days-standAlone-narrow":["S","M","T","W","T","F","S"],"days-format-wide":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"field-weekday":"Day of the Week","field-second":"Second","field-week":"Week","pm":"PM","am":"AM","field-year":"Year","field-minute":"Minute","field-hour":"Hour","field-day":"Day","field-dayperiod":"Dayperiod","field-month":"Month","field-era":"Era","field-zone":"Zone"};dojo.provide("dojo.i18n.calendar.nls.gregorianExtras");dojo.i18n.calendar.nls.gregorianExtras._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorianExtras.en_gb");dojo.i18n.calendar.nls.gregorianExtras.en_gb={"dateFormat-yearOnly":"yyyy"};dojo.provide("dojo.i18n.calendar.nls.gregorian");dojo.i18n.calendar.nls.gregorian._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorian.en_gb");dojo.i18n.calendar.nls.gregorian.en_gb={"months-standAlone-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"dateFormat-long":"MMMM d, yyyy","timeFormat-full":"h:mm:ss a v","eras":["BC","AD"],"timeFormat-medium":"h:mm:ss a","dateFormat-medium":"MMM d, yyyy","months-format-abbr":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"dateFormat-full":"EEEE, MMMM d, yyyy","days-format-abbr":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"timeFormat-long":"h:mm:ss a z","timeFormat-short":"h:mm a","dateFormat-short":"M/d/yy","months-format-wide":["January","February","March","April","May","June","July","August","September","October","November","December"],"days-standAlone-narrow":["S","M","T","W","T","F","S"],"days-format-wide":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"field-weekday":"Day of the Week","field-second":"Second","field-week":"Week","pm":"PM","am":"AM","field-year":"Year","field-minute":"Minute","field-hour":"Hour","field-day":"Day","field-dayperiod":"Dayperiod","field-month":"Month","field-era":"Era","field-zone":"Zone"};dojo.provide("dojo.widget.nls.TimePicker");dojo.widget.nls.TimePicker._built=true;dojo.provide("dojo.widget.nls.TimePicker.en_gb");dojo.widget.nls.TimePicker.en_gb={"any":"any"};dojo.provide("dojo.widget.nls.DropdownTimePicker");dojo.widget.nls.DropdownTimePicker._built=true;dojo.provide("dojo.widget.nls.DropdownTimePicker.en_gb");dojo.widget.nls.DropdownTimePicker.en_gb={"selectTime":"Select time"};dojo.provide("dojo.widget.nls.DropdownDatePicker");dojo.widget.nls.DropdownDatePicker._built=true;dojo.provide("dojo.widget.nls.DropdownDatePicker.en_gb");dojo.widget.nls.DropdownDatePicker.en_gb={"selectDate":"Select a date"}; \ No newline at end of file diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_en-us.js b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_en-us.js deleted file mode 100644 index 226333d97..000000000 --- a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_en-us.js +++ /dev/null @@ -1,11 +0,0 @@ -/* - Copyright (c) 2004-2006, The Dojo Foundation - All Rights Reserved. - - Licensed under the Academic Free License version 2.1 or above OR the - modified BSD license. For more information on Dojo licensing, see: - - http://dojotoolkit.org/community/licensing.shtml -*/ - -dojo.provide("nls.dojo_en-us");dojo.provide("dojo.i18n.calendar.nls.gregorian");dojo.i18n.calendar.nls.gregorian._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorian.en_us");dojo.i18n.calendar.nls.gregorian.en_us={"months-standAlone-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"dateFormat-long":"MMMM d, yyyy","timeFormat-full":"h:mm:ss a v","eras":["BC","AD"],"timeFormat-medium":"h:mm:ss a","dateFormat-medium":"MMM d, yyyy","months-format-abbr":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"dateFormat-full":"EEEE, MMMM d, yyyy","days-format-abbr":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"timeFormat-long":"h:mm:ss a z","timeFormat-short":"h:mm a","dateFormat-short":"M/d/yy","months-format-wide":["January","February","March","April","May","June","July","August","September","October","November","December"],"days-standAlone-narrow":["S","M","T","W","T","F","S"],"days-format-wide":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"field-weekday":"Day of the Week","field-second":"Second","field-week":"Week","pm":"PM","am":"AM","field-year":"Year","field-minute":"Minute","field-hour":"Hour","field-day":"Day","field-dayperiod":"Dayperiod","field-month":"Month","field-era":"Era","field-zone":"Zone"};dojo.provide("dojo.i18n.calendar.nls.gregorianExtras");dojo.i18n.calendar.nls.gregorianExtras._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorianExtras.en_us");dojo.i18n.calendar.nls.gregorianExtras.en_us={"dateFormat-yearOnly":"yyyy"};dojo.provide("dojo.i18n.calendar.nls.gregorian");dojo.i18n.calendar.nls.gregorian._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorian.en_us");dojo.i18n.calendar.nls.gregorian.en_us={"months-standAlone-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"dateFormat-long":"MMMM d, yyyy","timeFormat-full":"h:mm:ss a v","eras":["BC","AD"],"timeFormat-medium":"h:mm:ss a","dateFormat-medium":"MMM d, yyyy","months-format-abbr":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"dateFormat-full":"EEEE, MMMM d, yyyy","days-format-abbr":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"timeFormat-long":"h:mm:ss a z","timeFormat-short":"h:mm a","dateFormat-short":"M/d/yy","months-format-wide":["January","February","March","April","May","June","July","August","September","October","November","December"],"days-standAlone-narrow":["S","M","T","W","T","F","S"],"days-format-wide":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"field-weekday":"Day of the Week","field-second":"Second","field-week":"Week","pm":"PM","am":"AM","field-year":"Year","field-minute":"Minute","field-hour":"Hour","field-day":"Day","field-dayperiod":"Dayperiod","field-month":"Month","field-era":"Era","field-zone":"Zone"};dojo.provide("dojo.widget.nls.TimePicker");dojo.widget.nls.TimePicker._built=true;dojo.provide("dojo.widget.nls.TimePicker.en_us");dojo.widget.nls.TimePicker.en_us={"any":"any"};dojo.provide("dojo.widget.nls.DropdownTimePicker");dojo.widget.nls.DropdownTimePicker._built=true;dojo.provide("dojo.widget.nls.DropdownTimePicker.en_us");dojo.widget.nls.DropdownTimePicker.en_us={"selectTime":"Select time"};dojo.provide("dojo.widget.nls.DropdownDatePicker");dojo.widget.nls.DropdownDatePicker._built=true;dojo.provide("dojo.widget.nls.DropdownDatePicker.en_us");dojo.widget.nls.DropdownDatePicker.en_us={"selectDate":"Select a date"}; \ No newline at end of file diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_en.js b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_en.js deleted file mode 100644 index 8a66f87b7..000000000 --- a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_en.js +++ /dev/null @@ -1,11 +0,0 @@ -/* - Copyright (c) 2004-2006, The Dojo Foundation - All Rights Reserved. - - Licensed under the Academic Free License version 2.1 or above OR the - modified BSD license. For more information on Dojo licensing, see: - - http://dojotoolkit.org/community/licensing.shtml -*/ - -dojo.provide("nls.dojo_en");dojo.provide("dojo.i18n.calendar.nls.gregorian");dojo.i18n.calendar.nls.gregorian._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorian.en");dojo.i18n.calendar.nls.gregorian.en={"months-standAlone-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"dateFormat-long":"MMMM d, yyyy","timeFormat-full":"h:mm:ss a v","eras":["BC","AD"],"timeFormat-medium":"h:mm:ss a","dateFormat-medium":"MMM d, yyyy","months-format-abbr":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"dateFormat-full":"EEEE, MMMM d, yyyy","days-format-abbr":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"timeFormat-long":"h:mm:ss a z","timeFormat-short":"h:mm a","dateFormat-short":"M/d/yy","months-format-wide":["January","February","March","April","May","June","July","August","September","October","November","December"],"days-standAlone-narrow":["S","M","T","W","T","F","S"],"days-format-wide":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"field-weekday":"Day of the Week","field-second":"Second","field-week":"Week","pm":"PM","am":"AM","field-year":"Year","field-minute":"Minute","field-hour":"Hour","field-day":"Day","field-dayperiod":"Dayperiod","field-month":"Month","field-era":"Era","field-zone":"Zone"};dojo.provide("dojo.i18n.calendar.nls.gregorianExtras");dojo.i18n.calendar.nls.gregorianExtras._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorianExtras.en");dojo.i18n.calendar.nls.gregorianExtras.en={"dateFormat-yearOnly":"yyyy"};dojo.provide("dojo.i18n.calendar.nls.gregorian");dojo.i18n.calendar.nls.gregorian._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorian.en");dojo.i18n.calendar.nls.gregorian.en={"months-standAlone-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"dateFormat-long":"MMMM d, yyyy","timeFormat-full":"h:mm:ss a v","eras":["BC","AD"],"timeFormat-medium":"h:mm:ss a","dateFormat-medium":"MMM d, yyyy","months-format-abbr":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"dateFormat-full":"EEEE, MMMM d, yyyy","days-format-abbr":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"timeFormat-long":"h:mm:ss a z","timeFormat-short":"h:mm a","dateFormat-short":"M/d/yy","months-format-wide":["January","February","March","April","May","June","July","August","September","October","November","December"],"days-standAlone-narrow":["S","M","T","W","T","F","S"],"days-format-wide":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"field-weekday":"Day of the Week","field-second":"Second","field-week":"Week","pm":"PM","am":"AM","field-year":"Year","field-minute":"Minute","field-hour":"Hour","field-day":"Day","field-dayperiod":"Dayperiod","field-month":"Month","field-era":"Era","field-zone":"Zone"};dojo.provide("dojo.widget.nls.TimePicker");dojo.widget.nls.TimePicker._built=true;dojo.provide("dojo.widget.nls.TimePicker.en");dojo.widget.nls.TimePicker.en={"any":"any"};dojo.provide("dojo.widget.nls.DropdownTimePicker");dojo.widget.nls.DropdownTimePicker._built=true;dojo.provide("dojo.widget.nls.DropdownTimePicker.en");dojo.widget.nls.DropdownTimePicker.en={"selectTime":"Select time"};dojo.provide("dojo.widget.nls.DropdownDatePicker");dojo.widget.nls.DropdownDatePicker._built=true;dojo.provide("dojo.widget.nls.DropdownDatePicker.en");dojo.widget.nls.DropdownDatePicker.en={"selectDate":"Select a date"}; \ No newline at end of file diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_es-es.js b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_es-es.js deleted file mode 100644 index ce10c8067..000000000 --- a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_es-es.js +++ /dev/null @@ -1,11 +0,0 @@ -/* - Copyright (c) 2004-2006, The Dojo Foundation - All Rights Reserved. - - Licensed under the Academic Free License version 2.1 or above OR the - modified BSD license. For more information on Dojo licensing, see: - - http://dojotoolkit.org/community/licensing.shtml -*/ - -dojo.provide("nls.dojo_es-es");dojo.provide("dojo.i18n.calendar.nls.gregorian");dojo.i18n.calendar.nls.gregorian._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorian.es_es");dojo.i18n.calendar.nls.gregorian.es_es={"field-weekday":"dÃa de la semana","dateFormat-medium":"dd-MMM-yy","field-second":"segundo","field-week":"semana","pm":"p.m.","timeFormat-full":"HH'H'mm''ss\" z","months-standAlone-narrow":["E","F","M","A","M","J","J","A","S","O","N","D"],"am":"a.m.","days-standAlone-narrow":["D","L","M","M","J","V","S"],"field-year":"año","eras":["a.C.","d.C."],"field-minute":"minuto","field-hour":"hora","dateFormat-long":"d' de 'MMMM' de 'yyyy","field-day":"dÃa","field-dayperiod":"periodo del dÃa","field-month":"mes","dateFormat-short":"d/MM/yy","months-format-wide":["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],"field-era":"era","months-format-abbr":["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],"days-format-wide":["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],"dateFormat-full":"EEEE d' de 'MMMM' de 'yyyy","field-zone":"zona","days-format-abbr":["dom","lun","mar","mié","jue","vie","sáb"],"timeFormat-medium":"HH:mm:ss","timeFormat-short":"HH:mm","timeFormat-long":"HH:mm:ss z"};dojo.provide("dojo.i18n.calendar.nls.gregorianExtras");dojo.i18n.calendar.nls.gregorianExtras._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorianExtras.es_es");dojo.i18n.calendar.nls.gregorianExtras.es_es={"dateFormat-yearOnly":"yyyy"};dojo.provide("dojo.i18n.calendar.nls.gregorian");dojo.i18n.calendar.nls.gregorian._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorian.es_es");dojo.i18n.calendar.nls.gregorian.es_es={"field-weekday":"dÃa de la semana","dateFormat-medium":"dd-MMM-yy","field-second":"segundo","field-week":"semana","pm":"p.m.","timeFormat-full":"HH'H'mm''ss\" z","months-standAlone-narrow":["E","F","M","A","M","J","J","A","S","O","N","D"],"am":"a.m.","days-standAlone-narrow":["D","L","M","M","J","V","S"],"field-year":"año","eras":["a.C.","d.C."],"field-minute":"minuto","field-hour":"hora","dateFormat-long":"d' de 'MMMM' de 'yyyy","field-day":"dÃa","field-dayperiod":"periodo del dÃa","field-month":"mes","dateFormat-short":"d/MM/yy","months-format-wide":["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],"field-era":"era","months-format-abbr":["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],"days-format-wide":["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],"dateFormat-full":"EEEE d' de 'MMMM' de 'yyyy","field-zone":"zona","days-format-abbr":["dom","lun","mar","mié","jue","vie","sáb"],"timeFormat-medium":"HH:mm:ss","timeFormat-short":"HH:mm","timeFormat-long":"HH:mm:ss z"};dojo.provide("dojo.widget.nls.TimePicker");dojo.widget.nls.TimePicker._built=true;dojo.provide("dojo.widget.nls.TimePicker.es_es");dojo.widget.nls.TimePicker.es_es={"any":"any"};dojo.provide("dojo.widget.nls.DropdownTimePicker");dojo.widget.nls.DropdownTimePicker._built=true;dojo.provide("dojo.widget.nls.DropdownTimePicker.es_es");dojo.widget.nls.DropdownTimePicker.es_es={"selectTime":"Select time"};dojo.provide("dojo.widget.nls.DropdownDatePicker");dojo.widget.nls.DropdownDatePicker._built=true;dojo.provide("dojo.widget.nls.DropdownDatePicker.es_es");dojo.widget.nls.DropdownDatePicker.es_es={"selectDate":"Select a date"}; \ No newline at end of file diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_es.js b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_es.js deleted file mode 100644 index 347cefb63..000000000 --- a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_es.js +++ /dev/null @@ -1,11 +0,0 @@ -/* - Copyright (c) 2004-2006, The Dojo Foundation - All Rights Reserved. - - Licensed under the Academic Free License version 2.1 or above OR the - modified BSD license. For more information on Dojo licensing, see: - - http://dojotoolkit.org/community/licensing.shtml -*/ - -dojo.provide("nls.dojo_es");dojo.provide("dojo.i18n.calendar.nls.gregorian");dojo.i18n.calendar.nls.gregorian._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorian.es");dojo.i18n.calendar.nls.gregorian.es={"field-weekday":"dÃa de la semana","dateFormat-medium":"dd-MMM-yy","field-second":"segundo","field-week":"semana","pm":"p.m.","timeFormat-full":"HH'H'mm''ss\" z","months-standAlone-narrow":["E","F","M","A","M","J","J","A","S","O","N","D"],"am":"a.m.","days-standAlone-narrow":["D","L","M","M","J","V","S"],"field-year":"año","eras":["a.C.","d.C."],"field-minute":"minuto","field-hour":"hora","dateFormat-long":"d' de 'MMMM' de 'yyyy","field-day":"dÃa","field-dayperiod":"periodo del dÃa","field-month":"mes","dateFormat-short":"d/MM/yy","months-format-wide":["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],"field-era":"era","months-format-abbr":["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],"days-format-wide":["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],"dateFormat-full":"EEEE d' de 'MMMM' de 'yyyy","field-zone":"zona","days-format-abbr":["dom","lun","mar","mié","jue","vie","sáb"],"timeFormat-medium":"HH:mm:ss","timeFormat-short":"HH:mm","timeFormat-long":"HH:mm:ss z"};dojo.provide("dojo.i18n.calendar.nls.gregorianExtras");dojo.i18n.calendar.nls.gregorianExtras._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorianExtras.es");dojo.i18n.calendar.nls.gregorianExtras.es={"dateFormat-yearOnly":"yyyy"};dojo.provide("dojo.i18n.calendar.nls.gregorian");dojo.i18n.calendar.nls.gregorian._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorian.es");dojo.i18n.calendar.nls.gregorian.es={"field-weekday":"dÃa de la semana","dateFormat-medium":"dd-MMM-yy","field-second":"segundo","field-week":"semana","pm":"p.m.","timeFormat-full":"HH'H'mm''ss\" z","months-standAlone-narrow":["E","F","M","A","M","J","J","A","S","O","N","D"],"am":"a.m.","days-standAlone-narrow":["D","L","M","M","J","V","S"],"field-year":"año","eras":["a.C.","d.C."],"field-minute":"minuto","field-hour":"hora","dateFormat-long":"d' de 'MMMM' de 'yyyy","field-day":"dÃa","field-dayperiod":"periodo del dÃa","field-month":"mes","dateFormat-short":"d/MM/yy","months-format-wide":["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],"field-era":"era","months-format-abbr":["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],"days-format-wide":["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],"dateFormat-full":"EEEE d' de 'MMMM' de 'yyyy","field-zone":"zona","days-format-abbr":["dom","lun","mar","mié","jue","vie","sáb"],"timeFormat-medium":"HH:mm:ss","timeFormat-short":"HH:mm","timeFormat-long":"HH:mm:ss z"};dojo.provide("dojo.widget.nls.TimePicker");dojo.widget.nls.TimePicker._built=true;dojo.provide("dojo.widget.nls.TimePicker.es");dojo.widget.nls.TimePicker.es={"any":"any"};dojo.provide("dojo.widget.nls.DropdownTimePicker");dojo.widget.nls.DropdownTimePicker._built=true;dojo.provide("dojo.widget.nls.DropdownTimePicker.es");dojo.widget.nls.DropdownTimePicker.es={"selectTime":"Select time"};dojo.provide("dojo.widget.nls.DropdownDatePicker");dojo.widget.nls.DropdownDatePicker._built=true;dojo.provide("dojo.widget.nls.DropdownDatePicker.es");dojo.widget.nls.DropdownDatePicker.es={"selectDate":"Select a date"}; \ No newline at end of file diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_fr-fr.js b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_fr-fr.js deleted file mode 100644 index 33a712583..000000000 --- a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_fr-fr.js +++ /dev/null @@ -1,11 +0,0 @@ -/* - Copyright (c) 2004-2006, The Dojo Foundation - All Rights Reserved. - - Licensed under the Academic Free License version 2.1 or above OR the - modified BSD license. For more information on Dojo licensing, see: - - http://dojotoolkit.org/community/licensing.shtml -*/ - -dojo.provide("nls.dojo_fr-fr");dojo.provide("dojo.i18n.calendar.nls.gregorian");dojo.i18n.calendar.nls.gregorian._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorian.fr_fr");dojo.i18n.calendar.nls.gregorian.fr_fr={"field-weekday":"jour de la semaine","dateFormat-medium":"d MMM yy","field-second":"seconde","field-week":"semaine","pm":"ap. m.","timeFormat-full":"HH' h 'mm z","months-standAlone-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"am":"matin","days-standAlone-narrow":["D","L","M","M","J","V","S"],"field-year":"année","eras":["av. J.-C.","apr. J.-C."],"field-minute":"minute","field-hour":"heure","dateFormat-long":"d MMMM yyyy","field-day":"jour","field-dayperiod":"période de la journée","field-month":"mois","dateFormat-short":"dd/MM/yy","months-format-wide":["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],"field-era":"époque","months-format-abbr":["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],"days-format-wide":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],"dateFormat-full":"EEEE d MMMM yyyy","field-zone":"zone","days-format-abbr":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],"timeFormat-medium":"HH:mm:ss","timeFormat-short":"HH:mm","timeFormat-long":"HH:mm:ss z"};dojo.provide("dojo.i18n.calendar.nls.gregorianExtras");dojo.i18n.calendar.nls.gregorianExtras._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorianExtras.fr_fr");dojo.i18n.calendar.nls.gregorianExtras.fr_fr={"dateFormat-yearOnly":"yyyy"};dojo.provide("dojo.i18n.calendar.nls.gregorian");dojo.i18n.calendar.nls.gregorian._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorian.fr_fr");dojo.i18n.calendar.nls.gregorian.fr_fr={"field-weekday":"jour de la semaine","dateFormat-medium":"d MMM yy","field-second":"seconde","field-week":"semaine","pm":"ap. m.","timeFormat-full":"HH' h 'mm z","months-standAlone-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"am":"matin","days-standAlone-narrow":["D","L","M","M","J","V","S"],"field-year":"année","eras":["av. J.-C.","apr. J.-C."],"field-minute":"minute","field-hour":"heure","dateFormat-long":"d MMMM yyyy","field-day":"jour","field-dayperiod":"période de la journée","field-month":"mois","dateFormat-short":"dd/MM/yy","months-format-wide":["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],"field-era":"époque","months-format-abbr":["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],"days-format-wide":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],"dateFormat-full":"EEEE d MMMM yyyy","field-zone":"zone","days-format-abbr":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],"timeFormat-medium":"HH:mm:ss","timeFormat-short":"HH:mm","timeFormat-long":"HH:mm:ss z"};dojo.provide("dojo.widget.nls.TimePicker");dojo.widget.nls.TimePicker._built=true;dojo.provide("dojo.widget.nls.TimePicker.fr_fr");dojo.widget.nls.TimePicker.fr_fr={"any":"any"};dojo.provide("dojo.widget.nls.DropdownTimePicker");dojo.widget.nls.DropdownTimePicker._built=true;dojo.provide("dojo.widget.nls.DropdownTimePicker.fr_fr");dojo.widget.nls.DropdownTimePicker.fr_fr={"selectTime":"Select time"};dojo.provide("dojo.widget.nls.DropdownDatePicker");dojo.widget.nls.DropdownDatePicker._built=true;dojo.provide("dojo.widget.nls.DropdownDatePicker.fr_fr");dojo.widget.nls.DropdownDatePicker.fr_fr={"selectDate":"Select a date"}; \ No newline at end of file diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_fr.js b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_fr.js deleted file mode 100644 index 905fdfc46..000000000 --- a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_fr.js +++ /dev/null @@ -1,11 +0,0 @@ -/* - Copyright (c) 2004-2006, The Dojo Foundation - All Rights Reserved. - - Licensed under the Academic Free License version 2.1 or above OR the - modified BSD license. For more information on Dojo licensing, see: - - http://dojotoolkit.org/community/licensing.shtml -*/ - -dojo.provide("nls.dojo_fr");dojo.provide("dojo.i18n.calendar.nls.gregorian");dojo.i18n.calendar.nls.gregorian._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorian.fr");dojo.i18n.calendar.nls.gregorian.fr={"field-weekday":"jour de la semaine","dateFormat-medium":"d MMM yy","field-second":"seconde","field-week":"semaine","pm":"ap. m.","timeFormat-full":"HH' h 'mm z","months-standAlone-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"am":"matin","days-standAlone-narrow":["D","L","M","M","J","V","S"],"field-year":"année","eras":["av. J.-C.","apr. J.-C."],"field-minute":"minute","field-hour":"heure","dateFormat-long":"d MMMM yyyy","field-day":"jour","field-dayperiod":"période de la journée","field-month":"mois","dateFormat-short":"dd/MM/yy","months-format-wide":["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],"field-era":"époque","months-format-abbr":["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],"days-format-wide":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],"dateFormat-full":"EEEE d MMMM yyyy","field-zone":"zone","days-format-abbr":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],"timeFormat-medium":"HH:mm:ss","timeFormat-short":"HH:mm","timeFormat-long":"HH:mm:ss z"};dojo.provide("dojo.i18n.calendar.nls.gregorianExtras");dojo.i18n.calendar.nls.gregorianExtras._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorianExtras.fr");dojo.i18n.calendar.nls.gregorianExtras.fr={"dateFormat-yearOnly":"yyyy"};dojo.provide("dojo.i18n.calendar.nls.gregorian");dojo.i18n.calendar.nls.gregorian._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorian.fr");dojo.i18n.calendar.nls.gregorian.fr={"field-weekday":"jour de la semaine","dateFormat-medium":"d MMM yy","field-second":"seconde","field-week":"semaine","pm":"ap. m.","timeFormat-full":"HH' h 'mm z","months-standAlone-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"am":"matin","days-standAlone-narrow":["D","L","M","M","J","V","S"],"field-year":"année","eras":["av. J.-C.","apr. J.-C."],"field-minute":"minute","field-hour":"heure","dateFormat-long":"d MMMM yyyy","field-day":"jour","field-dayperiod":"période de la journée","field-month":"mois","dateFormat-short":"dd/MM/yy","months-format-wide":["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],"field-era":"époque","months-format-abbr":["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],"days-format-wide":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],"dateFormat-full":"EEEE d MMMM yyyy","field-zone":"zone","days-format-abbr":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],"timeFormat-medium":"HH:mm:ss","timeFormat-short":"HH:mm","timeFormat-long":"HH:mm:ss z"};dojo.provide("dojo.widget.nls.TimePicker");dojo.widget.nls.TimePicker._built=true;dojo.provide("dojo.widget.nls.TimePicker.fr");dojo.widget.nls.TimePicker.fr={"any":"any"};dojo.provide("dojo.widget.nls.DropdownTimePicker");dojo.widget.nls.DropdownTimePicker._built=true;dojo.provide("dojo.widget.nls.DropdownTimePicker.fr");dojo.widget.nls.DropdownTimePicker.fr={"selectTime":"Select time"};dojo.provide("dojo.widget.nls.DropdownDatePicker");dojo.widget.nls.DropdownDatePicker._built=true;dojo.provide("dojo.widget.nls.DropdownDatePicker.fr");dojo.widget.nls.DropdownDatePicker.fr={"selectDate":"Select a date"}; \ No newline at end of file diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_it-it.js b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_it-it.js deleted file mode 100644 index 371eb9de6..000000000 --- a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_it-it.js +++ /dev/null @@ -1,11 +0,0 @@ -/* - Copyright (c) 2004-2006, The Dojo Foundation - All Rights Reserved. - - Licensed under the Academic Free License version 2.1 or above OR the - modified BSD license. For more information on Dojo licensing, see: - - http://dojotoolkit.org/community/licensing.shtml -*/ - -dojo.provide("nls.dojo_it-it");dojo.provide("dojo.i18n.calendar.nls.gregorian");dojo.i18n.calendar.nls.gregorian._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorian.it_it");dojo.i18n.calendar.nls.gregorian.it_it={"field-weekday":"giorno della settimana","dateFormat-medium":"dd/MMM/yy","field-second":"secondo","field-week":"settimana","pm":"p.","months-standAlone-narrow":["G","F","M","A","M","G","L","A","S","O","N","D"],"am":"m.","days-standAlone-narrow":["D","L","M","M","G","V","S"],"field-year":"anno","eras":["aC","dC"],"field-minute":"minuto","field-hour":"ora","dateFormat-long":"dd MMMM yyyy","field-day":"giorno","field-dayperiod":"periodo del giorno","field-month":"mese","dateFormat-short":"dd/MM/yy","months-format-wide":["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"],"field-era":"era","months-format-abbr":["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],"days-format-wide":["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"],"dateFormat-full":"EEEE d MMMM yyyy","field-zone":"zona","days-format-abbr":["dom","lun","mar","mer","gio","ven","sab"],"timeFormat-full":"HH:mm:ss z","timeFormat-medium":"HH:mm:ss","timeFormat-short":"HH:mm","timeFormat-long":"HH:mm:ss z"};dojo.provide("dojo.i18n.calendar.nls.gregorianExtras");dojo.i18n.calendar.nls.gregorianExtras._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorianExtras.it_it");dojo.i18n.calendar.nls.gregorianExtras.it_it={"dateFormat-yearOnly":"yyyy"};dojo.provide("dojo.i18n.calendar.nls.gregorian");dojo.i18n.calendar.nls.gregorian._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorian.it_it");dojo.i18n.calendar.nls.gregorian.it_it={"field-weekday":"giorno della settimana","dateFormat-medium":"dd/MMM/yy","field-second":"secondo","field-week":"settimana","pm":"p.","months-standAlone-narrow":["G","F","M","A","M","G","L","A","S","O","N","D"],"am":"m.","days-standAlone-narrow":["D","L","M","M","G","V","S"],"field-year":"anno","eras":["aC","dC"],"field-minute":"minuto","field-hour":"ora","dateFormat-long":"dd MMMM yyyy","field-day":"giorno","field-dayperiod":"periodo del giorno","field-month":"mese","dateFormat-short":"dd/MM/yy","months-format-wide":["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"],"field-era":"era","months-format-abbr":["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],"days-format-wide":["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"],"dateFormat-full":"EEEE d MMMM yyyy","field-zone":"zona","days-format-abbr":["dom","lun","mar","mer","gio","ven","sab"],"timeFormat-full":"HH:mm:ss z","timeFormat-medium":"HH:mm:ss","timeFormat-short":"HH:mm","timeFormat-long":"HH:mm:ss z"};dojo.provide("dojo.widget.nls.TimePicker");dojo.widget.nls.TimePicker._built=true;dojo.provide("dojo.widget.nls.TimePicker.it_it");dojo.widget.nls.TimePicker.it_it={"any":"any"};dojo.provide("dojo.widget.nls.DropdownTimePicker");dojo.widget.nls.DropdownTimePicker._built=true;dojo.provide("dojo.widget.nls.DropdownTimePicker.it_it");dojo.widget.nls.DropdownTimePicker.it_it={"selectTime":"Select time"};dojo.provide("dojo.widget.nls.DropdownDatePicker");dojo.widget.nls.DropdownDatePicker._built=true;dojo.provide("dojo.widget.nls.DropdownDatePicker.it_it");dojo.widget.nls.DropdownDatePicker.it_it={"selectDate":"Select a date"}; \ No newline at end of file diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_it.js b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_it.js deleted file mode 100644 index 5048ce753..000000000 --- a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_it.js +++ /dev/null @@ -1,11 +0,0 @@ -/* - Copyright (c) 2004-2006, The Dojo Foundation - All Rights Reserved. - - Licensed under the Academic Free License version 2.1 or above OR the - modified BSD license. For more information on Dojo licensing, see: - - http://dojotoolkit.org/community/licensing.shtml -*/ - -dojo.provide("nls.dojo_it");dojo.provide("dojo.i18n.calendar.nls.gregorian");dojo.i18n.calendar.nls.gregorian._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorian.it");dojo.i18n.calendar.nls.gregorian.it={"field-weekday":"giorno della settimana","dateFormat-medium":"dd/MMM/yy","field-second":"secondo","field-week":"settimana","pm":"p.","months-standAlone-narrow":["G","F","M","A","M","G","L","A","S","O","N","D"],"am":"m.","days-standAlone-narrow":["D","L","M","M","G","V","S"],"field-year":"anno","eras":["aC","dC"],"field-minute":"minuto","field-hour":"ora","dateFormat-long":"dd MMMM yyyy","field-day":"giorno","field-dayperiod":"periodo del giorno","field-month":"mese","dateFormat-short":"dd/MM/yy","months-format-wide":["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"],"field-era":"era","months-format-abbr":["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],"days-format-wide":["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"],"dateFormat-full":"EEEE d MMMM yyyy","field-zone":"zona","days-format-abbr":["dom","lun","mar","mer","gio","ven","sab"],"timeFormat-full":"HH:mm:ss z","timeFormat-medium":"HH:mm:ss","timeFormat-short":"HH:mm","timeFormat-long":"HH:mm:ss z"};dojo.provide("dojo.i18n.calendar.nls.gregorianExtras");dojo.i18n.calendar.nls.gregorianExtras._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorianExtras.it");dojo.i18n.calendar.nls.gregorianExtras.it={"dateFormat-yearOnly":"yyyy"};dojo.provide("dojo.i18n.calendar.nls.gregorian");dojo.i18n.calendar.nls.gregorian._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorian.it");dojo.i18n.calendar.nls.gregorian.it={"field-weekday":"giorno della settimana","dateFormat-medium":"dd/MMM/yy","field-second":"secondo","field-week":"settimana","pm":"p.","months-standAlone-narrow":["G","F","M","A","M","G","L","A","S","O","N","D"],"am":"m.","days-standAlone-narrow":["D","L","M","M","G","V","S"],"field-year":"anno","eras":["aC","dC"],"field-minute":"minuto","field-hour":"ora","dateFormat-long":"dd MMMM yyyy","field-day":"giorno","field-dayperiod":"periodo del giorno","field-month":"mese","dateFormat-short":"dd/MM/yy","months-format-wide":["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"],"field-era":"era","months-format-abbr":["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],"days-format-wide":["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"],"dateFormat-full":"EEEE d MMMM yyyy","field-zone":"zona","days-format-abbr":["dom","lun","mar","mer","gio","ven","sab"],"timeFormat-full":"HH:mm:ss z","timeFormat-medium":"HH:mm:ss","timeFormat-short":"HH:mm","timeFormat-long":"HH:mm:ss z"};dojo.provide("dojo.widget.nls.TimePicker");dojo.widget.nls.TimePicker._built=true;dojo.provide("dojo.widget.nls.TimePicker.it");dojo.widget.nls.TimePicker.it={"any":"any"};dojo.provide("dojo.widget.nls.DropdownTimePicker");dojo.widget.nls.DropdownTimePicker._built=true;dojo.provide("dojo.widget.nls.DropdownTimePicker.it");dojo.widget.nls.DropdownTimePicker.it={"selectTime":"Select time"};dojo.provide("dojo.widget.nls.DropdownDatePicker");dojo.widget.nls.DropdownDatePicker._built=true;dojo.provide("dojo.widget.nls.DropdownDatePicker.it");dojo.widget.nls.DropdownDatePicker.it={"selectDate":"Select a date"}; \ No newline at end of file diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_ja-jp.js b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_ja-jp.js deleted file mode 100644 index daba5b987..000000000 --- a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_ja-jp.js +++ /dev/null @@ -1,11 +0,0 @@ -/* - Copyright (c) 2004-2006, The Dojo Foundation - All Rights Reserved. - - Licensed under the Academic Free License version 2.1 or above OR the - modified BSD license. For more information on Dojo licensing, see: - - http://dojotoolkit.org/community/licensing.shtml -*/ - -dojo.provide("nls.dojo_ja-jp");dojo.provide("dojo.i18n.calendar.nls.gregorian");dojo.i18n.calendar.nls.gregorian._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorian.ja_jp");dojo.i18n.calendar.nls.gregorian.ja_jp={"days-standAlone-narrow":["æ—¥","月","ç?«","æ°´","木","金","土"],"timeFormat-full":"H'時'mm'分'ss'ç§’'z","eras":["紀元å‰?","西暦"],"timeFormat-medium":"H:mm:ss","dateFormat-medium":"yyyy/MM/dd","am":"å?ˆå‰?","months-format-abbr":["1 月","2 月","3 月","4 月","5 月","6 月","7 月","8 月","9 月","10 月","11 月","12 月"],"dateFormat-full":"yyyy'å¹´'M'月'd'æ—¥'EEEE","days-format-abbr":["æ—¥","月","ç?«","æ°´","木","金","土"],"timeFormat-long":"H:mm:ss:z","timeFormat-short":"H:mm","pm":"å?ˆå¾Œ","months-format-wide":["1 月","2 月","3 月","4 月","5 月","6 月","7 月","8 月","9 月","10 月","11 月","12 月"],"dateFormat-long":"yyyy'å¹´'M'月'd'æ—¥'","days-format-wide":["日曜日","月曜日","ç?«æ›œæ—¥","水曜日","木曜日","金曜日","土曜日"],"field-weekday":"Day of the Week","field-second":"Second","field-week":"Week","months-standAlone-narrow":["1","2","3","4","5","6","7","8","9","10","11","12"],"field-year":"Year","field-minute":"Minute","field-hour":"Hour","field-day":"Day","field-dayperiod":"Dayperiod","field-month":"Month","dateFormat-short":"yy/MM/dd","field-era":"Era","field-zone":"Zone"};dojo.provide("dojo.i18n.calendar.nls.gregorianExtras");dojo.i18n.calendar.nls.gregorianExtras._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorianExtras.ja_jp");dojo.i18n.calendar.nls.gregorianExtras.ja_jp={"dateFormat-yearOnly":"yyyyå¹´"};dojo.provide("dojo.i18n.calendar.nls.gregorian");dojo.i18n.calendar.nls.gregorian._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorian.ja_jp");dojo.i18n.calendar.nls.gregorian.ja_jp={"days-standAlone-narrow":["æ—¥","月","ç?«","æ°´","木","金","土"],"timeFormat-full":"H'時'mm'分'ss'ç§’'z","eras":["紀元å‰?","西暦"],"timeFormat-medium":"H:mm:ss","dateFormat-medium":"yyyy/MM/dd","am":"å?ˆå‰?","months-format-abbr":["1 月","2 月","3 月","4 月","5 月","6 月","7 月","8 月","9 月","10 月","11 月","12 月"],"dateFormat-full":"yyyy'å¹´'M'月'd'æ—¥'EEEE","days-format-abbr":["æ—¥","月","ç?«","æ°´","木","金","土"],"timeFormat-long":"H:mm:ss:z","timeFormat-short":"H:mm","pm":"å?ˆå¾Œ","months-format-wide":["1 月","2 月","3 月","4 月","5 月","6 月","7 月","8 月","9 月","10 月","11 月","12 月"],"dateFormat-long":"yyyy'å¹´'M'月'd'æ—¥'","days-format-wide":["日曜日","月曜日","ç?«æ›œæ—¥","水曜日","木曜日","金曜日","土曜日"],"field-weekday":"Day of the Week","field-second":"Second","field-week":"Week","months-standAlone-narrow":["1","2","3","4","5","6","7","8","9","10","11","12"],"field-year":"Year","field-minute":"Minute","field-hour":"Hour","field-day":"Day","field-dayperiod":"Dayperiod","field-month":"Month","dateFormat-short":"yy/MM/dd","field-era":"Era","field-zone":"Zone"};dojo.provide("dojo.widget.nls.TimePicker");dojo.widget.nls.TimePicker._built=true;dojo.provide("dojo.widget.nls.TimePicker.ja_jp");dojo.widget.nls.TimePicker.ja_jp={"any":"any"};dojo.provide("dojo.widget.nls.DropdownTimePicker");dojo.widget.nls.DropdownTimePicker._built=true;dojo.provide("dojo.widget.nls.DropdownTimePicker.ja_jp");dojo.widget.nls.DropdownTimePicker.ja_jp={"selectTime":"Select time"};dojo.provide("dojo.widget.nls.DropdownDatePicker");dojo.widget.nls.DropdownDatePicker._built=true;dojo.provide("dojo.widget.nls.DropdownDatePicker.ja_jp");dojo.widget.nls.DropdownDatePicker.ja_jp={"selectDate":"Select a date"}; \ No newline at end of file diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_ja.js b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_ja.js deleted file mode 100644 index 361b26e05..000000000 --- a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_ja.js +++ /dev/null @@ -1,11 +0,0 @@ -/* - Copyright (c) 2004-2006, The Dojo Foundation - All Rights Reserved. - - Licensed under the Academic Free License version 2.1 or above OR the - modified BSD license. For more information on Dojo licensing, see: - - http://dojotoolkit.org/community/licensing.shtml -*/ - -dojo.provide("nls.dojo_ja");dojo.provide("dojo.i18n.calendar.nls.gregorian");dojo.i18n.calendar.nls.gregorian._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorian.ja");dojo.i18n.calendar.nls.gregorian.ja={"days-standAlone-narrow":["æ—¥","月","ç?«","æ°´","木","金","土"],"timeFormat-full":"H'時'mm'分'ss'ç§’'z","eras":["紀元å‰?","西暦"],"timeFormat-medium":"H:mm:ss","dateFormat-medium":"yyyy/MM/dd","am":"å?ˆå‰?","months-format-abbr":["1 月","2 月","3 月","4 月","5 月","6 月","7 月","8 月","9 月","10 月","11 月","12 月"],"dateFormat-full":"yyyy'å¹´'M'月'd'æ—¥'EEEE","days-format-abbr":["æ—¥","月","ç?«","æ°´","木","金","土"],"timeFormat-long":"H:mm:ss:z","timeFormat-short":"H:mm","pm":"å?ˆå¾Œ","months-format-wide":["1 月","2 月","3 月","4 月","5 月","6 月","7 月","8 月","9 月","10 月","11 月","12 月"],"dateFormat-long":"yyyy'å¹´'M'月'd'æ—¥'","days-format-wide":["日曜日","月曜日","ç?«æ›œæ—¥","水曜日","木曜日","金曜日","土曜日"],"field-weekday":"Day of the Week","field-second":"Second","field-week":"Week","months-standAlone-narrow":["1","2","3","4","5","6","7","8","9","10","11","12"],"field-year":"Year","field-minute":"Minute","field-hour":"Hour","field-day":"Day","field-dayperiod":"Dayperiod","field-month":"Month","dateFormat-short":"yy/MM/dd","field-era":"Era","field-zone":"Zone"};dojo.provide("dojo.i18n.calendar.nls.gregorianExtras");dojo.i18n.calendar.nls.gregorianExtras._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorianExtras.ja");dojo.i18n.calendar.nls.gregorianExtras.ja={"dateFormat-yearOnly":"yyyyå¹´"};dojo.provide("dojo.i18n.calendar.nls.gregorian");dojo.i18n.calendar.nls.gregorian._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorian.ja");dojo.i18n.calendar.nls.gregorian.ja={"days-standAlone-narrow":["æ—¥","月","ç?«","æ°´","木","金","土"],"timeFormat-full":"H'時'mm'分'ss'ç§’'z","eras":["紀元å‰?","西暦"],"timeFormat-medium":"H:mm:ss","dateFormat-medium":"yyyy/MM/dd","am":"å?ˆå‰?","months-format-abbr":["1 月","2 月","3 月","4 月","5 月","6 月","7 月","8 月","9 月","10 月","11 月","12 月"],"dateFormat-full":"yyyy'å¹´'M'月'd'æ—¥'EEEE","days-format-abbr":["æ—¥","月","ç?«","æ°´","木","金","土"],"timeFormat-long":"H:mm:ss:z","timeFormat-short":"H:mm","pm":"å?ˆå¾Œ","months-format-wide":["1 月","2 月","3 月","4 月","5 月","6 月","7 月","8 月","9 月","10 月","11 月","12 月"],"dateFormat-long":"yyyy'å¹´'M'月'd'æ—¥'","days-format-wide":["日曜日","月曜日","ç?«æ›œæ—¥","水曜日","木曜日","金曜日","土曜日"],"field-weekday":"Day of the Week","field-second":"Second","field-week":"Week","months-standAlone-narrow":["1","2","3","4","5","6","7","8","9","10","11","12"],"field-year":"Year","field-minute":"Minute","field-hour":"Hour","field-day":"Day","field-dayperiod":"Dayperiod","field-month":"Month","dateFormat-short":"yy/MM/dd","field-era":"Era","field-zone":"Zone"};dojo.provide("dojo.widget.nls.TimePicker");dojo.widget.nls.TimePicker._built=true;dojo.provide("dojo.widget.nls.TimePicker.ja");dojo.widget.nls.TimePicker.ja={"any":"any"};dojo.provide("dojo.widget.nls.DropdownTimePicker");dojo.widget.nls.DropdownTimePicker._built=true;dojo.provide("dojo.widget.nls.DropdownTimePicker.ja");dojo.widget.nls.DropdownTimePicker.ja={"selectTime":"Select time"};dojo.provide("dojo.widget.nls.DropdownDatePicker");dojo.widget.nls.DropdownDatePicker._built=true;dojo.provide("dojo.widget.nls.DropdownDatePicker.ja");dojo.widget.nls.DropdownDatePicker.ja={"selectDate":"Select a date"}; \ No newline at end of file diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_ko-kr.js b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_ko-kr.js deleted file mode 100644 index df71f6628..000000000 --- a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_ko-kr.js +++ /dev/null @@ -1,11 +0,0 @@ -/* - Copyright (c) 2004-2006, The Dojo Foundation - All Rights Reserved. - - Licensed under the Academic Free License version 2.1 or above OR the - modified BSD license. For more information on Dojo licensing, see: - - http://dojotoolkit.org/community/licensing.shtml -*/ - -dojo.provide("nls.dojo_ko-kr");dojo.provide("dojo.i18n.calendar.nls.gregorian");dojo.i18n.calendar.nls.gregorian._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorian.ko_kr");dojo.i18n.calendar.nls.gregorian.ko_kr={"months-standAlone-narrow":["1ì›”","2ì›”","3ì›”","4ì›”","5ì›”","6ì›”","7ì›”","8ì›”","9ì›”","10ì›”","11ì›”","12ì›”"],"dateFormat-long":"yyyy'ë…„' M'ì›”' d'ì?¼'","timeFormat-full":"a hh'시' mm'ë¶„' ss'ì´ˆ' z","eras":["기ì›?ì „","서기"],"timeFormat-medium":"a hh'시' mm'ë¶„'","dateFormat-medium":"yyyy. MM. dd","am":"ì˜¤ì „","months-format-abbr":["1ì›”","2ì›”","3ì›”","4ì›”","5ì›”","6ì›”","7ì›”","8ì›”","9ì›”","10ì›”","11ì›”","12ì›”"],"dateFormat-full":"yyyy'ë…„' M'ì›”' d'ì?¼' EEEE","days-format-abbr":["ì?¼","ì›”","í™”","수","목","금","í† "],"timeFormat-long":"a hh'시' mm'ë¶„' ss'ì´ˆ'","timeFormat-short":"a hh'시' mm'ë¶„'","dateFormat-short":"yy. MM. dd","pm":"오후","months-format-wide":["1ì›”","2ì›”","3ì›”","4ì›”","5ì›”","6ì›”","7ì›”","8ì›”","9ì›”","10ì›”","11ì›”","12ì›”"],"days-standAlone-narrow":["ì?¼","ì›”","í™”","수","목","금","í† "],"days-format-wide":["ì?¼ìš”ì?¼","월요ì?¼","화요ì?¼","수요ì?¼","목요ì?¼","금요ì?¼","í† ìš”ì?¼"],"field-weekday":"Day of the Week","field-second":"Second","field-week":"Week","field-year":"Year","field-minute":"Minute","field-hour":"Hour","field-day":"Day","field-dayperiod":"Dayperiod","field-month":"Month","field-era":"Era","field-zone":"Zone"};dojo.provide("dojo.i18n.calendar.nls.gregorianExtras");dojo.i18n.calendar.nls.gregorianExtras._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorianExtras.ko_kr");dojo.i18n.calendar.nls.gregorianExtras.ko_kr={"dateFormat-yearOnly":"yyyy"};dojo.provide("dojo.i18n.calendar.nls.gregorian");dojo.i18n.calendar.nls.gregorian._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorian.ko_kr");dojo.i18n.calendar.nls.gregorian.ko_kr={"months-standAlone-narrow":["1ì›”","2ì›”","3ì›”","4ì›”","5ì›”","6ì›”","7ì›”","8ì›”","9ì›”","10ì›”","11ì›”","12ì›”"],"dateFormat-long":"yyyy'ë…„' M'ì›”' d'ì?¼'","timeFormat-full":"a hh'시' mm'ë¶„' ss'ì´ˆ' z","eras":["기ì›?ì „","서기"],"timeFormat-medium":"a hh'시' mm'ë¶„'","dateFormat-medium":"yyyy. MM. dd","am":"ì˜¤ì „","months-format-abbr":["1ì›”","2ì›”","3ì›”","4ì›”","5ì›”","6ì›”","7ì›”","8ì›”","9ì›”","10ì›”","11ì›”","12ì›”"],"dateFormat-full":"yyyy'ë…„' M'ì›”' d'ì?¼' EEEE","days-format-abbr":["ì?¼","ì›”","í™”","수","목","금","í† "],"timeFormat-long":"a hh'시' mm'ë¶„' ss'ì´ˆ'","timeFormat-short":"a hh'시' mm'ë¶„'","dateFormat-short":"yy. MM. dd","pm":"오후","months-format-wide":["1ì›”","2ì›”","3ì›”","4ì›”","5ì›”","6ì›”","7ì›”","8ì›”","9ì›”","10ì›”","11ì›”","12ì›”"],"days-standAlone-narrow":["ì?¼","ì›”","í™”","수","목","금","í† "],"days-format-wide":["ì?¼ìš”ì?¼","월요ì?¼","화요ì?¼","수요ì?¼","목요ì?¼","금요ì?¼","í† ìš”ì?¼"],"field-weekday":"Day of the Week","field-second":"Second","field-week":"Week","field-year":"Year","field-minute":"Minute","field-hour":"Hour","field-day":"Day","field-dayperiod":"Dayperiod","field-month":"Month","field-era":"Era","field-zone":"Zone"};dojo.provide("dojo.widget.nls.TimePicker");dojo.widget.nls.TimePicker._built=true;dojo.provide("dojo.widget.nls.TimePicker.ko_kr");dojo.widget.nls.TimePicker.ko_kr={"any":"any"};dojo.provide("dojo.widget.nls.DropdownTimePicker");dojo.widget.nls.DropdownTimePicker._built=true;dojo.provide("dojo.widget.nls.DropdownTimePicker.ko_kr");dojo.widget.nls.DropdownTimePicker.ko_kr={"selectTime":"Select time"};dojo.provide("dojo.widget.nls.DropdownDatePicker");dojo.widget.nls.DropdownDatePicker._built=true;dojo.provide("dojo.widget.nls.DropdownDatePicker.ko_kr");dojo.widget.nls.DropdownDatePicker.ko_kr={"selectDate":"Select a date"}; \ No newline at end of file diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_ko.js b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_ko.js deleted file mode 100644 index c05242dfb..000000000 --- a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_ko.js +++ /dev/null @@ -1,11 +0,0 @@ -/* - Copyright (c) 2004-2006, The Dojo Foundation - All Rights Reserved. - - Licensed under the Academic Free License version 2.1 or above OR the - modified BSD license. For more information on Dojo licensing, see: - - http://dojotoolkit.org/community/licensing.shtml -*/ - -dojo.provide("nls.dojo_ko");dojo.provide("dojo.i18n.calendar.nls.gregorian");dojo.i18n.calendar.nls.gregorian._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorian.ko");dojo.i18n.calendar.nls.gregorian.ko={"months-standAlone-narrow":["1ì›”","2ì›”","3ì›”","4ì›”","5ì›”","6ì›”","7ì›”","8ì›”","9ì›”","10ì›”","11ì›”","12ì›”"],"dateFormat-long":"yyyy'ë…„' M'ì›”' d'ì?¼'","timeFormat-full":"a hh'시' mm'ë¶„' ss'ì´ˆ' z","eras":["기ì›?ì „","서기"],"timeFormat-medium":"a hh'시' mm'ë¶„'","dateFormat-medium":"yyyy. MM. dd","am":"ì˜¤ì „","months-format-abbr":["1ì›”","2ì›”","3ì›”","4ì›”","5ì›”","6ì›”","7ì›”","8ì›”","9ì›”","10ì›”","11ì›”","12ì›”"],"dateFormat-full":"yyyy'ë…„' M'ì›”' d'ì?¼' EEEE","days-format-abbr":["ì?¼","ì›”","í™”","수","목","금","í† "],"timeFormat-long":"a hh'시' mm'ë¶„' ss'ì´ˆ'","timeFormat-short":"a hh'시' mm'ë¶„'","dateFormat-short":"yy. MM. dd","pm":"오후","months-format-wide":["1ì›”","2ì›”","3ì›”","4ì›”","5ì›”","6ì›”","7ì›”","8ì›”","9ì›”","10ì›”","11ì›”","12ì›”"],"days-standAlone-narrow":["ì?¼","ì›”","í™”","수","목","금","í† "],"days-format-wide":["ì?¼ìš”ì?¼","월요ì?¼","화요ì?¼","수요ì?¼","목요ì?¼","금요ì?¼","í† ìš”ì?¼"],"field-weekday":"Day of the Week","field-second":"Second","field-week":"Week","field-year":"Year","field-minute":"Minute","field-hour":"Hour","field-day":"Day","field-dayperiod":"Dayperiod","field-month":"Month","field-era":"Era","field-zone":"Zone"};dojo.provide("dojo.i18n.calendar.nls.gregorianExtras");dojo.i18n.calendar.nls.gregorianExtras._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorianExtras.ko");dojo.i18n.calendar.nls.gregorianExtras.ko={"dateFormat-yearOnly":"yyyy"};dojo.provide("dojo.i18n.calendar.nls.gregorian");dojo.i18n.calendar.nls.gregorian._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorian.ko");dojo.i18n.calendar.nls.gregorian.ko={"months-standAlone-narrow":["1ì›”","2ì›”","3ì›”","4ì›”","5ì›”","6ì›”","7ì›”","8ì›”","9ì›”","10ì›”","11ì›”","12ì›”"],"dateFormat-long":"yyyy'ë…„' M'ì›”' d'ì?¼'","timeFormat-full":"a hh'시' mm'ë¶„' ss'ì´ˆ' z","eras":["기ì›?ì „","서기"],"timeFormat-medium":"a hh'시' mm'ë¶„'","dateFormat-medium":"yyyy. MM. dd","am":"ì˜¤ì „","months-format-abbr":["1ì›”","2ì›”","3ì›”","4ì›”","5ì›”","6ì›”","7ì›”","8ì›”","9ì›”","10ì›”","11ì›”","12ì›”"],"dateFormat-full":"yyyy'ë…„' M'ì›”' d'ì?¼' EEEE","days-format-abbr":["ì?¼","ì›”","í™”","수","목","금","í† "],"timeFormat-long":"a hh'시' mm'ë¶„' ss'ì´ˆ'","timeFormat-short":"a hh'시' mm'ë¶„'","dateFormat-short":"yy. MM. dd","pm":"오후","months-format-wide":["1ì›”","2ì›”","3ì›”","4ì›”","5ì›”","6ì›”","7ì›”","8ì›”","9ì›”","10ì›”","11ì›”","12ì›”"],"days-standAlone-narrow":["ì?¼","ì›”","í™”","수","목","금","í† "],"days-format-wide":["ì?¼ìš”ì?¼","월요ì?¼","화요ì?¼","수요ì?¼","목요ì?¼","금요ì?¼","í† ìš”ì?¼"],"field-weekday":"Day of the Week","field-second":"Second","field-week":"Week","field-year":"Year","field-minute":"Minute","field-hour":"Hour","field-day":"Day","field-dayperiod":"Dayperiod","field-month":"Month","field-era":"Era","field-zone":"Zone"};dojo.provide("dojo.widget.nls.TimePicker");dojo.widget.nls.TimePicker._built=true;dojo.provide("dojo.widget.nls.TimePicker.ko");dojo.widget.nls.TimePicker.ko={"any":"any"};dojo.provide("dojo.widget.nls.DropdownTimePicker");dojo.widget.nls.DropdownTimePicker._built=true;dojo.provide("dojo.widget.nls.DropdownTimePicker.ko");dojo.widget.nls.DropdownTimePicker.ko={"selectTime":"Select time"};dojo.provide("dojo.widget.nls.DropdownDatePicker");dojo.widget.nls.DropdownDatePicker._built=true;dojo.provide("dojo.widget.nls.DropdownDatePicker.ko");dojo.widget.nls.DropdownDatePicker.ko={"selectDate":"Select a date"}; \ No newline at end of file diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_pt-br.js b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_pt-br.js deleted file mode 100644 index 083ee5c9b..000000000 --- a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_pt-br.js +++ /dev/null @@ -1,11 +0,0 @@ -/* - Copyright (c) 2004-2006, The Dojo Foundation - All Rights Reserved. - - Licensed under the Academic Free License version 2.1 or above OR the - modified BSD license. For more information on Dojo licensing, see: - - http://dojotoolkit.org/community/licensing.shtml -*/ - -dojo.provide("nls.dojo_pt-br");dojo.provide("dojo.i18n.calendar.nls.gregorian");dojo.i18n.calendar.nls.gregorian._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorian.pt_br");dojo.i18n.calendar.nls.gregorian.pt_br={"field-hour":"Hora","field-dayperiod":"PerÃodo do dia","field-minute":"Minuto","timeFormat-full":"HH'h'mm'min'ss's' z","field-weekday":"Dia da semana","field-week":"Semana","field-second":"Segundo","dateFormat-medium":"dd/MM/yyyy","field-day":"Dia","timeFormat-long":"H'h'm'min's's' z","field-month":"Mês","field-year":"Ano","dateFormat-short":"dd/MM/yy","field-zone":"Fuso","months-standAlone-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"dateFormat-long":"d' de 'MMMM' de 'yyyy","eras":["a.C.","d.C."],"months-format-abbr":["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],"dateFormat-full":"EEEE, d' de 'MMMM' de 'yyyy","days-format-abbr":["dom","seg","ter","qua","qui","sex","sáb"],"months-format-wide":["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"],"days-standAlone-narrow":["D","S","T","Q","Q","S","S"],"days-format-wide":["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"],"pm":"PM","am":"AM","timeFormat-medium":"HH:mm:ss","field-era":"Era","timeFormat-short":"HH:mm"};dojo.provide("dojo.i18n.calendar.nls.gregorianExtras");dojo.i18n.calendar.nls.gregorianExtras._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorianExtras.pt_br");dojo.i18n.calendar.nls.gregorianExtras.pt_br={"dateFormat-yearOnly":"yyyy"};dojo.provide("dojo.i18n.calendar.nls.gregorian");dojo.i18n.calendar.nls.gregorian._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorian.pt_br");dojo.i18n.calendar.nls.gregorian.pt_br={"field-hour":"Hora","field-dayperiod":"PerÃodo do dia","field-minute":"Minuto","timeFormat-full":"HH'h'mm'min'ss's' z","field-weekday":"Dia da semana","field-week":"Semana","field-second":"Segundo","dateFormat-medium":"dd/MM/yyyy","field-day":"Dia","timeFormat-long":"H'h'm'min's's' z","field-month":"Mês","field-year":"Ano","dateFormat-short":"dd/MM/yy","field-zone":"Fuso","months-standAlone-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"dateFormat-long":"d' de 'MMMM' de 'yyyy","eras":["a.C.","d.C."],"months-format-abbr":["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],"dateFormat-full":"EEEE, d' de 'MMMM' de 'yyyy","days-format-abbr":["dom","seg","ter","qua","qui","sex","sáb"],"months-format-wide":["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"],"days-standAlone-narrow":["D","S","T","Q","Q","S","S"],"days-format-wide":["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"],"pm":"PM","am":"AM","timeFormat-medium":"HH:mm:ss","field-era":"Era","timeFormat-short":"HH:mm"};dojo.provide("dojo.widget.nls.TimePicker");dojo.widget.nls.TimePicker._built=true;dojo.provide("dojo.widget.nls.TimePicker.pt_br");dojo.widget.nls.TimePicker.pt_br={"any":"any"};dojo.provide("dojo.widget.nls.DropdownTimePicker");dojo.widget.nls.DropdownTimePicker._built=true;dojo.provide("dojo.widget.nls.DropdownTimePicker.pt_br");dojo.widget.nls.DropdownTimePicker.pt_br={"selectTime":"Select time"};dojo.provide("dojo.widget.nls.DropdownDatePicker");dojo.widget.nls.DropdownDatePicker._built=true;dojo.provide("dojo.widget.nls.DropdownDatePicker.pt_br");dojo.widget.nls.DropdownDatePicker.pt_br={"selectDate":"Select a date"}; \ No newline at end of file diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_pt.js b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_pt.js deleted file mode 100644 index 7619c2ac9..000000000 --- a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_pt.js +++ /dev/null @@ -1,11 +0,0 @@ -/* - Copyright (c) 2004-2006, The Dojo Foundation - All Rights Reserved. - - Licensed under the Academic Free License version 2.1 or above OR the - modified BSD license. For more information on Dojo licensing, see: - - http://dojotoolkit.org/community/licensing.shtml -*/ - -dojo.provide("nls.dojo_pt");dojo.provide("dojo.i18n.calendar.nls.gregorian");dojo.i18n.calendar.nls.gregorian._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorian.pt");dojo.i18n.calendar.nls.gregorian.pt={"months-standAlone-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"dateFormat-long":"d' de 'MMMM' de 'yyyy","timeFormat-full":"HH'H'mm'm'ss's' z","eras":["a.C.","d.C."],"dateFormat-medium":"d/MMM/yyyy","months-format-abbr":["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],"dateFormat-full":"EEEE, d' de 'MMMM' de 'yyyy","days-format-abbr":["dom","seg","ter","qua","qui","sex","sáb"],"dateFormat-short":"dd-MM-yyyy","months-format-wide":["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"],"days-standAlone-narrow":["D","S","T","Q","Q","S","S"],"days-format-wide":["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"],"field-weekday":"Day of the Week","field-second":"Second","field-week":"Week","pm":"PM","am":"AM","field-year":"Year","field-minute":"Minute","timeFormat-medium":"HH:mm:ss","field-hour":"Hour","field-day":"Day","field-dayperiod":"Dayperiod","field-month":"Month","field-era":"Era","timeFormat-short":"HH:mm","timeFormat-long":"HH:mm:ss z","field-zone":"Zone"};dojo.provide("dojo.i18n.calendar.nls.gregorianExtras");dojo.i18n.calendar.nls.gregorianExtras._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorianExtras.pt");dojo.i18n.calendar.nls.gregorianExtras.pt={"dateFormat-yearOnly":"yyyy"};dojo.provide("dojo.i18n.calendar.nls.gregorian");dojo.i18n.calendar.nls.gregorian._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorian.pt");dojo.i18n.calendar.nls.gregorian.pt={"months-standAlone-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"dateFormat-long":"d' de 'MMMM' de 'yyyy","timeFormat-full":"HH'H'mm'm'ss's' z","eras":["a.C.","d.C."],"dateFormat-medium":"d/MMM/yyyy","months-format-abbr":["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],"dateFormat-full":"EEEE, d' de 'MMMM' de 'yyyy","days-format-abbr":["dom","seg","ter","qua","qui","sex","sáb"],"dateFormat-short":"dd-MM-yyyy","months-format-wide":["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"],"days-standAlone-narrow":["D","S","T","Q","Q","S","S"],"days-format-wide":["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"],"field-weekday":"Day of the Week","field-second":"Second","field-week":"Week","pm":"PM","am":"AM","field-year":"Year","field-minute":"Minute","timeFormat-medium":"HH:mm:ss","field-hour":"Hour","field-day":"Day","field-dayperiod":"Dayperiod","field-month":"Month","field-era":"Era","timeFormat-short":"HH:mm","timeFormat-long":"HH:mm:ss z","field-zone":"Zone"};dojo.provide("dojo.widget.nls.TimePicker");dojo.widget.nls.TimePicker._built=true;dojo.provide("dojo.widget.nls.TimePicker.pt");dojo.widget.nls.TimePicker.pt={"any":"any"};dojo.provide("dojo.widget.nls.DropdownTimePicker");dojo.widget.nls.DropdownTimePicker._built=true;dojo.provide("dojo.widget.nls.DropdownTimePicker.pt");dojo.widget.nls.DropdownTimePicker.pt={"selectTime":"Select time"};dojo.provide("dojo.widget.nls.DropdownDatePicker");dojo.widget.nls.DropdownDatePicker._built=true;dojo.provide("dojo.widget.nls.DropdownDatePicker.pt");dojo.widget.nls.DropdownDatePicker.pt={"selectDate":"Select a date"}; \ No newline at end of file diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_xx.js b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_xx.js deleted file mode 100644 index 58996f3d7..000000000 --- a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_xx.js +++ /dev/null @@ -1,11 +0,0 @@ -/* - Copyright (c) 2004-2006, The Dojo Foundation - All Rights Reserved. - - Licensed under the Academic Free License version 2.1 or above OR the - modified BSD license. For more information on Dojo licensing, see: - - http://dojotoolkit.org/community/licensing.shtml -*/ - -dojo.provide("nls.dojo_xx");dojo.provide("dojo.i18n.calendar.nls.gregorian");dojo.i18n.calendar.nls.gregorian._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorian.xx");dojo.i18n.calendar.nls.gregorian.xx={"field-weekday":"Day of the Week","dateFormat-medium":"yyyy MMM d","field-second":"Second","field-week":"Week","pm":"PM","timeFormat-full":"HH:mm:ss z","months-standAlone-narrow":["1","2","3","4","5","6","7","8","9","10","11","12"],"am":"AM","days-standAlone-narrow":["1","2","3","4","5","6","7"],"field-year":"Year","eras":["BCE","CE"],"field-minute":"Minute","timeFormat-medium":"HH:mm:ss","field-hour":"Hour","dateFormat-long":"yyyy MMMM d","field-day":"Day","field-dayperiod":"Dayperiod","field-month":"Month","dateFormat-short":"yy/MM/dd","months-format-wide":["1","2","3","4","5","6","7","8","9","10","11","12"],"field-era":"Era","timeFormat-short":"HH:mm","months-format-abbr":["1","2","3","4","5","6","7","8","9","10","11","12"],"timeFormat-long":"HH:mm:ss z","days-format-wide":["1","2","3","4","5","6","7"],"dateFormat-full":"EEEE, yyyy MMMM dd","field-zone":"Zone","days-format-abbr":["1","2","3","4","5","6","7"]};dojo.provide("dojo.i18n.calendar.nls.gregorianExtras");dojo.i18n.calendar.nls.gregorianExtras._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorianExtras.xx");dojo.i18n.calendar.nls.gregorianExtras.xx={"dateFormat-yearOnly":"yyyy"};dojo.provide("dojo.i18n.calendar.nls.gregorian");dojo.i18n.calendar.nls.gregorian._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorian.xx");dojo.i18n.calendar.nls.gregorian.xx={"field-weekday":"Day of the Week","dateFormat-medium":"yyyy MMM d","field-second":"Second","field-week":"Week","pm":"PM","timeFormat-full":"HH:mm:ss z","months-standAlone-narrow":["1","2","3","4","5","6","7","8","9","10","11","12"],"am":"AM","days-standAlone-narrow":["1","2","3","4","5","6","7"],"field-year":"Year","eras":["BCE","CE"],"field-minute":"Minute","timeFormat-medium":"HH:mm:ss","field-hour":"Hour","dateFormat-long":"yyyy MMMM d","field-day":"Day","field-dayperiod":"Dayperiod","field-month":"Month","dateFormat-short":"yy/MM/dd","months-format-wide":["1","2","3","4","5","6","7","8","9","10","11","12"],"field-era":"Era","timeFormat-short":"HH:mm","months-format-abbr":["1","2","3","4","5","6","7","8","9","10","11","12"],"timeFormat-long":"HH:mm:ss z","days-format-wide":["1","2","3","4","5","6","7"],"dateFormat-full":"EEEE, yyyy MMMM dd","field-zone":"Zone","days-format-abbr":["1","2","3","4","5","6","7"]};dojo.provide("dojo.widget.nls.TimePicker");dojo.widget.nls.TimePicker._built=true;dojo.provide("dojo.widget.nls.TimePicker.xx");dojo.widget.nls.TimePicker.xx={"any":"any"};dojo.provide("dojo.widget.nls.DropdownTimePicker");dojo.widget.nls.DropdownTimePicker._built=true;dojo.provide("dojo.widget.nls.DropdownTimePicker.xx");dojo.widget.nls.DropdownTimePicker.xx={"selectTime":"Select time"};dojo.provide("dojo.widget.nls.DropdownDatePicker");dojo.widget.nls.DropdownDatePicker._built=true;dojo.provide("dojo.widget.nls.DropdownDatePicker.xx");dojo.widget.nls.DropdownDatePicker.xx={"selectDate":"Select a date"}; \ No newline at end of file diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_zh-cn.js b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_zh-cn.js deleted file mode 100644 index dcd9e7cd7..000000000 --- a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_zh-cn.js +++ /dev/null @@ -1,11 +0,0 @@ -/* - Copyright (c) 2004-2006, The Dojo Foundation - All Rights Reserved. - - Licensed under the Academic Free License version 2.1 or above OR the - modified BSD license. For more information on Dojo licensing, see: - - http://dojotoolkit.org/community/licensing.shtml -*/ - -dojo.provide("nls.dojo_zh-cn");dojo.provide("dojo.i18n.calendar.nls.gregorian");dojo.i18n.calendar.nls.gregorian._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorian.zh_cn");dojo.i18n.calendar.nls.gregorian.zh_cn={"dateFormat-medium":"yyyy-M-d","field-second":"ç§’é’Ÿ","field-week":"周","timeFormat-full":"ahh'æ—¶'mm'分'ss'ç§’' z","field-year":"å¹´","field-minute":"分钟","timeFormat-medium":"ahh:mm:ss","field-hour":"å°?æ—¶","dateFormat-long":"yyyy'å¹´'M'月'd'æ—¥'","field-day":"æ—¥","field-dayperiod":"上å?ˆ/下å?ˆ","field-month":"月","dateFormat-short":"yy-M-d","field-era":"时期","timeFormat-short":"ah:mm","timeFormat-long":"ahh'æ—¶'mm'分'ss'ç§’'","dateFormat-full":"yyyy'å¹´'M'月'd'æ—¥'EEEE","field-weekday":"周天","field-zone":"区域","days-standAlone-narrow":["æ—¥","一","二","三","å››","五","å…"],"eras":["公元å‰?","公元"],"am":"上å?ˆ","months-format-abbr":["一月","二月","三月","四月","五月","å…æœˆ","七月","八月","ä¹?月","å??月","å??一月","å??二月"],"days-format-abbr":["周日","周一","周二","周三","周四","周五","周å…"],"pm":"下å?ˆ","months-format-wide":["一月","二月","三月","四月","五月","å…æœˆ","七月","八月","ä¹?月","å??月","å??一月","å??二月"],"months-standAlone-narrow":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"days-format-wide":["星期日","星期一","星期二","星期三","星期四","星期五","星期å…"]};dojo.provide("dojo.i18n.calendar.nls.gregorianExtras");dojo.i18n.calendar.nls.gregorianExtras._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorianExtras.zh_cn");dojo.i18n.calendar.nls.gregorianExtras.zh_cn={"dateFormat-yearOnly":"yyyy'å¹´'"};dojo.provide("dojo.i18n.calendar.nls.gregorian");dojo.i18n.calendar.nls.gregorian._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorian.zh_cn");dojo.i18n.calendar.nls.gregorian.zh_cn={"dateFormat-medium":"yyyy-M-d","field-second":"ç§’é’Ÿ","field-week":"周","timeFormat-full":"ahh'æ—¶'mm'分'ss'ç§’' z","field-year":"å¹´","field-minute":"分钟","timeFormat-medium":"ahh:mm:ss","field-hour":"å°?æ—¶","dateFormat-long":"yyyy'å¹´'M'月'd'æ—¥'","field-day":"æ—¥","field-dayperiod":"上å?ˆ/下å?ˆ","field-month":"月","dateFormat-short":"yy-M-d","field-era":"时期","timeFormat-short":"ah:mm","timeFormat-long":"ahh'æ—¶'mm'分'ss'ç§’'","dateFormat-full":"yyyy'å¹´'M'月'd'æ—¥'EEEE","field-weekday":"周天","field-zone":"区域","days-standAlone-narrow":["æ—¥","一","二","三","å››","五","å…"],"eras":["公元å‰?","公元"],"am":"上å?ˆ","months-format-abbr":["一月","二月","三月","四月","五月","å…æœˆ","七月","八月","ä¹?月","å??月","å??一月","å??二月"],"days-format-abbr":["周日","周一","周二","周三","周四","周五","周å…"],"pm":"下å?ˆ","months-format-wide":["一月","二月","三月","四月","五月","å…æœˆ","七月","八月","ä¹?月","å??月","å??一月","å??二月"],"months-standAlone-narrow":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"days-format-wide":["星期日","星期一","星期二","星期三","星期四","星期五","星期å…"]};dojo.provide("dojo.widget.nls.TimePicker");dojo.widget.nls.TimePicker._built=true;dojo.provide("dojo.widget.nls.TimePicker.zh_cn");dojo.widget.nls.TimePicker.zh_cn={"any":"any"};dojo.provide("dojo.widget.nls.DropdownTimePicker");dojo.widget.nls.DropdownTimePicker._built=true;dojo.provide("dojo.widget.nls.DropdownTimePicker.zh_cn");dojo.widget.nls.DropdownTimePicker.zh_cn={"selectTime":"Select time"};dojo.provide("dojo.widget.nls.DropdownDatePicker");dojo.widget.nls.DropdownDatePicker._built=true;dojo.provide("dojo.widget.nls.DropdownDatePicker.zh_cn");dojo.widget.nls.DropdownDatePicker.zh_cn={"selectDate":"Select a date"}; \ No newline at end of file diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_zh-tw.js b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_zh-tw.js deleted file mode 100644 index 9240f366f..000000000 --- a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_zh-tw.js +++ /dev/null @@ -1,11 +0,0 @@ -/* - Copyright (c) 2004-2006, The Dojo Foundation - All Rights Reserved. - - Licensed under the Academic Free License version 2.1 or above OR the - modified BSD license. For more information on Dojo licensing, see: - - http://dojotoolkit.org/community/licensing.shtml -*/ - -dojo.provide("nls.dojo_zh-tw");dojo.provide("dojo.i18n.calendar.nls.gregorian");dojo.i18n.calendar.nls.gregorian._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorian.zh_tw");dojo.i18n.calendar.nls.gregorian.zh_tw={"dateFormat-medium":"yyyy'å¹´'M'月'd'æ—¥'","field-second":"ç§’","field-week":"週","timeFormat-full":"ahh'時'mm'分'ss'ç§’' z","eras":["西元å‰?","西元"],"field-year":"å¹´","field-minute":"分é?˜","timeFormat-medium":"ahh:mm:ss","field-hour":"å°?時","dateFormat-long":"yyyy'å¹´'M'月'd'æ—¥'","field-day":"æ•´æ—¥","field-dayperiod":"日間","field-month":"月","dateFormat-short":"yy'å¹´'M'月'd'æ—¥'","field-era":"年代","timeFormat-short":"ah:mm","months-format-abbr":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"timeFormat-long":"ahh'時'mm'分'ss'ç§’'","field-weekday":"週天","dateFormat-full":"yyyy'å¹´'M'月'd'æ—¥'EEEE","field-zone":"å?€åŸŸ","days-standAlone-narrow":["æ—¥","一","二","三","å››","五","å…"],"am":"上å?ˆ","days-format-abbr":["周日","周一","周二","周三","周四","周五","周å…"],"pm":"下å?ˆ","months-format-wide":["一月","二月","三月","四月","五月","å…æœˆ","七月","八月","ä¹?月","å??月","å??一月","å??二月"],"months-standAlone-narrow":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"days-format-wide":["星期日","星期一","星期二","星期三","星期四","星期五","星期å…"]};dojo.provide("dojo.i18n.calendar.nls.gregorianExtras");dojo.i18n.calendar.nls.gregorianExtras._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorianExtras.zh_tw");dojo.i18n.calendar.nls.gregorianExtras.zh_tw={"dateFormat-yearOnly":"yyyy'å¹´'"};dojo.provide("dojo.i18n.calendar.nls.gregorian");dojo.i18n.calendar.nls.gregorian._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorian.zh_tw");dojo.i18n.calendar.nls.gregorian.zh_tw={"dateFormat-medium":"yyyy'å¹´'M'月'd'æ—¥'","field-second":"ç§’","field-week":"週","timeFormat-full":"ahh'時'mm'分'ss'ç§’' z","eras":["西元å‰?","西元"],"field-year":"å¹´","field-minute":"分é?˜","timeFormat-medium":"ahh:mm:ss","field-hour":"å°?時","dateFormat-long":"yyyy'å¹´'M'月'd'æ—¥'","field-day":"æ•´æ—¥","field-dayperiod":"日間","field-month":"月","dateFormat-short":"yy'å¹´'M'月'd'æ—¥'","field-era":"年代","timeFormat-short":"ah:mm","months-format-abbr":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"timeFormat-long":"ahh'時'mm'分'ss'ç§’'","field-weekday":"週天","dateFormat-full":"yyyy'å¹´'M'月'd'æ—¥'EEEE","field-zone":"å?€åŸŸ","days-standAlone-narrow":["æ—¥","一","二","三","å››","五","å…"],"am":"上å?ˆ","days-format-abbr":["周日","周一","周二","周三","周四","周五","周å…"],"pm":"下å?ˆ","months-format-wide":["一月","二月","三月","四月","五月","å…æœˆ","七月","八月","ä¹?月","å??月","å??一月","å??二月"],"months-standAlone-narrow":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"days-format-wide":["星期日","星期一","星期二","星期三","星期四","星期五","星期å…"]};dojo.provide("dojo.widget.nls.TimePicker");dojo.widget.nls.TimePicker._built=true;dojo.provide("dojo.widget.nls.TimePicker.zh_tw");dojo.widget.nls.TimePicker.zh_tw={"any":"any"};dojo.provide("dojo.widget.nls.DropdownTimePicker");dojo.widget.nls.DropdownTimePicker._built=true;dojo.provide("dojo.widget.nls.DropdownTimePicker.zh_tw");dojo.widget.nls.DropdownTimePicker.zh_tw={"selectTime":"Select time"};dojo.provide("dojo.widget.nls.DropdownDatePicker");dojo.widget.nls.DropdownDatePicker._built=true;dojo.provide("dojo.widget.nls.DropdownDatePicker.zh_tw");dojo.widget.nls.DropdownDatePicker.zh_tw={"selectDate":"Select a date"}; \ No newline at end of file diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_zh.js b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_zh.js deleted file mode 100644 index 6b4cc214a..000000000 --- a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/nls/dojo_zh.js +++ /dev/null @@ -1,11 +0,0 @@ -/* - Copyright (c) 2004-2006, The Dojo Foundation - All Rights Reserved. - - Licensed under the Academic Free License version 2.1 or above OR the - modified BSD license. For more information on Dojo licensing, see: - - http://dojotoolkit.org/community/licensing.shtml -*/ - -dojo.provide("nls.dojo_zh");dojo.provide("dojo.i18n.calendar.nls.gregorian");dojo.i18n.calendar.nls.gregorian._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorian.zh");dojo.i18n.calendar.nls.gregorian.zh={"days-standAlone-narrow":["æ—¥","一","二","三","å››","五","å…"],"eras":["公元å‰?","公元"],"am":"上å?ˆ","months-format-abbr":["一月","二月","三月","四月","五月","å…æœˆ","七月","八月","ä¹?月","å??月","å??一月","å??二月"],"days-format-abbr":["周日","周一","周二","周三","周四","周五","周å…"],"pm":"下å?ˆ","months-format-wide":["一月","二月","三月","四月","五月","å…æœˆ","七月","八月","ä¹?月","å??月","å??一月","å??二月"],"months-standAlone-narrow":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"days-format-wide":["星期日","星期一","星期二","星期三","星期四","星期五","星期å…"],"field-weekday":"Day of the Week","dateFormat-medium":"yyyy MMM d","field-second":"Second","field-week":"Week","timeFormat-full":"HH:mm:ss z","field-year":"Year","field-minute":"Minute","timeFormat-medium":"HH:mm:ss","field-hour":"Hour","dateFormat-long":"yyyy MMMM d","field-day":"Day","field-dayperiod":"Dayperiod","field-month":"Month","dateFormat-short":"yy/MM/dd","field-era":"Era","timeFormat-short":"HH:mm","timeFormat-long":"HH:mm:ss z","dateFormat-full":"EEEE, yyyy MMMM dd","field-zone":"Zone"};dojo.provide("dojo.i18n.calendar.nls.gregorianExtras");dojo.i18n.calendar.nls.gregorianExtras._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorianExtras.zh");dojo.i18n.calendar.nls.gregorianExtras.zh={"dateFormat-yearOnly":"yyyy'å¹´'"};dojo.provide("dojo.i18n.calendar.nls.gregorian");dojo.i18n.calendar.nls.gregorian._built=true;dojo.provide("dojo.i18n.calendar.nls.gregorian.zh");dojo.i18n.calendar.nls.gregorian.zh={"days-standAlone-narrow":["æ—¥","一","二","三","å››","五","å…"],"eras":["公元å‰?","公元"],"am":"上å?ˆ","months-format-abbr":["一月","二月","三月","四月","五月","å…æœˆ","七月","八月","ä¹?月","å??月","å??一月","å??二月"],"days-format-abbr":["周日","周一","周二","周三","周四","周五","周å…"],"pm":"下å?ˆ","months-format-wide":["一月","二月","三月","四月","五月","å…æœˆ","七月","八月","ä¹?月","å??月","å??一月","å??二月"],"months-standAlone-narrow":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"days-format-wide":["星期日","星期一","星期二","星期三","星期四","星期五","星期å…"],"field-weekday":"Day of the Week","dateFormat-medium":"yyyy MMM d","field-second":"Second","field-week":"Week","timeFormat-full":"HH:mm:ss z","field-year":"Year","field-minute":"Minute","timeFormat-medium":"HH:mm:ss","field-hour":"Hour","dateFormat-long":"yyyy MMMM d","field-day":"Day","field-dayperiod":"Dayperiod","field-month":"Month","dateFormat-short":"yy/MM/dd","field-era":"Era","timeFormat-short":"HH:mm","timeFormat-long":"HH:mm:ss z","dateFormat-full":"EEEE, yyyy MMMM dd","field-zone":"Zone"};dojo.provide("dojo.widget.nls.TimePicker");dojo.widget.nls.TimePicker._built=true;dojo.provide("dojo.widget.nls.TimePicker.zh");dojo.widget.nls.TimePicker.zh={"any":"any"};dojo.provide("dojo.widget.nls.DropdownTimePicker");dojo.widget.nls.DropdownTimePicker._built=true;dojo.provide("dojo.widget.nls.DropdownTimePicker.zh");dojo.widget.nls.DropdownTimePicker.zh={"selectTime":"Select time"};dojo.provide("dojo.widget.nls.DropdownDatePicker");dojo.widget.nls.DropdownDatePicker._built=true;dojo.provide("dojo.widget.nls.DropdownDatePicker.zh");dojo.widget.nls.DropdownDatePicker.zh={"selectDate":"Select a date"}; \ No newline at end of file diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/AdapterRegistry.js b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/AdapterRegistry.js deleted file mode 100644 index 4d8b58fbf..000000000 --- a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/AdapterRegistry.js +++ /dev/null @@ -1,44 +0,0 @@ -/* - Copyright (c) 2004-2006, The Dojo Foundation - All Rights Reserved. - - Licensed under the Academic Free License version 2.1 or above OR the - modified BSD license. For more information on Dojo licensing, see: - - http://dojotoolkit.org/community/licensing.shtml -*/ - - - -dojo.provide("dojo.AdapterRegistry"); -dojo.require("dojo.lang.func"); -dojo.AdapterRegistry = function (returnWrappers) { - this.pairs = []; - this.returnWrappers = returnWrappers || false; -}; -dojo.lang.extend(dojo.AdapterRegistry, {register:function (name, check, wrap, directReturn, override) { - var type = (override) ? "unshift" : "push"; - this.pairs[type]([name, check, wrap, directReturn]); -}, match:function () { - for (var i = 0; i < this.pairs.length; i++) { - var pair = this.pairs[i]; - if (pair[1].apply(this, arguments)) { - if ((pair[3]) || (this.returnWrappers)) { - return pair[2]; - } else { - return pair[2].apply(this, arguments); - } - } - } - throw new Error("No match found"); -}, unregister:function (name) { - for (var i = 0; i < this.pairs.length; i++) { - var pair = this.pairs[i]; - if (pair[0] == name) { - this.pairs.splice(i, 1); - return true; - } - } - return false; -}}); - diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/Deferred.js b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/Deferred.js deleted file mode 100644 index 193f2cc5a..000000000 --- a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/Deferred.js +++ /dev/null @@ -1,165 +0,0 @@ -/* - Copyright (c) 2004-2006, The Dojo Foundation - All Rights Reserved. - - Licensed under the Academic Free License version 2.1 or above OR the - modified BSD license. For more information on Dojo licensing, see: - - http://dojotoolkit.org/community/licensing.shtml -*/ - - - -dojo.provide("dojo.Deferred"); -dojo.require("dojo.lang.func"); -dojo.Deferred = function (canceller) { - this.chain = []; - this.id = this._nextId(); - this.fired = -1; - this.paused = 0; - this.results = [null, null]; - this.canceller = canceller; - this.silentlyCancelled = false; -}; -dojo.lang.extend(dojo.Deferred, {getFunctionFromArgs:function () { - var a = arguments; - if ((a[0]) && (!a[1])) { - if (dojo.lang.isFunction(a[0])) { - return a[0]; - } else { - if (dojo.lang.isString(a[0])) { - return dj_global[a[0]]; - } - } - } else { - if ((a[0]) && (a[1])) { - return dojo.lang.hitch(a[0], a[1]); - } - } - return null; -}, makeCalled:function () { - var deferred = new dojo.Deferred(); - deferred.callback(); - return deferred; -}, repr:function () { - var state; - if (this.fired == -1) { - state = "unfired"; - } else { - if (this.fired == 0) { - state = "success"; - } else { - state = "error"; - } - } - return "Deferred(" + this.id + ", " + state + ")"; -}, toString:dojo.lang.forward("repr"), _nextId:(function () { - var n = 1; - return function () { - return n++; - }; -})(), cancel:function () { - if (this.fired == -1) { - if (this.canceller) { - this.canceller(this); - } else { - this.silentlyCancelled = true; - } - if (this.fired == -1) { - this.errback(new Error(this.repr())); - } - } else { - if ((this.fired == 0) && (this.results[0] instanceof dojo.Deferred)) { - this.results[0].cancel(); - } - } -}, _pause:function () { - this.paused++; -}, _unpause:function () { - this.paused--; - if ((this.paused == 0) && (this.fired >= 0)) { - this._fire(); - } -}, _continue:function (res) { - this._resback(res); - this._unpause(); -}, _resback:function (res) { - this.fired = ((res instanceof Error) ? 1 : 0); - this.results[this.fired] = res; - this._fire(); -}, _check:function () { - if (this.fired != -1) { - if (!this.silentlyCancelled) { - dojo.raise("already called!"); - } - this.silentlyCancelled = false; - return; - } -}, callback:function (res) { - this._check(); - this._resback(res); -}, errback:function (res) { - this._check(); - if (!(res instanceof Error)) { - res = new Error(res); - } - this._resback(res); -}, addBoth:function (cb, cbfn) { - var enclosed = this.getFunctionFromArgs(cb, cbfn); - if (arguments.length > 2) { - enclosed = dojo.lang.curryArguments(null, enclosed, arguments, 2); - } - return this.addCallbacks(enclosed, enclosed); -}, addCallback:function (cb, cbfn) { - var enclosed = this.getFunctionFromArgs(cb, cbfn); - if (arguments.length > 2) { - enclosed = dojo.lang.curryArguments(null, enclosed, arguments, 2); - } - return this.addCallbacks(enclosed, null); -}, addErrback:function (cb, cbfn) { - var enclosed = this.getFunctionFromArgs(cb, cbfn); - if (arguments.length > 2) { - enclosed = dojo.lang.curryArguments(null, enclosed, arguments, 2); - } - return this.addCallbacks(null, enclosed); - return this.addCallbacks(null, cbfn); -}, addCallbacks:function (cb, eb) { - this.chain.push([cb, eb]); - if (this.fired >= 0) { - this._fire(); - } - return this; -}, _fire:function () { - var chain = this.chain; - var fired = this.fired; - var res = this.results[fired]; - var self = this; - var cb = null; - while (chain.length > 0 && this.paused == 0) { - var pair = chain.shift(); - var f = pair[fired]; - if (f == null) { - continue; - } - try { - res = f(res); - fired = ((res instanceof Error) ? 1 : 0); - if (res instanceof dojo.Deferred) { - cb = function (res) { - self._continue(res); - }; - this._pause(); - } - } - catch (err) { - fired = 1; - res = err; - } - } - this.fired = fired; - this.results[fired] = res; - if ((cb) && (this.paused)) { - res.addBoth(cb); - } -}}); - diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/DeferredList.js b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/DeferredList.js deleted file mode 100644 index 34b33199f..000000000 --- a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/DeferredList.js +++ /dev/null @@ -1,77 +0,0 @@ -/* - Copyright (c) 2004-2006, The Dojo Foundation - All Rights Reserved. - - Licensed under the Academic Free License version 2.1 or above OR the - modified BSD license. For more information on Dojo licensing, see: - - http://dojotoolkit.org/community/licensing.shtml -*/ - - - -dojo.require("dojo.Deferred"); -dojo.provide("dojo.DeferredList"); -dojo.DeferredList = function (list, fireOnOneCallback, fireOnOneErrback, consumeErrors, canceller) { - this.list = list; - this.resultList = new Array(this.list.length); - this.chain = []; - this.id = this._nextId(); - this.fired = -1; - this.paused = 0; - this.results = [null, null]; - this.canceller = canceller; - this.silentlyCancelled = false; - if (this.list.length === 0 && !fireOnOneCallback) { - this.callback(this.resultList); - } - this.finishedCount = 0; - this.fireOnOneCallback = fireOnOneCallback; - this.fireOnOneErrback = fireOnOneErrback; - this.consumeErrors = consumeErrors; - var index = 0; - var _this = this; - dojo.lang.forEach(this.list, function (d) { - var _index = index; - d.addCallback(function (r) { - _this._cbDeferred(_index, true, r); - }); - d.addErrback(function (r) { - _this._cbDeferred(_index, false, r); - }); - index++; - }); -}; -dojo.inherits(dojo.DeferredList, dojo.Deferred); -dojo.lang.extend(dojo.DeferredList, {_cbDeferred:function (index, succeeded, result) { - this.resultList[index] = [succeeded, result]; - this.finishedCount += 1; - if (this.fired !== 0) { - if (succeeded && this.fireOnOneCallback) { - this.callback([index, result]); - } else { - if (!succeeded && this.fireOnOneErrback) { - this.errback(result); - } else { - if (this.finishedCount == this.list.length) { - this.callback(this.resultList); - } - } - } - } - if (!succeeded && this.consumeErrors) { - result = null; - } - return result; -}, gatherResults:function (deferredList) { - var d = new dojo.DeferredList(deferredList, false, true, false); - d.addCallback(function (results) { - var ret = []; - for (var i = 0; i < results.length; i++) { - ret.push(results[i][1]); - } - return ret; - }); - return d; -}}); - diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/a11y.js b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/a11y.js deleted file mode 100644 index fc11bbc13..000000000 --- a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/a11y.js +++ /dev/null @@ -1,54 +0,0 @@ -/* - Copyright (c) 2004-2006, The Dojo Foundation - All Rights Reserved. - - Licensed under the Academic Free License version 2.1 or above OR the - modified BSD license. For more information on Dojo licensing, see: - - http://dojotoolkit.org/community/licensing.shtml -*/ - - - -dojo.provide("dojo.a11y"); -dojo.require("dojo.uri.*"); -dojo.require("dojo.html.common"); -dojo.a11y = {imgPath:dojo.uri.moduleUri("dojo.widget", "templates/images"), doAccessibleCheck:true, accessible:null, checkAccessible:function () { - if (this.accessible === null) { - this.accessible = false; - if (this.doAccessibleCheck == true) { - this.accessible = this.testAccessible(); - } - } - return this.accessible; -}, testAccessible:function () { - this.accessible = false; - if (dojo.render.html.ie || dojo.render.html.mozilla) { - var div = document.createElement("div"); - div.style.backgroundImage = "url(\"" + this.imgPath + "/tab_close.gif\")"; - dojo.body().appendChild(div); - var bkImg = null; - if (window.getComputedStyle) { - var cStyle = getComputedStyle(div, ""); - bkImg = cStyle.getPropertyValue("background-image"); - } else { - bkImg = div.currentStyle.backgroundImage; - } - var bUseImgElem = false; - if (bkImg != null && (bkImg == "none" || bkImg == "url(invalid-url:)")) { - this.accessible = true; - } - dojo.body().removeChild(div); - } - return this.accessible; -}, setCheckAccessible:function (bTest) { - this.doAccessibleCheck = bTest; -}, setAccessibleMode:function () { - if (this.accessible === null) { - if (this.checkAccessible()) { - dojo.render.html.prefixes.unshift("a11y"); - } - } - return this.accessible; -}}; - diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/animation.js b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/animation.js deleted file mode 100644 index 71ed75b67..000000000 --- a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/animation.js +++ /dev/null @@ -1,16 +0,0 @@ -/* - Copyright (c) 2004-2006, The Dojo Foundation - All Rights Reserved. - - Licensed under the Academic Free License version 2.1 or above OR the - modified BSD license. For more information on Dojo licensing, see: - - http://dojotoolkit.org/community/licensing.shtml -*/ - - - -dojo.provide("dojo.animation"); -dojo.require("dojo.animation.Animation"); -dojo.deprecated("dojo.animation is slated for removal in 0.5; use dojo.lfx instead.", "0.5"); - diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/animation/Animation.js b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/animation/Animation.js deleted file mode 100644 index 597e01fa5..000000000 --- a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/animation/Animation.js +++ /dev/null @@ -1,180 +0,0 @@ -/* - Copyright (c) 2004-2006, The Dojo Foundation - All Rights Reserved. - - Licensed under the Academic Free License version 2.1 or above OR the - modified BSD license. For more information on Dojo licensing, see: - - http://dojotoolkit.org/community/licensing.shtml -*/ - - - -dojo.provide("dojo.animation.Animation"); -dojo.require("dojo.animation.AnimationEvent"); -dojo.require("dojo.lang.func"); -dojo.require("dojo.math"); -dojo.require("dojo.math.curves"); -dojo.deprecated("dojo.animation.Animation is slated for removal in 0.5; use dojo.lfx.* instead.", "0.5"); -dojo.animation.Animation = function (curve, duration, accel, repeatCount, rate) { - if (dojo.lang.isArray(curve)) { - curve = new dojo.math.curves.Line(curve[0], curve[1]); - } - this.curve = curve; - this.duration = duration; - this.repeatCount = repeatCount || 0; - this.rate = rate || 25; - if (accel) { - if (dojo.lang.isFunction(accel.getValue)) { - this.accel = accel; - } else { - var i = 0.35 * accel + 0.5; - this.accel = new dojo.math.curves.CatmullRom([[0], [i], [1]], 0.45); - } - } -}; -dojo.lang.extend(dojo.animation.Animation, {curve:null, duration:0, repeatCount:0, accel:null, onBegin:null, onAnimate:null, onEnd:null, onPlay:null, onPause:null, onStop:null, handler:null, _animSequence:null, _startTime:null, _endTime:null, _lastFrame:null, _timer:null, _percent:0, _active:false, _paused:false, _startRepeatCount:0, play:function (gotoStart) { - if (gotoStart) { - clearTimeout(this._timer); - this._active = false; - this._paused = false; - this._percent = 0; - } else { - if (this._active && !this._paused) { - return; - } - } - this._startTime = new Date().valueOf(); - if (this._paused) { - this._startTime -= (this.duration * this._percent / 100); - } - this._endTime = this._startTime + this.duration; - this._lastFrame = this._startTime; - var e = new dojo.animation.AnimationEvent(this, null, this.curve.getValue(this._percent), this._startTime, this._startTime, this._endTime, this.duration, this._percent, 0); - this._active = true; - this._paused = false; - if (this._percent == 0) { - if (!this._startRepeatCount) { - this._startRepeatCount = this.repeatCount; - } - e.type = "begin"; - if (typeof this.handler == "function") { - this.handler(e); - } - if (typeof this.onBegin == "function") { - this.onBegin(e); - } - } - e.type = "play"; - if (typeof this.handler == "function") { - this.handler(e); - } - if (typeof this.onPlay == "function") { - this.onPlay(e); - } - if (this._animSequence) { - this._animSequence._setCurrent(this); - } - this._cycle(); -}, pause:function () { - clearTimeout(this._timer); - if (!this._active) { - return; - } - this._paused = true; - var e = new dojo.animation.AnimationEvent(this, "pause", this.curve.getValue(this._percent), this._startTime, new Date().valueOf(), this._endTime, this.duration, this._percent, 0); - if (typeof this.handler == "function") { - this.handler(e); - } - if (typeof this.onPause == "function") { - this.onPause(e); - } -}, playPause:function () { - if (!this._active || this._paused) { - this.play(); - } else { - this.pause(); - } -}, gotoPercent:function (pct, andPlay) { - clearTimeout(this._timer); - this._active = true; - this._paused = true; - this._percent = pct; - if (andPlay) { - this.play(); - } -}, stop:function (gotoEnd) { - clearTimeout(this._timer); - var step = this._percent / 100; - if (gotoEnd) { - step = 1; - } - var e = new dojo.animation.AnimationEvent(this, "stop", this.curve.getValue(step), this._startTime, new Date().valueOf(), this._endTime, this.duration, this._percent); - if (typeof this.handler == "function") { - this.handler(e); - } - if (typeof this.onStop == "function") { - this.onStop(e); - } - this._active = false; - this._paused = false; -}, status:function () { - if (this._active) { - return this._paused ? "paused" : "playing"; - } else { - return "stopped"; - } -}, _cycle:function () { - clearTimeout(this._timer); - if (this._active) { - var curr = new Date().valueOf(); - var step = (curr - this._startTime) / (this._endTime - this._startTime); - var fps = 1000 / (curr - this._lastFrame); - this._lastFrame = curr; - if (step >= 1) { - step = 1; - this._percent = 100; - } else { - this._percent = step * 100; - } - if (this.accel && this.accel.getValue) { - step = this.accel.getValue(step); - } - var e = new dojo.animation.AnimationEvent(this, "animate", this.curve.getValue(step), this._startTime, curr, this._endTime, this.duration, this._percent, Math.round(fps)); - if (typeof this.handler == "function") { - this.handler(e); - } - if (typeof this.onAnimate == "function") { - this.onAnimate(e); - } - if (step < 1) { - this._timer = setTimeout(dojo.lang.hitch(this, "_cycle"), this.rate); - } else { - e.type = "end"; - this._active = false; - if (typeof this.handler == "function") { - this.handler(e); - } - if (typeof this.onEnd == "function") { - this.onEnd(e); - } - if (this.repeatCount > 0) { - this.repeatCount--; - this.play(true); - } else { - if (this.repeatCount == -1) { - this.play(true); - } else { - if (this._startRepeatCount) { - this.repeatCount = this._startRepeatCount; - this._startRepeatCount = 0; - } - if (this._animSequence) { - this._animSequence._playNext(); - } - } - } - } - } -}}); - diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/animation/AnimationEvent.js b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/animation/AnimationEvent.js deleted file mode 100644 index 0d3132685..000000000 --- a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/animation/AnimationEvent.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - Copyright (c) 2004-2006, The Dojo Foundation - All Rights Reserved. - - Licensed under the Academic Free License version 2.1 or above OR the - modified BSD license. For more information on Dojo licensing, see: - - http://dojotoolkit.org/community/licensing.shtml -*/ - - - -dojo.provide("dojo.animation.AnimationEvent"); -dojo.require("dojo.lang.common"); -dojo.deprecated("dojo.animation.AnimationEvent is slated for removal in 0.5; use dojo.lfx.* instead.", "0.5"); -dojo.animation.AnimationEvent = function (animation, type, coords, startTime, currentTime, endTime, duration, percent, fps) { - this.type = type; - this.animation = animation; - this.coords = coords; - this.x = coords[0]; - this.y = coords[1]; - this.z = coords[2]; - this.startTime = startTime; - this.currentTime = currentTime; - this.endTime = endTime; - this.duration = duration; - this.percent = percent; - this.fps = fps; -}; -dojo.extend(dojo.animation.AnimationEvent, {coordsAsInts:function () { - var cints = new Array(this.coords.length); - for (var i = 0; i < this.coords.length; i++) { - cints[i] = Math.round(this.coords[i]); - } - return cints; -}}); - diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/animation/AnimationSequence.js b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/animation/AnimationSequence.js deleted file mode 100644 index 6d23c6195..000000000 --- a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/animation/AnimationSequence.js +++ /dev/null @@ -1,128 +0,0 @@ -/* - Copyright (c) 2004-2006, The Dojo Foundation - All Rights Reserved. - - Licensed under the Academic Free License version 2.1 or above OR the - modified BSD license. For more information on Dojo licensing, see: - - http://dojotoolkit.org/community/licensing.shtml -*/ - - - -dojo.provide("dojo.animation.AnimationSequence"); -dojo.require("dojo.animation.AnimationEvent"); -dojo.require("dojo.animation.Animation"); -dojo.deprecated("dojo.animation.AnimationSequence is slated for removal in 0.5; use dojo.lfx.* instead.", "0.5"); -dojo.animation.AnimationSequence = function (repeatCount) { - this._anims = []; - this.repeatCount = repeatCount || 0; -}; -dojo.lang.extend(dojo.animation.AnimationSequence, {repeatCount:0, _anims:[], _currAnim:-1, onBegin:null, onEnd:null, onNext:null, handler:null, add:function () { - for (var i = 0; i < arguments.length; i++) { - this._anims.push(arguments[i]); - arguments[i]._animSequence = this; - } -}, remove:function (anim) { - for (var i = 0; i < this._anims.length; i++) { - if (this._anims[i] == anim) { - this._anims[i]._animSequence = null; - this._anims.splice(i, 1); - break; - } - } -}, removeAll:function () { - for (var i = 0; i < this._anims.length; i++) { - this._anims[i]._animSequence = null; - } - this._anims = []; - this._currAnim = -1; -}, clear:function () { - this.removeAll(); -}, play:function (gotoStart) { - if (this._anims.length == 0) { - return; - } - if (gotoStart || !this._anims[this._currAnim]) { - this._currAnim = 0; - } - if (this._anims[this._currAnim]) { - if (this._currAnim == 0) { - var e = {type:"begin", animation:this._anims[this._currAnim]}; - if (typeof this.handler == "function") { - this.handler(e); - } - if (typeof this.onBegin == "function") { - this.onBegin(e); - } - } - this._anims[this._currAnim].play(gotoStart); - } -}, pause:function () { - if (this._anims[this._currAnim]) { - this._anims[this._currAnim].pause(); - } -}, playPause:function () { - if (this._anims.length == 0) { - return; - } - if (this._currAnim == -1) { - this._currAnim = 0; - } - if (this._anims[this._currAnim]) { - this._anims[this._currAnim].playPause(); - } -}, stop:function () { - if (this._anims[this._currAnim]) { - this._anims[this._currAnim].stop(); - } -}, status:function () { - if (this._anims[this._currAnim]) { - return this._anims[this._currAnim].status(); - } else { - return "stopped"; - } -}, _setCurrent:function (anim) { - for (var i = 0; i < this._anims.length; i++) { - if (this._anims[i] == anim) { - this._currAnim = i; - break; - } - } -}, _playNext:function () { - if (this._currAnim == -1 || this._anims.length == 0) { - return; - } - this._currAnim++; - if (this._anims[this._currAnim]) { - var e = {type:"next", animation:this._anims[this._currAnim]}; - if (typeof this.handler == "function") { - this.handler(e); - } - if (typeof this.onNext == "function") { - this.onNext(e); - } - this._anims[this._currAnim].play(true); - } else { - var e = {type:"end", animation:this._anims[this._anims.length - 1]}; - if (typeof this.handler == "function") { - this.handler(e); - } - if (typeof this.onEnd == "function") { - this.onEnd(e); - } - if (this.repeatCount > 0) { - this._currAnim = 0; - this.repeatCount--; - this._anims[this._currAnim].play(true); - } else { - if (this.repeatCount == -1) { - this._currAnim = 0; - this._anims[this._currAnim].play(true); - } else { - this._currAnim = -1; - } - } - } -}}); - diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/animation/Timer.js b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/animation/Timer.js deleted file mode 100644 index d96e7c351..000000000 --- a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/animation/Timer.js +++ /dev/null @@ -1,17 +0,0 @@ -/* - Copyright (c) 2004-2006, The Dojo Foundation - All Rights Reserved. - - Licensed under the Academic Free License version 2.1 or above OR the - modified BSD license. For more information on Dojo licensing, see: - - http://dojotoolkit.org/community/licensing.shtml -*/ - - - -dojo.provide("dojo.animation.Timer"); -dojo.require("dojo.lang.timing.Timer"); -dojo.deprecated("dojo.animation.Timer is now dojo.lang.timing.Timer", "0.5"); -dojo.animation.Timer = dojo.lang.timing.Timer; - diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/animation/__package__.js b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/animation/__package__.js deleted file mode 100644 index 91cd16dec..000000000 --- a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/animation/__package__.js +++ /dev/null @@ -1,16 +0,0 @@ -/* - Copyright (c) 2004-2006, The Dojo Foundation - All Rights Reserved. - - Licensed under the Academic Free License version 2.1 or above OR the - modified BSD license. For more information on Dojo licensing, see: - - http://dojotoolkit.org/community/licensing.shtml -*/ - - - -dojo.kwCompoundRequire({common:["dojo.animation.AnimationEvent", "dojo.animation.Animation", "dojo.animation.AnimationSequence"]}); -dojo.provide("dojo.animation.*"); -dojo.deprecated("dojo.Animation.* is slated for removal in 0.5; use dojo.lfx.* instead.", "0.5"); - diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/behavior.js b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/behavior.js deleted file mode 100644 index 035cc9ac7..000000000 --- a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/behavior.js +++ /dev/null @@ -1,150 +0,0 @@ -/* - Copyright (c) 2004-2006, The Dojo Foundation - All Rights Reserved. - - Licensed under the Academic Free License version 2.1 or above OR the - modified BSD license. For more information on Dojo licensing, see: - - http://dojotoolkit.org/community/licensing.shtml -*/ - - - -dojo.provide("dojo.behavior"); -dojo.require("dojo.event.*"); -dojo.require("dojo.experimental"); -dojo.experimental("dojo.behavior"); -dojo.behavior = new function () { - function arrIn(obj, name) { - if (!obj[name]) { - obj[name] = []; - } - return obj[name]; - } - function forIn(obj, scope, func) { - var tmpObj = {}; - for (var x in obj) { - if (typeof tmpObj[x] == "undefined") { - if (!func) { - scope(obj[x], x); - } else { - func.call(scope, obj[x], x); - } - } - } - } - this.behaviors = {}; - this.add = function (behaviorObj) { - var tmpObj = {}; - forIn(behaviorObj, this, function (behavior, name) { - var tBehavior = arrIn(this.behaviors, name); - if ((dojo.lang.isString(behavior)) || (dojo.lang.isFunction(behavior))) { - behavior = {found:behavior}; - } - forIn(behavior, function (rule, ruleName) { - arrIn(tBehavior, ruleName).push(rule); - }); - }); - }; - this.apply = function () { - dojo.profile.start("dojo.behavior.apply"); - var r = dojo.render.html; - var safariGoodEnough = (!r.safari); - if (r.safari) { - var uas = r.UA.split("AppleWebKit/")[1]; - if (parseInt(uas.match(/[0-9.]{3,}/)) >= 420) { - safariGoodEnough = true; - } - } - if ((dj_undef("behaviorFastParse", djConfig) ? (safariGoodEnough) : djConfig["behaviorFastParse"])) { - this.applyFast(); - } else { - this.applySlow(); - } - dojo.profile.end("dojo.behavior.apply"); - }; - this.matchCache = {}; - this.elementsById = function (id, handleRemoved) { - var removed = []; - var added = []; - arrIn(this.matchCache, id); - if (handleRemoved) { - var nodes = this.matchCache[id]; - for (var x = 0; x < nodes.length; x++) { - if (nodes[x].id != "") { - removed.push(nodes[x]); - nodes.splice(x, 1); - x--; - } - } - } - var tElem = dojo.byId(id); - while (tElem) { - if (!tElem["idcached"]) { - added.push(tElem); - } - tElem.id = ""; - tElem = dojo.byId(id); - } - this.matchCache[id] = this.matchCache[id].concat(added); - dojo.lang.forEach(this.matchCache[id], function (node) { - node.id = id; - node.idcached = true; - }); - return {"removed":removed, "added":added, "match":this.matchCache[id]}; - }; - this.applyToNode = function (node, action, ruleSetName) { - if (typeof action == "string") { - dojo.event.topic.registerPublisher(action, node, ruleSetName); - } else { - if (typeof action == "function") { - if (ruleSetName == "found") { - action(node); - } else { - dojo.event.connect(node, ruleSetName, action); - } - } else { - action.srcObj = node; - action.srcFunc = ruleSetName; - dojo.event.kwConnect(action); - } - } - }; - this.applyFast = function () { - dojo.profile.start("dojo.behavior.applyFast"); - forIn(this.behaviors, function (tBehavior, id) { - var elems = dojo.behavior.elementsById(id); - dojo.lang.forEach(elems.added, function (elem) { - forIn(tBehavior, function (ruleSet, ruleSetName) { - if (dojo.lang.isArray(ruleSet)) { - dojo.lang.forEach(ruleSet, function (action) { - dojo.behavior.applyToNode(elem, action, ruleSetName); - }); - } - }); - }); - }); - dojo.profile.end("dojo.behavior.applyFast"); - }; - this.applySlow = function () { - dojo.profile.start("dojo.behavior.applySlow"); - var all = document.getElementsByTagName("*"); - var allLen = all.length; - for (var x = 0; x < allLen; x++) { - var elem = all[x]; - if ((elem.id) && (!elem["behaviorAdded"]) && (this.behaviors[elem.id])) { - elem["behaviorAdded"] = true; - forIn(this.behaviors[elem.id], function (ruleSet, ruleSetName) { - if (dojo.lang.isArray(ruleSet)) { - dojo.lang.forEach(ruleSet, function (action) { - dojo.behavior.applyToNode(elem, action, ruleSetName); - }); - } - }); - } - } - dojo.profile.end("dojo.behavior.applySlow"); - }; -}; -dojo.addOnLoad(dojo.behavior, "apply"); - diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/bootstrap1.js b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/bootstrap1.js deleted file mode 100644 index f55598b83..000000000 --- a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/bootstrap1.js +++ /dev/null @@ -1,160 +0,0 @@ -/* - Copyright (c) 2004-2006, The Dojo Foundation - All Rights Reserved. - - Licensed under the Academic Free License version 2.1 or above OR the - modified BSD license. For more information on Dojo licensing, see: - - http://dojotoolkit.org/community/licensing.shtml -*/ - - - -var dj_global = this; -var dj_currentContext = this; -function dj_undef(name, object) { - return (typeof (object || dj_currentContext)[name] == "undefined"); -} -if (dj_undef("djConfig", this)) { - var djConfig = {}; -} -if (dj_undef("dojo", this)) { - var dojo = {}; -} -dojo.global = function () { - return dj_currentContext; -}; -dojo.locale = djConfig.locale; -dojo.version = {major:0, minor:4, patch:3, flag:"", revision:Number("$Rev$".match(/[0-9]+/)[0]), toString:function () { - with (dojo.version) { - return major + "." + minor + "." + patch + flag + " (" + revision + ")"; - } -}}; -dojo.evalProp = function (name, object, create) { - if ((!object) || (!name)) { - return undefined; - } - if (!dj_undef(name, object)) { - return object[name]; - } - return (create ? (object[name] = {}) : undefined); -}; -dojo.parseObjPath = function (path, context, create) { - var object = (context || dojo.global()); - var names = path.split("."); - var prop = names.pop(); - for (var i = 0, l = names.length; i < l && object; i++) { - object = dojo.evalProp(names[i], object, create); - } - return {obj:object, prop:prop}; -}; -dojo.evalObjPath = function (path, create) { - if (typeof path != "string") { - return dojo.global(); - } - if (path.indexOf(".") == -1) { - return dojo.evalProp(path, dojo.global(), create); - } - var ref = dojo.parseObjPath(path, dojo.global(), create); - if (ref) { - return dojo.evalProp(ref.prop, ref.obj, create); - } - return null; -}; -dojo.errorToString = function (exception) { - if (!dj_undef("message", exception)) { - return exception.message; - } else { - if (!dj_undef("description", exception)) { - return exception.description; - } else { - return exception; - } - } -}; -dojo.raise = function (message, exception) { - if (exception) { - message = message + ": " + dojo.errorToString(exception); - } else { - message = dojo.errorToString(message); - } - try { - if (djConfig.isDebug) { - dojo.hostenv.println("FATAL exception raised: " + message); - } - } - catch (e) { - } - throw exception || Error(message); -}; -dojo.debug = function () { -}; -dojo.debugShallow = function (obj) { -}; -dojo.profile = {start:function () { -}, end:function () { -}, stop:function () { -}, dump:function () { -}}; -function dj_eval(scriptFragment) { - return dj_global.eval ? dj_global.eval(scriptFragment) : eval(scriptFragment); -} -dojo.unimplemented = function (funcname, extra) { - var message = "'" + funcname + "' not implemented"; - if (extra != null) { - message += " " + extra; - } - dojo.raise(message); -}; -dojo.deprecated = function (behaviour, extra, removal) { - var message = "DEPRECATED: " + behaviour; - if (extra) { - message += " " + extra; - } - if (removal) { - message += " -- will be removed in version: " + removal; - } - dojo.debug(message); -}; -dojo.render = (function () { - function vscaffold(prefs, names) { - var tmp = {capable:false, support:{builtin:false, plugin:false}, prefixes:prefs}; - for (var i = 0; i < names.length; i++) { - tmp[names[i]] = false; - } - return tmp; - } - return {name:"", ver:dojo.version, os:{win:false, linux:false, osx:false}, html:vscaffold(["html"], ["ie", "opera", "khtml", "safari", "moz"]), svg:vscaffold(["svg"], ["corel", "adobe", "batik"]), vml:vscaffold(["vml"], ["ie"]), swf:vscaffold(["Swf", "Flash", "Mm"], ["mm"]), swt:vscaffold(["Swt"], ["ibm"])}; -})(); -dojo.hostenv = (function () { - var config = {isDebug:false, allowQueryConfig:false, baseScriptUri:"", baseRelativePath:"", libraryScriptUri:"", iePreventClobber:false, ieClobberMinimal:true, preventBackButtonFix:true, delayMozLoadingFix:false, searchIds:[], parseWidgets:true}; - if (typeof djConfig == "undefined") { - djConfig = config; - } else { - for (var option in config) { - if (typeof djConfig[option] == "undefined") { - djConfig[option] = config[option]; - } - } - } - return {name_:"(unset)", version_:"(unset)", getName:function () { - return this.name_; - }, getVersion:function () { - return this.version_; - }, getText:function (uri) { - dojo.unimplemented("getText", "uri=" + uri); - }}; -})(); -dojo.hostenv.getBaseScriptUri = function () { - if (djConfig.baseScriptUri.length) { - return djConfig.baseScriptUri; - } - var uri = new String(djConfig.libraryScriptUri || djConfig.baseRelativePath); - if (!uri) { - dojo.raise("Nothing returned by getLibraryScriptUri(): " + uri); - } - var lastslash = uri.lastIndexOf("/"); - djConfig.baseScriptUri = djConfig.baseRelativePath; - return djConfig.baseScriptUri; -}; - diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/bootstrap2.js b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/bootstrap2.js deleted file mode 100644 index a9483167d..000000000 --- a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/bootstrap2.js +++ /dev/null @@ -1,59 +0,0 @@ -/* - Copyright (c) 2004-2006, The Dojo Foundation - All Rights Reserved. - - Licensed under the Academic Free License version 2.1 or above OR the - modified BSD license. For more information on Dojo licensing, see: - - http://dojotoolkit.org/community/licensing.shtml -*/ - -//Semicolon is for when this file is integrated with a custom build on one line -//with some other file's contents. Sometimes that makes things not get defined -//properly, particularly with the using the closure below to do all the work. -;(function(){ - //Don't do this work if dojo.js has already done it. - if(typeof dj_usingBootstrap != "undefined"){ - return; - } - - var isRhino = false; - var isSpidermonkey = false; - var isDashboard = false; - if((typeof this["load"] == "function")&&((typeof this["Packages"] == "function")||(typeof this["Packages"] == "object"))){ - isRhino = true; - }else if(typeof this["load"] == "function"){ - isSpidermonkey = true; - }else if(window.widget){ - isDashboard = true; - } - - var tmps = []; - if((this["djConfig"])&&((djConfig["isDebug"])||(djConfig["debugAtAllCosts"]))){ - tmps.push("debug.js"); - } - - if((this["djConfig"])&&(djConfig["debugAtAllCosts"])&&(!isRhino)&&(!isDashboard)){ - tmps.push("browser_debug.js"); - } - - var loaderRoot = djConfig["baseScriptUri"]; - if((this["djConfig"])&&(djConfig["baseLoaderUri"])){ - loaderRoot = djConfig["baseLoaderUri"]; - } - - for(var x=0; x < tmps.length; x++){ - var spath = loaderRoot+"src/"+tmps[x]; - if(isRhino||isSpidermonkey){ - load(spath); - } else { - try { - document.write("0`i{7&PtR^{83nxnd}_W5nNvd+6wNC;`a=2Pb0n=&5lYb
ztkoLYqu1F!U-F{VcuA1w@SCM7XO7FY8I-q%U!#a{P5^yT;_PC1%F%I@whK=!AU{i6
zk~*IUMJ{U#PRZ5tpxJgt>e`Am)SE3^lzN@O)gnJUBI~1heEZ6rJOND4dtc`cYOyM%
zkRMvpWuTAZ`dPVi0>9WNgdmT3" + oa.join("\n") + "");
-};
-dojo.hostenv.unwindUriStack = function () {
- var stack = this.loadUriStack;
- for (var x in dojo.hostenv.loadedUris) {
- for (var y = stack.length - 1; y >= 0; y--) {
- if (stack[y][0] == x) {
- stack.splice(y, 1);
- }
- }
- }
- var next = stack.pop();
- if ((!next) && (stack.length == 0)) {
- return;
- }
- for (var x = 0; x < stack.length; x++) {
- if ((stack[x][0] == next[0]) && (stack[x][2])) {
- next[2] == stack[x][2];
- }
- }
- var last = next;
- while (dojo.hostenv.loadedUris[next[0]]) {
- last = next;
- next = stack.pop();
- }
- while (typeof next[2] == "string") {
- try {
- dj_eval(next[2]);
- next[1](true);
- }
- catch (e) {
- dojo.debug("we got an error when loading " + next[0]);
- dojo.debug("error: " + e);
- }
- dojo.hostenv.loadedUris[next[0]] = true;
- dojo.hostenv.loadedUris.push(next[0]);
- last = next;
- next = stack.pop();
- if ((!next) && (stack.length == 0)) {
- break;
- }
- while (dojo.hostenv.loadedUris[next[0]]) {
- last = next;
- next = stack.pop();
- }
- }
- if (next) {
- stack.push(next);
- dojo.debug("### CHOKED ON: " + next[0]);
- }
-};
-dojo.hostenv.loadUri = function (uri, cb) {
- if (dojo.hostenv.loadedUris[uri]) {
- return;
- }
- var stack = this.loadUriStack;
- stack.push([uri, cb, null]);
- var tcb = function (contents) {
- if (contents.content) {
- contents = contents.content;
- }
- var next = stack.pop();
- if ((!next) && (stack.length == 0)) {
- dojo.hostenv.modulesLoaded();
- return;
- }
- if (typeof contents == "string") {
- stack.push(next);
- for (var x = 0; x < stack.length; x++) {
- if (stack[x][0] == uri) {
- stack[x][2] = contents;
- }
- }
- next = stack.pop();
- }
- if (dojo.hostenv.loadedUris[next[0]]) {
- dojo.hostenv.unwindUriStack();
- return;
- }
- stack.push(next);
- if (next[0] != uri) {
- if (typeof next[2] == "string") {
- dojo.hostenv.unwindUriStack();
- }
- } else {
- if (!contents) {
- next[1](false);
- } else {
- var deps = dojo.hostenv.getDepsForEval(next[2]);
- if (deps.length > 0) {
- eval(deps.join(";"));
- } else {
- dojo.hostenv.unwindUriStack();
- }
- }
- }
- };
- this.getText(uri, tcb, true);
-};
-dojo.hostenv.loadModule = function (modulename, exact_only, omit_module_check) {
- var module = this.findModule(modulename, 0);
- if (module) {
- return module;
- }
- if (typeof this.loading_modules_[modulename] !== "undefined") {
- dojo.debug("recursive attempt to load module '" + modulename + "'");
- } else {
- this.addedToLoadingCount.push(modulename);
- }
- this.loading_modules_[modulename] = 1;
- var relpath = modulename.replace(/\./g, "/") + ".js";
- var syms = modulename.split(".");
- var nsyms = modulename.split(".");
- if (syms[0] == "dojo") {
- syms[0] = "src";
- }
- var last = syms.pop();
- syms.push(last);
- var _this = this;
- var pfn = this.pkgFileName;
- if (last == "*") {
- modulename = (nsyms.slice(0, -1)).join(".");
- var module = this.findModule(modulename, 0);
- if (module) {
- _this.removedFromLoadingCount.push(modulename);
- return module;
- }
- var nextTry = function (lastStatus) {
- if (lastStatus) {
- module = _this.findModule(modulename, false);
- if ((!module) && (syms[syms.length - 1] != pfn)) {
- dojo.raise("Module symbol '" + modulename + "' is not defined after loading '" + relpath + "'");
- }
- if (module) {
- _this.removedFromLoadingCount.push(modulename);
- dojo.hostenv.modulesLoaded();
- return;
- }
- }
- syms.pop();
- syms.push(pfn);
- relpath = syms.join("/") + ".js";
- if (relpath.charAt(0) == "/") {
- relpath = relpath.slice(1);
- }
- _this.loadPath(relpath, ((!omit_module_check) ? modulename : null), nextTry);
- };
- nextTry();
- } else {
- relpath = syms.join("/") + ".js";
- modulename = nsyms.join(".");
- var nextTry = function (lastStatus) {
- if (lastStatus) {
- module = _this.findModule(modulename, false);
- if ((!module) && (syms[syms.length - 1] != pfn)) {
- dojo.raise("Module symbol '" + modulename + "' is not defined after loading '" + relpath + "'");
- }
- if (module) {
- _this.removedFromLoadingCount.push(modulename);
- dojo.hostenv.modulesLoaded();
- return;
- }
- }
- var setPKG = (syms[syms.length - 1] == pfn) ? false : true;
- syms.pop();
- if (setPKG) {
- syms.push(pfn);
- }
- relpath = syms.join("/") + ".js";
- if (relpath.charAt(0) == "/") {
- relpath = relpath.slice(1);
- }
- _this.loadPath(relpath, ((!omit_module_check) ? modulename : null), nextTry);
- };
- this.loadPath(relpath, ((!omit_module_check) ? modulename : null), nextTry);
- }
- return;
-};
-dojo.hostenv.async_cb = null;
-dojo.hostenv.unWindGetTextStack = function () {
- if (dojo.hostenv.inFlightCount > 0) {
- setTimeout("dojo.hostenv.unWindGetTextStack()", 100);
- return;
- }
- dojo.hostenv.inFlightCount++;
- var next = dojo.hostenv.getTextStack.pop();
- if ((!next) && (dojo.hostenv.getTextStack.length == 0)) {
- dojo.hostenv.inFlightCount--;
- dojo.hostenv.async_cb = function () {
- };
- return;
- }
- dojo.hostenv.async_cb = next[1];
- window.getURL(next[0], function (result) {
- dojo.hostenv.inFlightCount--;
- dojo.hostenv.async_cb(result.content);
- dojo.hostenv.unWindGetTextStack();
- });
-};
-dojo.hostenv.getText = function (uri, async_cb, fail_ok) {
- try {
- if (async_cb) {
- dojo.hostenv.getTextStack.push([uri, async_cb, fail_ok]);
- dojo.hostenv.unWindGetTextStack();
- } else {
- return dojo.raise("No synchronous XMLHTTP implementation available, for uri " + uri);
- }
- }
- catch (e) {
- return dojo.raise("No XMLHTTP implementation available, for uri " + uri);
- }
-};
-dojo.hostenv.postText = function (uri, async_cb, text, fail_ok, mime_type, encoding) {
- var http = null;
- var async_callback = function (httpResponse) {
- if (!httpResponse.success) {
- dojo.raise("Request for uri '" + uri + "' resulted in " + httpResponse.status);
- }
- if (!httpResponse.content) {
- if (!fail_ok) {
- dojo.raise("Request for uri '" + uri + "' resulted in no content");
- }
- return null;
- }
- async_cb(httpResponse.content);
- };
- try {
- if (async_cb) {
- http = window.postURL(uri, text, async_callback, mimeType, encoding);
- } else {
- return dojo.raise("No synchronous XMLHTTP post implementation available, for uri " + uri);
- }
- }
- catch (e) {
- return dojo.raise("No XMLHTTP post implementation available, for uri " + uri);
- }
-};
-function dj_last_script_src() {
- var scripts = window.document.getElementsByTagName("script");
- if (scripts.length < 1) {
- dojo.raise("No script elements in window.document, so can't figure out my script src");
- }
- var li = scripts.length - 1;
- var xlinkNS = "http://www.w3.org/1999/xlink";
- var src = null;
- var script = null;
- while (!src) {
- script = scripts.item(li);
- src = script.getAttributeNS(xlinkNS, "href");
- li--;
- if (li < 0) {
- break;
- }
- }
- if (!src) {
- dojo.raise("Last script element (out of " + scripts.length + ") has no src");
- }
- return src;
-}
-if (!dojo.hostenv["library_script_uri_"]) {
- dojo.hostenv.library_script_uri_ = dj_last_script_src();
-}
-dojo.requireIf((djConfig["isDebug"] || djConfig["debugAtAllCosts"]), "dojo.debug");
-
diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/hostenv_browser.js b/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/hostenv_browser.js
deleted file mode 100644
index 4b24d2676..000000000
--- a/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/src/hostenv_browser.js
+++ /dev/null
@@ -1,417 +0,0 @@
-/*
- Copyright (c) 2004-2006, The Dojo Foundation
- All Rights Reserved.
-
- Licensed under the Academic Free License version 2.1 or above OR the
- modified BSD license. For more information on Dojo licensing, see:
-
- http://dojotoolkit.org/community/licensing.shtml
-*/
-
-
-
-if (typeof window != "undefined") {
- (function () {
- if (djConfig.allowQueryConfig) {
- var baseUrl = document.location.toString();
- var params = baseUrl.split("?", 2);
- if (params.length > 1) {
- var paramStr = params[1];
- var pairs = paramStr.split("&");
- for (var x in pairs) {
- var sp = pairs[x].split("=");
- if ((sp[0].length > 9) && (sp[0].substr(0, 9) == "djConfig.")) {
- var opt = sp[0].substr(9);
- try {
- djConfig[opt] = eval(sp[1]);
- }
- catch (e) {
- djConfig[opt] = sp[1];
- }
- }
- }
- }
- }
- if (((djConfig["baseScriptUri"] == "") || (djConfig["baseRelativePath"] == "")) && (document && document.getElementsByTagName)) {
- var scripts = document.getElementsByTagName("script");
- var rePkg = /(__package__|dojo|bootstrap1)\.js([\?\.]|$)/i;
- for (var i = 0; i < scripts.length; i++) {
- var src = scripts[i].getAttribute("src");
- if (!src) {
- continue;
- }
- var m = src.match(rePkg);
- if (m) {
- var root = src.substring(0, m.index);
- if (src.indexOf("bootstrap1") > -1) {
- root += "../";
- }
- if (!this["djConfig"]) {
- djConfig = {};
- }
- if (djConfig["baseScriptUri"] == "") {
- djConfig["baseScriptUri"] = root;
- }
- if (djConfig["baseRelativePath"] == "") {
- djConfig["baseRelativePath"] = root;
- }
- break;
- }
- }
- }
- var dr = dojo.render;
- var drh = dojo.render.html;
- var drs = dojo.render.svg;
- var dua = (drh.UA = navigator.userAgent);
- var dav = (drh.AV = navigator.appVersion);
- var t = true;
- var f = false;
- drh.capable = t;
- drh.support.builtin = t;
- dr.ver = parseFloat(drh.AV);
- dr.os.mac = dav.indexOf("Macintosh") >= 0;
- dr.os.win = dav.indexOf("Windows") >= 0;
- dr.os.linux = dav.indexOf("X11") >= 0;
- drh.opera = dua.indexOf("Opera") >= 0;
- drh.khtml = (dav.indexOf("Konqueror") >= 0) || (dav.indexOf("Safari") >= 0);
- drh.safari = dav.indexOf("Safari") >= 0;
- var geckoPos = dua.indexOf("Gecko");
- drh.mozilla = drh.moz = (geckoPos >= 0) && (!drh.khtml);
- if (drh.mozilla) {
- drh.geckoVersion = dua.substring(geckoPos + 6, geckoPos + 14);
- }
- drh.ie = (document.all) && (!drh.opera);
- drh.ie50 = drh.ie && dav.indexOf("MSIE 5.0") >= 0;
- drh.ie55 = drh.ie && dav.indexOf("MSIE 5.5") >= 0;
- drh.ie60 = drh.ie && dav.indexOf("MSIE 6.0") >= 0;
- drh.ie70 = drh.ie && dav.indexOf("MSIE 7.0") >= 0;
- var cm = document["compatMode"];
- drh.quirks = (cm == "BackCompat") || (cm == "QuirksMode") || drh.ie55 || drh.ie50;
- dojo.locale = dojo.locale || (drh.ie ? navigator.userLanguage : navigator.language).toLowerCase();
- dr.vml.capable = drh.ie;
- drs.capable = f;
- drs.support.plugin = f;
- drs.support.builtin = f;
- var tdoc = window["document"];
- var tdi = tdoc["implementation"];
- if ((tdi) && (tdi["hasFeature"]) && (tdi.hasFeature("org.w3c.dom.svg", "1.0"))) {
- drs.capable = t;
- drs.support.builtin = t;
- drs.support.plugin = f;
- }
- if (drh.safari) {
- var tmp = dua.split("AppleWebKit/")[1];
- var ver = parseFloat(tmp.split(" ")[0]);
- if (ver >= 420) {
- drs.capable = t;
- drs.support.builtin = t;
- drs.support.plugin = f;
- }
- } else {
- }
- })();
- dojo.hostenv.startPackage("dojo.hostenv");
- dojo.render.name = dojo.hostenv.name_ = "browser";
- dojo.hostenv.searchIds = [];
- dojo.hostenv._XMLHTTP_PROGIDS = ["Msxml2.XMLHTTP", "Microsoft.XMLHTTP", "Msxml2.XMLHTTP.4.0"];
- dojo.hostenv.getXmlhttpObject = function () {
- var http = null;
- var last_e = null;
- try {
- http = new XMLHttpRequest();
- }
- catch (e) {
- }
- if (!http) {
- for (var i = 0; i < 3; ++i) {
- var progid = dojo.hostenv._XMLHTTP_PROGIDS[i];
- try {
- http = new ActiveXObject(progid);
- }
- catch (e) {
- last_e = e;
- }
- if (http) {
- dojo.hostenv._XMLHTTP_PROGIDS = [progid];
- break;
- }
- }
- }
- if (!http) {
- return dojo.raise("XMLHTTP not available", last_e);
- }
- return http;
- };
- dojo.hostenv._blockAsync = false;
- dojo.hostenv.getText = function (uri, async_cb, fail_ok) {
- if (!async_cb) {
- this._blockAsync = true;
- }
- var http = this.getXmlhttpObject();
- function isDocumentOk(http) {
- var stat = http["status"];
- return Boolean((!stat) || ((200 <= stat) && (300 > stat)) || (stat == 304));
- }
- if (async_cb) {
- var _this = this, timer = null, gbl = dojo.global();
- var xhr = dojo.evalObjPath("dojo.io.XMLHTTPTransport");
- http.onreadystatechange = function () {
- if (timer) {
- gbl.clearTimeout(timer);
- timer = null;
- }
- if (_this._blockAsync || (xhr && xhr._blockAsync)) {
- timer = gbl.setTimeout(function () {
- http.onreadystatechange.apply(this);
- }, 10);
- } else {
- if (4 == http.readyState) {
- if (isDocumentOk(http)) {
- async_cb(http.responseText);
- }
- }
- }
- };
- }
- http.open("GET", uri, async_cb ? true : false);
- try {
- http.send(null);
- if (async_cb) {
- return null;
- }
- if (!isDocumentOk(http)) {
- var err = Error("Unable to load " + uri + " status:" + http.status);
- err.status = http.status;
- err.responseText = http.responseText;
- throw err;
- }
- }
- catch (e) {
- this._blockAsync = false;
- if ((fail_ok) && (!async_cb)) {
- return null;
- } else {
- throw e;
- }
- }
- this._blockAsync = false;
- return http.responseText;
- };
- dojo.hostenv.defaultDebugContainerId = "dojoDebug";
- dojo.hostenv._println_buffer = [];
- dojo.hostenv._println_safe = false;
- dojo.hostenv.println = function (line) {
- if (!dojo.hostenv._println_safe) {
- dojo.hostenv._println_buffer.push(line);
- } else {
- try {
- var console = document.getElementById(djConfig.debugContainerId ? djConfig.debugContainerId : dojo.hostenv.defaultDebugContainerId);
- if (!console) {
- console = dojo.body();
- }
- var div = document.createElement("div");
- div.appendChild(document.createTextNode(line));
- console.appendChild(div);
- }
- catch (e) {
- try {
- document.write("