empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rei...@apache.org
Subject svn commit: r681719 [5/10] - in /incubator/empire-db/site: ./ community/ css/ documentation/ downloads/ empiredb/ images/ images/diagrams/ images/logos/ images/mail/ images/menu/ javadocs/ js/ struts2ext/ support/
Date Fri, 01 Aug 2008 15:15:29 GMT
Added: incubator/empire-db/site/empiredb/stringfree.htm
URL: http://svn.apache.org/viewvc/incubator/empire-db/site/empiredb/stringfree.htm?rev=681719&view=auto
==============================================================================
--- incubator/empire-db/site/empiredb/stringfree.htm (added)
+++ incubator/empire-db/site/empiredb/stringfree.htm Fri Aug  1 08:15:26 2008
@@ -0,0 +1,261 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang="en-gb" >
+<!-- #BeginTemplate "../main.dwt" -->
+<head>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+	<meta http-equiv="language" content="en" />
+	<meta name="robots" content="index, follow" />
+	<meta name="keywords" content="java, jar, jdbc, sql, data, metadata, persistence, rdbms, orm, mapping" />
+	<meta name="description" content="Open Source relational data persistence component." />
+	
+	<!-- #BeginEditable "doctitle" -->
+<title>Empire-db - The principle of string-free coding</title>
+	<!-- #EndEditable -->
+	
+	<script type="text/javascript" src="../js/prototype.js"></script>
+	<script type="text/javascript" src="../js/menu.js"></script>
+	<!-- #BeginEditable "javascripts" -->
+	<!-- #EndEditable -->
+	
+	<link rel="shortcut icon" href="../empire-db.ico" />
+	<link rel="stylesheet" href="../css/layout.css" type="text/css" />
+	<!-- #BeginEditable "stylesheets" -->
+	<!-- #EndEditable -->
+</head>
+
+<body>
+<div id="wrapper">
+
+	<!-- Header -->
+	<div id="header">
+		<div id="logo">
+			<img src="../images/logos/empire-db-logo.gif" alt="Empire-db: The relational data persistence component." />
+		</div>
+		<div id="asf">
+			<a target="_blank" href="http://incubator.apache.org/">
+			<img src="../images/logos/apache-incubator-logo.png" alt="Apache Incubator" /></a>
+		</div>
+		<div style="clear:both"></div>
+	</div>
+	
+	<!-- Top -->
+	<div id="top">
+		<div id="topbar">&nbsp;</div>
+	</div>
+	
+	<!-- Middle -->
+	<div id="middle">
+		<div id="left">    
+				<div id="menuBox">     
+					<ul id="mainMenu">
+						<li id="menu_home"><a href="../index.html">Home</a></li>
+						<li id="menu_news"><a href="../news.htm">News</a></li>
+						<li id="menu_empiredb"><a href="empiredb.htm">Empire-db</a>
+								<ul class="subMenu">
+									<li id="menu_empiredb_extending_pattern">
+									<a href="pattern.htm">The Empire DAO-<br />pattern</a></li>
+									<li id="menu_empiredb_handling_metadata">
+									<a href="metadata.htm">Handling data and metadata</a></li>
+									<li id="menu_empiredb_wrong">
+									<a href="hibernate.htm">What's wrong with Hibernate and JPA</a></li>
+									<li id="menu_empiredb_stringfree">
+									<a href="stringfree.htm">The principle of<br/>string-free coding</a></li>
+									<li id="menu_empiredb_faq">
+									<a href="faq.htm">FAQ</a></li>
+								</ul>
+						</li>
+						<li id="menu_struts2ext">
+						<a href="../struts2ext/struts2ext.htm">Empire-db and Struts2</a>
+							<ul class="subMenu">
+								<li id="menu_struts2ext_forms_controls">
+								<a href="../struts2ext/forms_controls.htm">Forms and controls</a></li>
+								<li id="menu_struts2ext_rendering_parsing">
+								<a href="../struts2ext/rendering_parsing.htm">Rendering and parsing</a></li>
+								<!--<li id="menu_struts2ext_tag_reference"><a href="struts2ext/tag_reference.htm">Tag reference</a></li>-->
+								<li id="menu_struts2ext_input_controls">
+								<a href="../struts2ext/input_controls.htm">Input controls</a></li>
+							</ul>
+						</li>
+						<li id="menu_downloads">
+						<a href="../downloads/downloads.htm">Downloads</a>
+								<ul class="subMenu">
+									<li id="menu_downloads_license">
+									<a href="../downloads/license.htm">License</a></li>
+								</ul>
+						</li>
+						<li id="menu_documentation">
+						<a href="../documentation/documentation.htm">Documentation</a>					
+							<ul class="subMenu">
+								<li id="menu_documentation_class_overview">
+								<a href="../documentation/class_overview.htm">Empire-db class<br />overview</a></li>
+								<li id="menu_documentation_tutorials">
+								<a href="../documentation/tutorial.htm">Tutorial</a></li>
+								<li id="menu_documentation_getting_started">
+								<a href="../documentation/getting_started.htm">Getting started</a></li>
+								<li id="menu_documentation_api">
+								<a href="../documentation/api.htm">API</a></li>
+							</ul>
+						</li>
+						<li id="menu_community">
+						<a href="../community/community.htm">Community</a>					
+							<ul class="subMenu">
+								<li id="menu_community_mailing_lists">
+								<a href="../community/mailing_lists.htm">Mailing lists</a></li>
+								<!--<li id="menu_community_source_code"><a href="community/source_code.htm">Source code</a></li>-->
+								<li id="menu_community_jira">
+								<a href="../community/jira.htm">Ticketing system</a></li>
+								<!--<li id="menu_community_road_map"><a href="community/road_map.htm">Road map</a></li>-->
+								<li id="menu_community_contributors">
+								<a href="../community/contributors.htm">Contributors</a></li>
+							</ul>
+						</li>
+						<li id="menu_disclaimer"><a href="../disclaimer.htm">Disclaimer</a></li>
+					</ul>
+				</div>
+				
+		</div>
+	
+		<!-- #BeginEditable "menu" -->	
+		<script type="text/javascript">
+			var menu = new Menu( 'mainMenu', 'menu_empiredb', 'menu_empiredb_stringfree' );
+			var prev_page = "hibernate.htm";
+			var next_page = "faq.htm";
+		</script>
+		<!-- #EndEditable -->
+		<script type="text/javascript">
+			/* <![CDATA[ */
+			if( menu ) {
+				// Menu fully opened (comment out if not wanted)
+				// menu.openAll();
+			/* ]]> */
+			}
+		</script>
+	
+		<div id="main">		
+			
+			<div id="pathway">
+			<!-- #BeginEditable "pathway" -->
+	        	<a href="empiredb.htm">Empire-db</a> &raquo; The principle of string-free coding
+	        <!-- #EndEditable -->
+	        </div>
+			
+			<div id="content">
+			<!-- #BeginEditable "content" -->
+			<h1>The principle of string-free coding</h1>
+			<p> We believe that for the issue of code quality, string literals are the root of all evil. 
+				In data persistence string literals are often used to specify property names or even whole 
+				SQL fragments. This makes code harder to develop and even harder to maintain and can only 
+				be balanced through extensive and expensive testing.</p>
+			<p> We further believe that the most powerful tool for detecting and revealing errors is your 
+				compiler. Thus we think that no XML files should be used and code should be written in a 
+				way that gives the compiler the opportunity of performing this task as good as possible. 
+				In practice this requires working with object references rather than string literals 
+				wherever possible.</p>
+			<p> For example instead of writing:</p>
+			<pre><span style="color: #000000; ">StringBuilder cmd </span><span style="color: #000000; ">=</span><span style="color: #000000; "> </span><span style="color: #800080; ">new</span><span style="color: #000000; "> StringBuilder();
+...
+cmd.append(</span><span style="color: #000000; ">&quot;</span><font color="#0000FF">employee.lastname</font><font color="#0000FF"> like '</font><span style="color: #000000; ">&quot;</span><span style="color: #000000; "> </span><span style="color: #000000; ">+</span><span style="color: #000000; "> name </span><span style="color: #000000; ">+</span><span style="color: #000000; "> </span><span style="color: #000000; ">&quot;</span><span style="color: #0000FF; ">%' </span><span style="color: #000000; ">&quot;</span><span style="color: #000000; ">);</span></pre>
+
+			<p> it should rather be somewhat like:</p>
+			<pre><span style="color: #000000; ">DBCommand cmd </span><span style="color: #000000; ">=</span><span style="color: #000000; "> db.createCommand();
+...
+cmd.where(</span><font color="#0000FF">EMPLOYEES.LASTNAME</font><span style="color: #000000; ">.like( name</span><span style="color: #000000; ">+</span><span style="color: #000000; ">&quot;</span><span style="color: #0000FF; ">%</span><span style="color: #000000; ">&quot;</span><span style="color: #000000; "> ));</span></pre>
+			
+			<h1>Going beyond the persistence layer</h1>			
+			<p> But our objective is not only to stop using string literals in the persistence layer but 
+				all the way up to the presentation layer. This is especially hard for Web application development 
+				as it means avoiding string literals in JavaServer Pages as well, which in turn requires 
+				avoiding expression languages (EL). However it is possible. As an example consider a typical 
+				data driven Web application based on JavaServer Pages. With traditional Struts2 tags a particular 
+				property must be specified in the JSP as follows:</p>
+			<ol>
+				<li>For the list view when displaying a list of query results:<pre><span style="color: #0000FF; ">&lt;</span><span style="color: #800000; ">s:property </span><span style="color: #FF0000; ">value</span><span style="color: #0000FF; ">=&quot;employee.lastname&quot;</span><span style="color: #0000FF; ">/&gt;</span></pre>
+				</li>
+				<li>In the form view when displaying an input control for the field:<pre><span style="color: #0000FF; ">&lt;</span><span style="color: #800000; ">s:textfield </span><span style="color: #FF0000; ">key</span><span style="color: #0000FF; ">=&quot;employee.lastname&quot;</span><span style="color: #FF0000; "> size</span><span style="color: #0000FF; ">=&quot;40&quot;</span><span style="color: #FF0000; "> required</span><span style="color: #0000FF; ">=&quot;true&quot;</span><span style="color: #0000FF; ">/&gt;</span></pre>
+				</li>
+			</ol>
+			<p> Using object references this code can easily be written string-free as follows:</p>
+			<ol>
+				<li>For the list view when displaying a list of query results:<pre><span style="color: #0000FF; ">&lt;</span><span style="color: #800000; ">td</span><span style="color: #0000FF; ">&gt;&lt;</span><span style="color: #800000; ">s:property </span><span style="color: #FF0000; ">value</span><span style="color: #0000FF; ">=&quot;&lt;%= EMPLOYEES.LASTNAME.getName() %&gt;&quot;</span><span style="color: #0000FF; ">/&gt;&lt;/</span><span style="color: #800000; ">td</span><span style="color: #0000FF; ">&gt;</span></pre>
+					or even simpler using Empire-Struts2-Extensions:<pre><span style="color: #0000FF; ">&lt;</span><span style="color: #800000; ">td</span><span style="color: #0000FF; ">&gt;&lt;</span><span style="color: #800000; ">e:value </span><span style="color: #FF0000; ">column</span><span style="color: #0000FF; ">=&quot;&lt;%= EMPLOYEES.LASTNAME %&gt;&quot;</span><span style="color: #FF0000; "> </span><span style="color: #0000FF; ">/&gt;&lt;/</span><span style="color: #800000; ">td</span><span style="color: #0000FF; ">&gt;</span></pre>
+				</li>
+				<li>In the form view when displaying an input control for the field:<pre><span style="color: #0000FF; ">&lt;</span><span style="color: #800000; ">s:textfield </span><span style="color: #FF0000; ">key</span><span style="color: #0000FF; ">=&quot;&lt;%= EMPLOYEES.LASTNAME.getName() %&gt;&quot;</span><span style="color: #FF0000; "> size</span><span style="color: #0000FF; ">=&quot;40&quot;</span><span style="color: #FF0000; "> 
+             required</span><span style="color: #0000FF; ">=&quot;true&quot;</span><span style="color: #0000FF; ">/&gt;</span></pre>
+					or again simpler using Empire-Struts2-Extensions:<pre><span style="color: #0000FF; ">&lt;</span><span style="color: #800000; ">e:control </span><span style="color: #FF0000; ">column</span><span style="color: #0000FF; ">=&quot;&lt;%= EMPLOYEES.LASTNAME %&gt;&quot;</span><span style="color: #FF0000; "> </span><span style="color: #0000FF; ">/&gt;</span></pre>
+				</li>
+			</ol>
+			<p> With our unique Empire-Struts2-Extensions we also address the issue of form data validation in 
+				order to abolish the need for redundant and unsafe XML validation files. The same can be done 
+				for other applications frameworks – we’re waiting for your contribution.</p>
+			
+			<h1>Summary</h1>
+			<p> With Empire-db we proclaim the principle of string-free coding by using object references rather 
+				than string literals for both query definition and metadata access and from the persistence layer 
+			up to the presentation 
+				layer. In order to make this possible a consistent way to address properties and their meta information 
+				is required that goes beyond the requirements of data persistence. Empire-db’s 
+			object model schema definition in conjunction with its data and metadata 
+				interfaces provides such a mechanism. The result is unprecedented compile-time safety leading to reduced 
+				cost of testing and maintenance. </p>
+			<!-- #EndEditable --></div>
+					
+			<div id="nav">
+				<hr />
+				<div id="nav_prev">
+					<a id="prev" href=""><img src="../images/prev.gif" alt="" /> Previous Page</a> 
+					&nbsp;
+				</div>
+				<div id="nav_next">
+					&nbsp;
+					<a id="next" href="">Next Page 
+					<img src="../images/next.gif" alt="" /></a>
+				</div>
+				<div style="clear: both;"></div>
+			</div>
+			
+			<script type="text/javascript">
+			/* <![CDATA[ */
+				if( ( typeof(prev_page) == "undefined" || prev_page == "" ) &&
+					( typeof(next_page) == "undefined" || next_page == "" ) ) 
+				{
+					$( 'nav' ).hide();
+				}
+				else 
+				{			
+					if( typeof(prev_page) != "undefined" && prev_page != "" ) {
+						$( 'prev' ).href = prev_page;
+						$( 'prev' ).show();
+					}
+					else {
+						$( 'prev' ).hide();
+					}
+					
+					if( typeof(next_page) != "undefined" && next_page !="" ) {
+						$( 'next' ).href = next_page;
+						$( 'next' ).show();
+					}
+					else {
+						$( 'next' ).hide();
+					}
+				}
+			/* ]]> */
+			</script>
+
+		</div>
+
+	</div>
+	
+	<!-- Footer -->		
+	<div id="footer">
+		<small>Copyright &copy; 2008, The Apache Software Foundation</small>&nbsp;<!--<p style="padding-right: 25px; text-align: right;">
+	    <a href="http://validator.w3.org/check?uri=referer">
+		<img
+	        src="images/valid-xhtml10.png"
+	        alt="Valid XHTML 1.0 Transitional" height="31" width="88" /></a>
+	 	</p>--></div>
+
+</div>
+
+</body>
+<!-- #EndTemplate -->
+</html>
\ No newline at end of file

Propchange: incubator/empire-db/site/empiredb/stringfree.htm
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/empire-db/site/images/Kopie von background.gif
URL: http://svn.apache.org/viewvc/incubator/empire-db/site/images/Kopie%20von%20background.gif?rev=681719&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/empire-db/site/images/Kopie von background.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/empire-db/site/images/Thumbs.db
URL: http://svn.apache.org/viewvc/incubator/empire-db/site/images/Thumbs.db?rev=681719&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/empire-db/site/images/Thumbs.db
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/empire-db/site/images/answer.gif
URL: http://svn.apache.org/viewvc/incubator/empire-db/site/images/answer.gif?rev=681719&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/empire-db/site/images/answer.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/empire-db/site/images/background.gif
URL: http://svn.apache.org/viewvc/incubator/empire-db/site/images/background.gif?rev=681719&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/empire-db/site/images/background.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/empire-db/site/images/background_red.gif
URL: http://svn.apache.org/viewvc/incubator/empire-db/site/images/background_red.gif?rev=681719&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/empire-db/site/images/background_red.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/empire-db/site/images/bg.gif
URL: http://svn.apache.org/viewvc/incubator/empire-db/site/images/bg.gif?rev=681719&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/empire-db/site/images/bg.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/empire-db/site/images/diagrams/Thumbs.db
URL: http://svn.apache.org/viewvc/incubator/empire-db/site/images/diagrams/Thumbs.db?rev=681719&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/empire-db/site/images/diagrams/Thumbs.db
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/empire-db/site/images/diagrams/dao_pattern.gif
URL: http://svn.apache.org/viewvc/incubator/empire-db/site/images/diagrams/dao_pattern.gif?rev=681719&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/empire-db/site/images/diagrams/dao_pattern.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/empire-db/site/images/diagrams/empire-data-interfaces.gif
URL: http://svn.apache.org/viewvc/incubator/empire-db/site/images/diagrams/empire-data-interfaces.gif?rev=681719&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/empire-db/site/images/diagrams/empire-data-interfaces.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/empire-db/site/images/diagrams/empire-db-class-chart.gif
URL: http://svn.apache.org/viewvc/incubator/empire-db/site/images/diagrams/empire-db-class-chart.gif?rev=681719&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/empire-db/site/images/diagrams/empire-db-class-chart.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/empire-db/site/images/diagrams/function_of_input_control.gif
URL: http://svn.apache.org/viewvc/incubator/empire-db/site/images/diagrams/function_of_input_control.gif?rev=681719&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/empire-db/site/images/diagrams/function_of_input_control.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/empire-db/site/images/diagrams/struts2-empire.gif
URL: http://svn.apache.org/viewvc/incubator/empire-db/site/images/diagrams/struts2-empire.gif?rev=681719&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/empire-db/site/images/diagrams/struts2-empire.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/empire-db/site/images/diagrams/struts2-traditional.gif
URL: http://svn.apache.org/viewvc/incubator/empire-db/site/images/diagrams/struts2-traditional.gif?rev=681719&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/empire-db/site/images/diagrams/struts2-traditional.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/empire-db/site/images/email.gif
URL: http://svn.apache.org/viewvc/incubator/empire-db/site/images/email.gif?rev=681719&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/empire-db/site/images/email.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/empire-db/site/images/expand.gif
URL: http://svn.apache.org/viewvc/incubator/empire-db/site/images/expand.gif?rev=681719&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/empire-db/site/images/expand.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/empire-db/site/images/logos/Thumbs.db
URL: http://svn.apache.org/viewvc/incubator/empire-db/site/images/logos/Thumbs.db?rev=681719&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/empire-db/site/images/logos/Thumbs.db
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/empire-db/site/images/logos/apache-incubator-logo.png
URL: http://svn.apache.org/viewvc/incubator/empire-db/site/images/logos/apache-incubator-logo.png?rev=681719&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/empire-db/site/images/logos/apache-incubator-logo.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/empire-db/site/images/logos/empire-db-logo.gif
URL: http://svn.apache.org/viewvc/incubator/empire-db/site/images/logos/empire-db-logo.gif?rev=681719&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/empire-db/site/images/logos/empire-db-logo.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/empire-db/site/images/mail/Thumbs.db
URL: http://svn.apache.org/viewvc/incubator/empire-db/site/images/mail/Thumbs.db?rev=681719&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/empire-db/site/images/mail/Thumbs.db
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/empire-db/site/images/mail/empire-bugs.gif
URL: http://svn.apache.org/viewvc/incubator/empire-db/site/images/mail/empire-bugs.gif?rev=681719&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/empire-db/site/images/mail/empire-bugs.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/empire-db/site/images/mail/empire-comment.gif
URL: http://svn.apache.org/viewvc/incubator/empire-db/site/images/mail/empire-comment.gif?rev=681719&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/empire-db/site/images/mail/empire-comment.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/empire-db/site/images/mail/empire-contribute.gif
URL: http://svn.apache.org/viewvc/incubator/empire-db/site/images/mail/empire-contribute.gif?rev=681719&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/empire-db/site/images/mail/empire-contribute.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/empire-db/site/images/mail/empire-support.gif
URL: http://svn.apache.org/viewvc/incubator/empire-db/site/images/mail/empire-support.gif?rev=681719&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/empire-db/site/images/mail/empire-support.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/empire-db/site/images/md5.gif
URL: http://svn.apache.org/viewvc/incubator/empire-db/site/images/md5.gif?rev=681719&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/empire-db/site/images/md5.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/empire-db/site/images/menu/Thumbs.db
URL: http://svn.apache.org/viewvc/incubator/empire-db/site/images/menu/Thumbs.db?rev=681719&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/empire-db/site/images/menu/Thumbs.db
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/empire-db/site/images/menu/menu_main.gif
URL: http://svn.apache.org/viewvc/incubator/empire-db/site/images/menu/menu_main.gif?rev=681719&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/empire-db/site/images/menu/menu_main.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/empire-db/site/images/menu/menu_main_current.gif
URL: http://svn.apache.org/viewvc/incubator/empire-db/site/images/menu/menu_main_current.gif?rev=681719&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/empire-db/site/images/menu/menu_main_current.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/empire-db/site/images/menu/menu_sub.gif
URL: http://svn.apache.org/viewvc/incubator/empire-db/site/images/menu/menu_sub.gif?rev=681719&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/empire-db/site/images/menu/menu_sub.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/empire-db/site/images/menu/menu_sub_current.gif
URL: http://svn.apache.org/viewvc/incubator/empire-db/site/images/menu/menu_sub_current.gif?rev=681719&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/empire-db/site/images/menu/menu_sub_current.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/empire-db/site/images/next.gif
URL: http://svn.apache.org/viewvc/incubator/empire-db/site/images/next.gif?rev=681719&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/empire-db/site/images/next.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/empire-db/site/images/prev.gif
URL: http://svn.apache.org/viewvc/incubator/empire-db/site/images/prev.gif?rev=681719&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/empire-db/site/images/prev.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/empire-db/site/images/question.gif
URL: http://svn.apache.org/viewvc/incubator/empire-db/site/images/question.gif?rev=681719&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/empire-db/site/images/question.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/empire-db/site/imprint.htm
URL: http://svn.apache.org/viewvc/incubator/empire-db/site/imprint.htm?rev=681719&view=auto
==============================================================================
--- incubator/empire-db/site/imprint.htm (added)
+++ incubator/empire-db/site/imprint.htm Fri Aug  1 08:15:26 2008
@@ -0,0 +1,224 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang="en-gb" >
+<!-- #BeginTemplate "main.dwt" -->
+<head>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+	<meta http-equiv="language" content="en" />
+	<meta name="robots" content="index, follow" />
+	<meta name="keywords" content="java, jar, jdbc, sql, data, metadata, persistence, rdbms, orm, mapping" />
+	<meta name="description" content="Open Source relational data persistence component." />
+	
+	<!-- #BeginEditable "doctitle" -->
+<title>Empire-db - Imprint</title>
+	<!-- #EndEditable -->
+	
+	<script type="text/javascript" src="./js/prototype.js"></script>
+	<script type="text/javascript" src="./js/menu.js"></script>
+	<!-- #BeginEditable "javascripts" -->
+<script type="text/javascript" src="./js/maillink.js"></script>
+	<!-- #EndEditable -->
+	
+	<link rel="shortcut icon" href="empire-db.ico" />
+	<link rel="stylesheet" href="css/layout.css" type="text/css" />
+	<!-- #BeginEditable "stylesheets" -->
+<style type="text/css">
+
+div.phonefax {
+	clear:both;
+	float:left;
+	margin-left:8px;
+	width:30px;
+}
+
+</style>
+	<!-- #EndEditable -->
+</head>
+
+<body>
+<div id="wrapper">
+
+	<!-- Header -->
+	<div id="header">
+		<div id="logo">
+			<img src="images/logos/empire-db-logo.gif" alt="Empire-db: The relational data persistence component." />
+		</div>
+		<div id="asf">
+			<a target="_blank" href="http://incubator.apache.org/">
+			<img src="images/logos/apache-incubator-logo.png" alt="Apache Incubator" /></a>
+		</div>
+		<div style="clear:both"></div>
+	</div>
+	
+	<!-- Top -->
+	<div id="top">
+		<div id="topbar">&nbsp;</div>
+	</div>
+	
+	<!-- Middle -->
+	<div id="middle">
+		<div id="left">    
+				<div id="menuBox">     
+					<ul id="mainMenu">
+						<li id="menu_home"><a href="index.html">Home</a></li>
+						<li id="menu_news"><a href="news.htm">News</a></li>
+						<li id="menu_empiredb"><a href="empiredb/empiredb.htm">Empire-db</a>
+								<ul class="subMenu">
+									<li id="menu_empiredb_extending_pattern"><a href="empiredb/pattern.htm">The Empire DAO-<br />pattern</a></li>
+									<li id="menu_empiredb_handling_metadata"><a href="empiredb/metadata.htm">Handling data and metadata</a></li>
+									<li id="menu_empiredb_wrong"><a href="empiredb/hibernate.htm">What's wrong with Hibernate and JPA</a></li>
+									<li id="menu_empiredb_stringfree"><a href="empiredb/stringfree.htm">The principle of<br/>string-free coding</a></li>
+									<li id="menu_empiredb_faq"><a href="empiredb/faq.htm">FAQ</a></li>
+								</ul>
+						</li>
+						<li id="menu_struts2ext"><a href="struts2ext/struts2ext.htm">Empire-db and Struts2</a>
+							<ul class="subMenu">
+								<li id="menu_struts2ext_forms_controls"><a href="struts2ext/forms_controls.htm">Forms and controls</a></li>
+								<li id="menu_struts2ext_rendering_parsing"><a href="struts2ext/rendering_parsing.htm">Rendering and parsing</a></li>
+								<!--<li id="menu_struts2ext_tag_reference"><a href="struts2ext/tag_reference.htm">Tag reference</a></li>-->
+								<li id="menu_struts2ext_input_controls"><a href="struts2ext/input_controls.htm">Input controls</a></li>
+							</ul>
+						</li>
+						<li id="menu_downloads"><a href="downloads/downloads.htm">Downloads</a>
+								<ul class="subMenu">
+									<li id="menu_downloads_license"><a href="downloads/license.htm">License</a></li>
+								</ul>
+						</li>
+						<li id="menu_documentation"><a href="documentation/documentation.htm">Documentation</a>					
+							<ul class="subMenu">
+								<li id="menu_documentation_class_overview"><a href="documentation/class_overview.htm">Empire-db class<br />overview</a></li>
+								<li id="menu_documentation_tutorials"><a href="documentation/tutorial.htm">Tutorial</a></li>
+								<li id="menu_documentation_getting_started"><a href="documentation/getting_started.htm">Getting started</a></li>
+								<li id="menu_documentation_api"><a href="documentation/api.htm">API</a></li>
+							</ul>
+						</li>
+						<li id="menu_community"><a href="community/community.htm">Community</a>					
+							<ul class="subMenu">
+								<li id="menu_community_mailing_lists"><a href="community/mailing_lists.htm">Mailing lists</a></li>
+								<!--<li id="menu_community_source_code"><a href="community/source_code.htm">Source code</a></li>-->
+								<li id="menu_community_jira"><a href="community/jira.htm">Ticketing system</a></li>
+								<!--<li id="menu_community_road_map"><a href="community/road_map.htm">Road map</a></li>-->
+								<li id="menu_community_contributors"><a href="community/contributors.htm">Contributors</a></li>
+							</ul>
+						</li>
+						<li id="menu_disclaimer"><a href="disclaimer.htm">Disclaimer</a></li>
+					</ul>
+				</div>
+				
+		</div>
+	
+		<!-- #BeginEditable "menu" -->	
+	<script type="text/javascript">
+		var menu = new Menu( 'mainMenu' );
+	</script>
+		<!-- #EndEditable -->
+		<script type="text/javascript">
+			/* <![CDATA[ */
+			if( menu ) {
+				// Menu fully opened (comment out if not wanted)
+				// menu.openAll();
+			/* ]]> */
+			}
+		</script>
+	
+		<div id="main">		
+			
+			<div id="pathway">
+			<!-- #BeginEditable "pathway" -->
+	        	<span class="breadcrumbs pathway">Imprint</span>
+	        <!-- #EndEditable -->
+	        </div>
+			
+			<div id="content">
+			<!-- #BeginEditable "content" -->
+		
+		<p>The information contained on this website is published and maintained by:</p>	
+			
+		<h1>Company name and address</h1>
+		<p> <strong>ESTEAM Software GmbH</strong><br />
+			Blarerstraße 56<br />
+			78462 Konstanz<br/>
+		Germany<br/>
+		</p>
+		<div class="phonefax">Tel:</div>+49 7531 45716-0
+		<div class="phonefax">Fax:</div><div>+49 7531 45716-16</div>
+
+		<h1>Managers</h1>	
+		<p>Matthew Bond, Rainer Döbele</p>
+
+		<h1>Legal</h1>	
+		<p>Court of registration: Amtsgericht Freiburg, HRB 381845</p>
+
+		<h1>Copyright notice</h1>		
+		<p>© Copyright 2008 ESTEAM Software all rights reserved.</p>
+		<p>All text, tables, graphics and images published on these web pages are 
+		copyright of ESTEAM Software and may not be copied, published or 
+		reproduced without written permission.</p>
+
+		<h1>Warranty notice</h1>
+		<p>The information on this website has been carefully checked and is 
+		based on information available at the time of publication. ESTEAM 
+		Software provides no warranty that this information is accurate or complete at the 
+		time of reading and refuses to accept any liability whatsoever for 
+		material or notional damage caused by this information.</p>
+			
+			<!-- #EndEditable --></div>
+					
+			<div id="nav">
+				<hr />
+				<div id="nav_prev">
+					<a id="prev" href=""><img src="images/prev.gif" alt="" /> Previous Page</a> 
+					&nbsp;
+				</div>
+				<div id="nav_next">
+					&nbsp;
+					<a id="next" href="">Next Page <img src="images/next.gif" alt="" /></a>
+				</div>
+				<div style="clear: both;"></div>
+			</div>
+			
+			<script type="text/javascript">
+			/* <![CDATA[ */
+				if( ( typeof(prev_page) == "undefined" || prev_page == "" ) &&
+					( typeof(next_page) == "undefined" || next_page == "" ) ) 
+				{
+					$( 'nav' ).hide();
+				}
+				else 
+				{			
+					if( typeof(prev_page) != "undefined" && prev_page != "" ) {
+						$( 'prev' ).href = prev_page;
+						$( 'prev' ).show();
+					}
+					else {
+						$( 'prev' ).hide();
+					}
+					
+					if( typeof(next_page) != "undefined" && next_page !="" ) {
+						$( 'next' ).href = next_page;
+						$( 'next' ).show();
+					}
+					else {
+						$( 'next' ).hide();
+					}
+				}
+			/* ]]> */
+			</script>
+
+		</div>
+
+	</div>
+	
+	<!-- Footer -->		
+	<div id="footer">
+		<small>Copyright &copy; 2008, The Apache Software Foundation</small>&nbsp;<!--<p style="padding-right: 25px; text-align: right;">
+	    <a href="http://validator.w3.org/check?uri=referer">
+		<img
+	        src="images/valid-xhtml10.png"
+	        alt="Valid XHTML 1.0 Transitional" height="31" width="88" /></a>
+	 	</p>--></div>
+
+</div>
+
+</body>
+<!-- #EndTemplate -->
+</html>
\ No newline at end of file

Propchange: incubator/empire-db/site/imprint.htm
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/empire-db/site/index.html
URL: http://svn.apache.org/viewvc/incubator/empire-db/site/index.html?rev=681719&view=auto
==============================================================================
--- incubator/empire-db/site/index.html (added)
+++ incubator/empire-db/site/index.html Fri Aug  1 08:15:26 2008
@@ -0,0 +1,276 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang="en-gb" >
+<!-- #BeginTemplate "main.dwt" -->
+<head>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+	<meta http-equiv="language" content="en" />
+	<meta name="robots" content="index, follow" />
+	<meta name="keywords" content="java, jar, jdbc, sql, data, metadata, persistence, rdbms, orm, mapping" />
+	<meta name="description" content="Open Source relational data persistence component." />
+	
+	<!-- #BeginEditable "doctitle" -->
+	<title>Empire-db relational data persistence</title>
+	<!-- #EndEditable -->
+	
+	<script type="text/javascript" src="./js/prototype.js"></script>
+	<script type="text/javascript" src="./js/menu.js"></script>
+	<!-- #BeginEditable "javascripts" -->
+	<!-- #EndEditable -->
+	
+	<link rel="shortcut icon" href="empire-db.ico" />
+	<link rel="stylesheet" href="css/layout.css" type="text/css" />
+	<!-- #BeginEditable "stylesheets" -->
+<style type="text/css">
+
+div#top {
+	height: 20px;	
+}
+
+table#comparison {
+	display: block;
+	width: 580px;
+}
+
+table#comparison th {
+	background-color: #F0F0F0;
+}
+
+table#comparison tbody th {
+	width: 150px;
+	text-align: left;
+}
+
+table#comparison td {
+	text-align: center;
+}
+
+table#comparison td.classical {
+	background-color: #ffffaa; /* #ffff99; */
+}
+
+table#comparison td.empiredb {
+	background-color: #ffd5aa; /* #ffcc99; /*
+}
+
+</style>
+	<!-- #EndEditable -->
+</head>
+
+<body>
+<div id="wrapper">
+
+	<!-- Header -->
+	<div id="header">
+		<div id="logo">
+			<img src="images/logos/empire-db-logo.gif" alt="Empire-db: The relational data persistence component." />
+		</div>
+		<div id="asf">
+			<a target="_blank" href="http://incubator.apache.org/">
+			<img src="images/logos/apache-incubator-logo.png" alt="Apache Incubator" /></a>
+		</div>
+		<div style="clear:both"></div>
+	</div>
+	
+	<!-- Top -->
+	<div id="top">
+		<div id="topbar">&nbsp;</div>
+	</div>
+	
+	<!-- Middle -->
+	<div id="middle">
+		<div id="left">    
+				<div id="menuBox">     
+					<ul id="mainMenu">
+						<li id="menu_home"><a href="index.html">Home</a></li>
+						<li id="menu_news"><a href="news.htm">News</a></li>
+						<li id="menu_empiredb"><a href="empiredb/empiredb.htm">Empire-db</a>
+								<ul class="subMenu">
+									<li id="menu_empiredb_extending_pattern"><a href="empiredb/pattern.htm">The Empire DAO-<br />pattern</a></li>
+									<li id="menu_empiredb_handling_metadata"><a href="empiredb/metadata.htm">Handling data and metadata</a></li>
+									<li id="menu_empiredb_wrong"><a href="empiredb/hibernate.htm">What's wrong with Hibernate and JPA</a></li>
+									<li id="menu_empiredb_stringfree"><a href="empiredb/stringfree.htm">The principle of<br/>string-free coding</a></li>
+									<li id="menu_empiredb_faq"><a href="empiredb/faq.htm">FAQ</a></li>
+								</ul>
+						</li>
+						<li id="menu_struts2ext"><a href="struts2ext/struts2ext.htm">Empire-db and Struts2</a>
+							<ul class="subMenu">
+								<li id="menu_struts2ext_forms_controls"><a href="struts2ext/forms_controls.htm">Forms and controls</a></li>
+								<li id="menu_struts2ext_rendering_parsing"><a href="struts2ext/rendering_parsing.htm">Rendering and parsing</a></li>
+								<!--<li id="menu_struts2ext_tag_reference"><a href="struts2ext/tag_reference.htm">Tag reference</a></li>-->
+								<li id="menu_struts2ext_input_controls"><a href="struts2ext/input_controls.htm">Input controls</a></li>
+							</ul>
+						</li>
+						<li id="menu_downloads"><a href="downloads/downloads.htm">Downloads</a>
+								<ul class="subMenu">
+									<li id="menu_downloads_license"><a href="downloads/license.htm">License</a></li>
+								</ul>
+						</li>
+						<li id="menu_documentation"><a href="documentation/documentation.htm">Documentation</a>					
+							<ul class="subMenu">
+								<li id="menu_documentation_class_overview"><a href="documentation/class_overview.htm">Empire-db class<br />overview</a></li>
+								<li id="menu_documentation_tutorials"><a href="documentation/tutorial.htm">Tutorial</a></li>
+								<li id="menu_documentation_getting_started"><a href="documentation/getting_started.htm">Getting started</a></li>
+								<li id="menu_documentation_api"><a href="documentation/api.htm">API</a></li>
+							</ul>
+						</li>
+						<li id="menu_community"><a href="community/community.htm">Community</a>					
+							<ul class="subMenu">
+								<li id="menu_community_mailing_lists"><a href="community/mailing_lists.htm">Mailing lists</a></li>
+								<!--<li id="menu_community_source_code"><a href="community/source_code.htm">Source code</a></li>-->
+								<li id="menu_community_jira"><a href="community/jira.htm">Ticketing system</a></li>
+								<!--<li id="menu_community_road_map"><a href="community/road_map.htm">Road map</a></li>-->
+								<li id="menu_community_contributors"><a href="community/contributors.htm">Contributors</a></li>
+							</ul>
+						</li>
+						<li id="menu_disclaimer"><a href="disclaimer.htm">Disclaimer</a></li>
+					</ul>
+				</div>
+				
+		</div>
+	
+		<!-- #BeginEditable "menu" -->	
+	<script type="text/javascript">
+		var menu = new Menu( 'mainMenu', 'menu_home' );
+	</script>
+		<!-- #EndEditable -->
+		<script type="text/javascript">
+			/* <![CDATA[ */
+			if( menu ) {
+				// Menu fully opened (comment out if not wanted)
+				// menu.openAll();
+			/* ]]> */
+			}
+		</script>
+	
+		<div id="main">		
+			
+			<div id="pathway">
+			<!-- #BeginEditable "pathway" -->
+	        	Home
+	        <!-- #EndEditable -->
+	        </div>
+			
+			<div id="content">
+			<!-- #BeginEditable "content" -->
+		<h1>Relational data persistence with Apache Empire-db</h1>
+		
+		<p style="margin-bottom: 10px">Apache Empire-db is an Open Source relational 
+		data persistence component which allows database vendor independent 
+		dynamic query definition as well as safe and simple data retrieval and updating. Compared to most 
+		other solutions like e.g. Hibernate, TopLink, iBATIS or JPA implementations, 
+		Empire-db takes a considerably different approach, with a special focus 
+		on compile-time safety, reduced redundancies and improved developer 
+		productivity.</p>
+		<h3 style="margin: 0px 0px 10px 0px">This is how it compares:</h3>
+		<table id="comparison" style="margin: auto;">
+		<thead>
+			<tr><th style="border-left-width:0px;border-top-width:0px;background-color:white" width="24%">&nbsp;</th>
+				<th width="38%">The classic approach<br/>(e.g. JPA, Hibernate)</th>
+				<th width="38%">Empire-db</th>
+			</tr>
+		</thead>
+		<tbody>
+			<tr><th>Database schema definition</th><td class="classical">XML or annotations</td><td class="empiredb">Java 
+				object model</td></tr>			
+			<tr><th>Data and metadata access</th><td class="classical">Static JavaBeans used for<br/>
+				simple data transfer.<br/>No or cumbersome<br/>
+				metadata support.</td><td class="empiredb">Dynamic beans with<br/>
+				metadata available through comprehensible and concise<br/>
+				object hierarchy.</td></tr>
+			<tr><th>Dynamic query definition</th><td class="classical">String-based query language 
+				<br/>
+				or object based API requiring column / property names to be provided as string 
+				literals.<br/>
+				Usually works with full<br/>
+				database entities.</td><td class="empiredb">Type-safe, string-free 
+				<br/>
+				and intuitive API. 
+				<br/>
+				Build any SQL statement including the select clause and use it 
+				with any POJO not just full featured entity beans.</td></tr>
+		</tbody>
+		</table>
+		
+		<h3 style="margin-top: 20px">... and what it can be used for:</h3>
+		<p style="margin-top: 10px">With dynamic beans and metadata support Empire-db may serve as the groundwork 
+		for building applications with a yet unknown level of integration. For 
+		the popular <a href="http://struts.apache.org/2.x">Struts2 Web 
+		application framework</a> we offer an extension which acts as the glue 
+		between presentation and business / persistence layer. This not only 
+		dramatically reduces redundancies and thus improves quality but also 
+		allows a much better separation of&nbsp;model and view. As an 
+		example, whether or not the value of a form input control is editable or 
+		read only (which might depend on user access rights or 
+		record state) can be controlled solely by the model 
+		without any changes in the view.</p>
+		
+		<h1>Find out more....</h1>
+		<table id="find_out_more">
+			<tr><th class="odd"><a href="empiredb/empiredb.htm">Empire-db at a glance</a></th><td class="odd">Empire-db facts and features.</td></tr>
+			<tr><th><a href="empiredb/hibernate.htm">Empire-db vs. Hibernate</a></th><td>Learn about the different concepts of relational data persistence.</td></tr>
+			<tr><th class="odd"><a href="struts2ext/struts2ext.htm">Empire-db and Struts 2</a></th><td class="odd">Find out how Web applications can benefit from Empire-db&#39;s dynamic beans and metadata.</td></tr>
+			<tr><th><a href="downloads/downloads.htm">Get Empire-db</a></th><td>Download Empire-db and related packages as well as sample projects.</td></tr>
+		</table>
+	
+		<!--<img style="display: block; margin: auto; width: 600px; height: 272px;" src="images/diagrams/dao_pattern.png" alt="" />-->
+			<!-- #EndEditable --></div>
+					
+			<div id="nav">
+				<hr />
+				<div id="nav_prev">
+					<a id="prev" href=""><img src="images/prev.gif" alt="" /> Previous Page</a> 
+					&nbsp;
+				</div>
+				<div id="nav_next">
+					&nbsp;
+					<a id="next" href="">Next Page <img src="images/next.gif" alt="" /></a>
+				</div>
+				<div style="clear: both;"></div>
+			</div>
+			
+			<script type="text/javascript">
+			/* <![CDATA[ */
+				if( ( typeof(prev_page) == "undefined" || prev_page == "" ) &&
+					( typeof(next_page) == "undefined" || next_page == "" ) ) 
+				{
+					$( 'nav' ).hide();
+				}
+				else 
+				{			
+					if( typeof(prev_page) != "undefined" && prev_page != "" ) {
+						$( 'prev' ).href = prev_page;
+						$( 'prev' ).show();
+					}
+					else {
+						$( 'prev' ).hide();
+					}
+					
+					if( typeof(next_page) != "undefined" && next_page !="" ) {
+						$( 'next' ).href = next_page;
+						$( 'next' ).show();
+					}
+					else {
+						$( 'next' ).hide();
+					}
+				}
+			/* ]]> */
+			</script>
+
+		</div>
+
+	</div>
+	
+	<!-- Footer -->		
+	<div id="footer">
+		<small>Copyright &copy; 2008, The Apache Software Foundation</small>&nbsp;<!--<p style="padding-right: 25px; text-align: right;">
+	    <a href="http://validator.w3.org/check?uri=referer">
+		<img
+	        src="images/valid-xhtml10.png"
+	        alt="Valid XHTML 1.0 Transitional" height="31" width="88" /></a>
+	 	</p>--></div>
+
+</div>
+
+</body>
+<!-- #EndTemplate -->
+</html>
\ No newline at end of file

Propchange: incubator/empire-db/site/index.html
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/empire-db/site/js/maillink.js
URL: http://svn.apache.org/viewvc/incubator/empire-db/site/js/maillink.js?rev=681719&view=auto
==============================================================================
--- incubator/empire-db/site/js/maillink.js (added)
+++ incubator/empire-db/site/js/maillink.js Fri Aug  1 08:15:26 2008
@@ -0,0 +1,21 @@
+var MailLink = Class.create ( {
+	initialize: function( link_id, name, server ) {
+		var link = $( link_id );
+		if( !link ) {
+			return;
+		}
+		
+		this.name = name;
+		this.server = server;
+		
+		link.href = "#";
+		
+		var self = this;
+		link.onclick = function() { self.call(); };
+	},
+	
+	call: function() {
+		document.location.href = "mailto:" + this.name + '@' + this.server;
+		return false;
+	}
+});
\ No newline at end of file

Propchange: incubator/empire-db/site/js/maillink.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/empire-db/site/js/menu.js
URL: http://svn.apache.org/viewvc/incubator/empire-db/site/js/menu.js?rev=681719&view=auto
==============================================================================
--- incubator/empire-db/site/js/menu.js (added)
+++ incubator/empire-db/site/js/menu.js Fri Aug  1 08:15:26 2008
@@ -0,0 +1,185 @@
+var MenuItem = Class.create ( {
+	initialize: function( id, menu ) {
+		this.element = $(id);
+		this.element.style.cursor = "pointer";
+		this.menu = menu;		
+				
+		var children = this.element.select( 'ul' );
+		this.hasSubmenu = children.size() > 0;
+		if( this.hasSubmenu ) {
+			this.submenu = new Menu( children[ 0 ].identify() );
+			this.submenu.setParentMenu( this.menu );
+		}
+	},
+	
+	getSubmenu: function() {
+		return this.submenu;
+	},
+	
+	isSubmenuOpen: function() {
+		if( this.hasSubmenu )
+		{
+			var menu = this.getSubmenu();
+			return menu.element.visible();
+		}
+		return false;
+	},
+	
+	openSubmenu: function() {
+		if( this.hasSubmenu )
+		{
+			var menu = this.getSubmenu();			
+			menu.element.show();
+		}
+	},
+	
+	closeSubmenu: function() {
+		if( this.hasSubmenu )
+		{
+			var menu = this.getSubmenu();			
+			menu.element.hide();
+		}
+	},
+	
+	toggleSubmenu: function() {
+		if( this.isSubmenuOpen() ) {
+			this.closeSubmenu();
+		}
+		else {
+			this.openSubmenu();
+		}
+	},	
+		
+	select: function( linkId ) {
+		if( this.hasSubmenu ) {
+			this.getSubmenu().select( linkId );
+		}
+	},
+	
+	isLinked: function() {
+		return this.getLink() != "#" && this.getLink() != "";
+	},
+	
+	getLinkTag: function() {		
+		var children = this.element.select( 'a' );
+		if( children.size() > 0 ) {
+			return children[ 0 ];
+		}
+	},
+	
+	getLink: function() {		
+		if( this.getLinkTag() ) {
+			return this.getLinkTag().href;
+		}
+	},
+	
+	isExtern: function() {
+		if( this.getLinkTag() ) {
+			return this.getLinkTag().target == '_blank';
+		}
+		else {
+			return false;
+		}
+	}
+
+});
+
+var Menu = Class.create( {
+	initialize: function( id, startLinkId, startSubmenuLinkId ) {
+		this.element = $( id );		
+		this.links = new Hash();
+		this.currentLink = 0;
+		
+		var children = this.element.childElements();
+		for( var index = 0; index < children.size(); ++index ) {
+			var link = children[ index ];	  		
+	  		var linkId = link.identify();			
+			var menuItem = new MenuItem( linkId, this );			
+			link.onclick = this.select.bind( this, linkId, 0 );
+			
+			if( linkId != startLinkId ) {
+				menuItem.closeSubmenu();
+			}
+			
+			this.links.set( linkId, menuItem );
+		}
+		
+		this.select( startLinkId, startSubmenuLinkId );
+	},
+	
+	setParentMenu: function( menu ) {
+		this.parent_menu = menu;
+	},
+	
+	setChildHandleFlag: function() {
+		this.child_handle = true;
+	},
+	
+	select: function( linkId, submenuLinkId ) {
+
+		// inform parent menu about handling
+		if( this.parent_menu ) {
+			this.parent_menu.setChildHandleFlag();
+		}
+		
+		if( this.child_handle ) {
+			this.child_handle = false;
+			return;
+		}
+
+		var link = this.links.get( linkId );
+		if( !link || link.isExtern() ) {
+			return;
+		}
+		
+		// change mark
+		if( this.currentLink ) {
+			this.currentLink.element.removeClassName( "current" );		
+			this.currentLink.element.removeClassName( "current_sub" );
+		}
+		if( !submenuLinkId ) {
+			link.element.addClassName( "current" );	
+		}
+		else {
+			link.element.addClassName( "current_sub" );	
+		}
+
+		// If menu was not opened menu pop it up
+		if( this.currentLink != link ) {		
+			if( this.currentLink ) {
+				this.currentLink.closeSubmenu();
+			}
+
+			link.openSubmenu();
+		}
+		else {
+			link.toggleSubmenu();
+		}
+				
+		// select submenu link
+		if( submenuLinkId ) {
+			link.select( submenuLinkId );
+		}
+		this.currentLink = link;
+	},
+	
+	openAll: function() {
+		var items = this.links.values();
+		for( i = 0; i < items.length; ++i ) {
+			var item = items[ i ];
+			if( item && item.hasSubmenu ) {
+				item.openSubmenu();
+			}
+		}
+	},
+	
+	closeAll: function() {
+		var items = this.links.values();
+		for( i = 0; i < items.length; ++i ) {
+			var item = items[ i ];
+			if( item && item.hasSubmenu ) {
+				item.closeSubmenu();
+			}
+		}
+	}
+});

Propchange: incubator/empire-db/site/js/menu.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain



Mime
View raw message