1 /* Licensed to the Apache Software Foundation (ASF) under one or more
  2  * contributor license agreements.  See the NOTICE file distributed with
  3  * this work for additional information regarding copyright ownership.
  4  * The ASF licenses this file to you under the Apache License, Version 2.0
  5  * (the "License"); you may not use this file except in compliance with
  6  * the License.  You may obtain a copy of the License at
  7  *
  8  *      http://www.apache.org/licenses/LICENSE-2.0
  9  *
 10  * Unless required by applicable law or agreed to in writing, software
 11  * distributed under the License is distributed on an "AS IS" BASIS,
 12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  * See the License for the specific language governing permissions and
 14  * limitations under the License.
 15  */
 16 
 17 /**
 18  * @memberOf myfaces._impl
 19  * @namespace
 20  * @name i18n
 21  */
 22 
 23 
 24 /**
 25  * System messages base version    <p />
 26  * (note the base version is basically the en_US) version
 27  * of all messages
 28  *
 29  * @class
 30  * @name Messages
 31  * @memberOf myfaces._impl.i18n
 32  */
 33 myfaces._impl.core._Runtime.extendClass("myfaces._impl.i18n.Messages", Object,
 34 /**
 35  * @lends myfaces._impl.i18n.Messages.prototype
 36  */
 37 {
 38 
 39     MSG_TEST:               "Testmessage",
 40 
 41     /*Messages*/
 42     /** @constant */
 43     MSG_DEV_MODE:           "Note, this message is only sent, because project stage is development and no " +
 44                             "other error listeners are registered.",
 45     /** @constant */
 46     MSG_AFFECTED_CLASS:     "Affected Class:",
 47     /** @constant */
 48     MSG_AFFECTED_METHOD:    "Affected Method:",
 49     /** @constant */
 50     MSG_ERROR_NAME:         "Error Name:",
 51     /** @constant */
 52     MSG_ERROR_MESSAGE:      "Error Name:",
 53     /** @constant */
 54     MSG_ERROR_DESC:         "Error Description:",
 55     /** @constant */
 56     MSG_ERROR_NO:           "Error Number:",
 57     /** @constant */
 58     MSG_ERROR_LINENO:       "Error Line Number:",
 59 
 60     /*Errors and messages*/
 61     /** @constant */
 62     ERR_FORM:               "Sourceform could not be determined, either because element is not attached to a form or we have multiple forms with named elements of the same identifier or name, stopping the ajax processing",
 63     /** @constant */
 64     ERR_VIEWSTATE:          "jsf.viewState: param value not of type form!",
 65     /** @constant */
 66     ERR_TRANSPORT:          "Transport type {0} does not exist",
 67     /** @constant */
 68     ERR_EVT_PASS:           "an event must be passed down (either a an event object null or undefined) ",
 69     /** @constant */
 70     ERR_CONSTRUCT:          "Parts of the response couldn't be retrieved when constructing the event data: {0} ",
 71     /** @constant */
 72     ERR_MALFORMEDXML:       "The server response could not be parsed, the server has returned with a response which is not xml !",
 73     /** @constant */
 74     ERR_SOURCE_FUNC:        "source cannot be a function (probably source and event were not defined or set to null",
 75     /** @constant */
 76     ERR_EV_OR_UNKNOWN:      "An event object or unknown must be passed as second parameter",
 77     /** @constant */
 78     ERR_SOURCE_NOSTR:       "source cannot be a string",
 79     /** @constant */
 80     ERR_SOURCE_DEF_NULL:    "source must be defined or null",
 81 
 82     //_Lang.js
 83     /** @constant */
 84     ERR_MUST_STRING:        "{0}: {1} namespace must be of type String",
 85     /** @constant */
 86     ERR_REF_OR_ID:          "{0}: {1} a reference node or identifier must be provided",
 87     /** @constant */
 88     ERR_PARAM_GENERIC:      "{0}: parameter {1} must be of type {2}",
 89     /** @constant */
 90     ERR_PARAM_STR:          "{0}: {1} param must be of type string",
 91     /** @constant */
 92     ERR_PARAM_STR_RE:       "{0}: {1} param must be of type string or a regular expression",
 93     /** @constant */
 94     ERR_PARAM_MIXMAPS:      "{0}: both a source as well as a destination map must be provided",
 95     /** @constant */
 96     ERR_MUST_BE_PROVIDED:   "{0}: an {1} and a {2} must be provided",
 97     /** @constant */
 98     ERR_MUST_BE_PROVIDED1:  "{0}: {1} must be set",
 99 
100     /** @constant */
101     ERR_REPLACE_EL:         "replaceElements called while evalNodes is not an array",
102 
103     /** @constant */
104     ERR_EMPTY_RESPONSE:     "{0}: The response cannot be null or empty!",
105     /** @constant */
106     ERR_ITEM_ID_NOTFOUND:   "{0}: item with identifier {1} could not be found",
107     /** @constant */
108     ERR_PPR_IDREQ:          "{0}: Error in PPR Insert, id must be present",
109     /** @constant */
110     ERR_PPR_INSERTBEFID:    "{0}: Error in PPR Insert, before id or after id must be present",
111     /** @constant */
112     ERR_PPR_INSERTBEFID_1:  "{0}: Error in PPR Insert, before  node of id {1} does not exist in document",
113     /** @constant */
114     ERR_PPR_INSERTBEFID_2:  "{0}: Error in PPR Insert, after  node of id {1} does not exist in document",
115 
116     /** @constant */
117     ERR_PPR_DELID:          "{0}: Error in delete, id not in xml markup",
118     /** @constant */
119     ERR_PPR_UNKNOWNCID:     "{0}:  Unknown Html-Component-ID: {1}",
120 
121     /** @constant */
122     ERR_NO_VIEWROOTATTR:    "{0}: Changing of ViewRoot attributes is not supported",
123     /** @constant */
124     ERR_NO_HEADATTR:        "{0}: Changing of Head attributes is not supported",
125     /** @constant */
126     ERR_RED_URL:            "{0}: Redirect without url",
127 
128     /** @constant */
129     ERR_REQ_FAILED_UNKNOWN: "Request failed with unknown status",
130 
131     /** @constant */
132     ERR_REQU_FAILED: "Request failed with status {0} and reason {1}",
133 
134     /** @constant */
135     UNKNOWN: "UNKNOWN"
136 });
137