You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-commits@incubator.apache.org by jm...@apache.org on 2007/05/09 23:26:33 UTC
svn commit: r536713 - in
/incubator/xap/trunk/samples/WebContent/examples/customTag: ./
MyXapConfig.js index.html index.xal
Author: jmargaris
Date: Wed May 9 16:26:32 2007
New Revision: 536713
URL: http://svn.apache.org/viewvc?view=rev&rev=536713
Log:
https://issues.apache.org/jira/browse/XAP-425
Added:
incubator/xap/trunk/samples/WebContent/examples/customTag/
incubator/xap/trunk/samples/WebContent/examples/customTag/MyXapConfig.js (with props)
incubator/xap/trunk/samples/WebContent/examples/customTag/index.html (with props)
incubator/xap/trunk/samples/WebContent/examples/customTag/index.xal (with props)
Added: incubator/xap/trunk/samples/WebContent/examples/customTag/MyXapConfig.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/customTag/MyXapConfig.js?view=auto&rev=536713
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/customTag/MyXapConfig.js (added)
+++ incubator/xap/trunk/samples/WebContent/examples/customTag/MyXapConfig.js Wed May 9 16:26:32 2007
@@ -0,0 +1,118 @@
+/*
+ * 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.
+ *
+ */
+
+/**
+ * This is the default Xap configuration file that will be used to specified
+ * different runtime settings of the Xap application. Xap application provide
+ * for paramenter overriding in the following way.
+ *
+ * The default values for an application come from this file. When an application is loaded
+ * the developer can specify a configuration object to the Xap.createApplication method.
+ * any value in that object will override these parameters (Array parameters will NOT be merged).
+ * If the developer has specified page scaning then the Xap attributes on the HTML element
+ * will then override the values supplied to the Xap.createApplication. Each HTML element that is
+ * found is treated as a seperate XAP application.
+ *
+ * Parameter Override workflow:
+ * 1) This configuration file.
+ * 2a) The config object specified to the Xap.createApplication method.
+ * 2b) Any xap parameters embeded in a html element found during page scanning.
+ *
+ * For more information on using the JSON format go to www.json.org.
+ */
+{
+ /**
+ * This is the default name for the application. Users can access this
+ * application by using the Xap.applications["myApplicationName"]
+ *
+ * Accepted Values: can be null, undefined, or any String.
+ */
+ applicationName: "xapApplication",
+ /**
+ * This is the default starting page for the application. When the application is
+ * started it will load this page to create the applications user interface.
+ *
+ * Accepted Values: can be null, undefined, or any url the is an acceptable Xal document.
+ */
+ startPage: "index.xal",
+ /**
+ * This is the default context for the application. When resources are loaded either by
+ * using the request service or as a event handler.
+ *
+ * Accepted Values: The root of the application as compared to the start web page.
+ */
+ context: "../../",
+ /**
+ * This is the default srcPath for the application. When resources are loaded either by
+ * using the request service or as a event handler.
+ *
+ * Accepted Values: The location of the xap src as compared to the start web page.
+ */
+ srcPath: "../../",
+ /**
+ * This is the default toolkit type.
+ *
+ * Accepted Values: any defined toolkit.
+ */
+ toolkitType: "dojo",
+ /**
+ * This is the default list of plugin classes that will be loaded. Place any class that needs
+ * to be loaded into during initialization.
+ *
+ * Accepted Values: can be null, undefined, or any Array of class names.
+ */
+ pluginClasses: [
+ "xap.mco.McoNamespaceHandler",
+ "xap.xml.xmodify.XmodifyNamespaceHandler",
+ "xap.macro.MacroNamespaceHandler",
+ "xap.xml.XalNamespaceHandler",
+ "xap.data.DataNamespaceHandler"
+ ],
+ /**
+ * This is the default list of plugin classes that will be loaded. Place any class that needs
+ * to be loaded into during initialization. Plugin classes need to implement the "pluginLoaded"
+ * method.
+ *
+ * Accepted Values: can be null, undefined, or any Array of class names.
+ */
+ pluginFiles: [
+ "src/plugin.xml",
+ "examples/customTag/plugins/blackbox/plugin.xml"
+ ],
+ /**
+ * This is the default id of the html element that will host the Xap application.
+ * If the element is null or undefined then the root is assumed to be the body.
+ *
+ * Accepted Values: can be null, undefined, or id of the element that will be the
+ * root of the application.
+ */
+ element: null,
+
+ /**
+ * The logLevel controls the logging level.
+ * Accepted Values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL, NONE
+ */
+ logLevel: 'ERROR',
+
+ /**
+ * Array of appender names, eitehr built in or custom.
+ * TODO make configuration more like log4j
+ */
+ logAppenders: ['xap.log.ConsoleAppender', 'xap.log.AlertAppender']
+}
Propchange: incubator/xap/trunk/samples/WebContent/examples/customTag/MyXapConfig.js
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/xap/trunk/samples/WebContent/examples/customTag/index.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/customTag/index.html?view=auto&rev=536713
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/customTag/index.html (added)
+++ incubator/xap/trunk/samples/WebContent/examples/customTag/index.html Wed May 9 16:26:32 2007
@@ -0,0 +1,56 @@
+<!--
+ - 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.
+ -
+-->
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ <title>Testing Custom Tags</title>
+
+ <style type="text/css">
+ <!--
+ @import url(../../css/xapDefault.css);
+ -->
+ </style>
+
+ <style type="text/css">
+ <!--
+ .xapBlackBox {
+ border-style: solid;
+ border-width: 1px;
+ border-color: red;
+ background-color: #CCCCCC;
+ }
+ -->
+ </style>
+
+ <script type="text/javascript">
+ djConfig = { parseWidgets: false };
+ </script>
+
+ <script type="text/javascript" src="../../xapcore.js.uncompressed.js"></script>
+
+ </head>
+ <body onload="Xap.createEmbeddedApplications()" style="margin:10px;">
+
+ <div applicationName="MyApplication" startPage="index.xal" configFilePath="MyXapConfig.js" ></div>
+
+ </body>
+</html>
+
+
+
Propchange: incubator/xap/trunk/samples/WebContent/examples/customTag/index.html
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/xap/trunk/samples/WebContent/examples/customTag/index.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/samples/WebContent/examples/customTag/index.xal?view=auto&rev=536713
==============================================================================
--- incubator/xap/trunk/samples/WebContent/examples/customTag/index.xal (added)
+++ incubator/xap/trunk/samples/WebContent/examples/customTag/index.xal Wed May 9 16:26:32 2007
@@ -0,0 +1,29 @@
+<!--
+ - 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.
+ -
+-->
+
+<xal xmlns="http://openxal.org/ui" xmlns:my="http://mycompany.org/xap">
+
+<rootPane>
+ <verticalBoxPane>
+ <label text='Label1' width='100px' />
+ <my:BlackBox size="40px" />
+ </verticalBoxPane>
+</rootPane>
+
+</xal>
\ No newline at end of file
Propchange: incubator/xap/trunk/samples/WebContent/examples/customTag/index.xal
------------------------------------------------------------------------------
svn:eol-style = native