01: /**
02: * Copyright 2006 Webmedia Group Ltd.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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: **/package org.araneaframework.jsp;
16:
17: import org.araneaframework.uilib.ConfigurationContext;
18:
19: /**
20: * Non-standard-HTML attributes added to specific HTML tags to define
21: * Aranea event and content model information.
22: *
23: * @author Taimo Peelo (taimo@araneaframework.org)
24: */
25: public abstract class AraneaAttributes {
26: private AraneaAttributes() {
27: }
28:
29: /** Attribute identifying Aranea system form */
30: public static final String SYSTEM_FORM = "arn-systemForm";
31: /**
32: * Attribute attached to Aranea component markers for identification of component.
33: * @since 1.1
34: * */
35: public static final String WIDGET_ID = "arn-widgetId";
36:
37: /** Event related non-standard HTML tag attributes */
38: public interface Event {
39: public static final String ID = "arn-evntId";
40: public static final String TARGET_WIDGET_ID = "arn-trgtwdgt";
41: public static final String PARAM = "arn-evntPar";
42: public static final String UPDATE_REGIONS = "arn-updrgns";
43: public static final String CONDITION = "arn-evntCond";
44: }
45:
46: /** @since 1.0.11 */
47: public interface FilteredInputControl {
48: public static final String CHARACTER_FILTER = org.araneaframework.uilib.form.control.inputfilter.InputFilter.CHARACTER_FILTER_ATTRIBUTE;
49: }
50:
51: /**
52: * This attribute will be present on the form elements whose which should be validated on-the-fly.
53: * (Default is set with {@link ConfigurationContext} entry {@link ConfigurationContext#BACKGROUND_FORM_VALIDATION}.
54: * @since 1.1 */
55: public static final String BACKGROUND_VALIDATION_ATTRIBUTE = "arn-bgValidate";
56: }
|