You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by js...@apache.org on 2009/03/19 11:37:20 UTC

svn commit: r755904 [16/40] - in /camel/trunk/components/camel-web/src/main/webapp/js/dojox: ./ analytics/ analytics/logger/ analytics/plugins/ analytics/profiles/ atom/ atom/io/ atom/widget/ atom/widget/nls/ atom/widget/nls/cs/ atom/widget/nls/de/ ato...

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/Inline.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/Inline.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/Inline.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/Inline.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,31 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.dtl.Inline"]){
+dojo._hasResource["dojox.dtl.Inline"]=true;
+dojo.provide("dojox.dtl.Inline");
+dojo.require("dojox.dtl._base");
+dojo.require("dijit._Widget");
+dojox.dtl.Inline=dojo.extend(function(_1,_2){
+this.create(_1,_2);
+},dijit._Widget.prototype,{context:null,render:function(_3){
+this.context=_3||this.context;
+this.postMixInProperties();
+dojo.query("*",this.domNode).orphan();
+this.domNode.innerHTML=this.template.render(this.context);
+},declaredClass:"dojox.dtl.Inline",buildRendering:function(){
+var _4=this.domNode=document.createElement("div");
+var _5=this.srcNodeRef;
+if(_5.parentNode){
+_5.parentNode.replaceChild(_4,_5);
+}
+this.template=new dojox.dtl.Template(dojo.trim(_5.text),true);
+this.render();
+},postMixInProperties:function(){
+this.context=(this.context.get===dojox.dtl._Context.prototype.get)?this.context:new dojox.dtl._Context(this.context);
+}});
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/Inline.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/README
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/README?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/README (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/README Thu Mar 19 10:37:00 2009
@@ -0,0 +1,207 @@
+-------------------------------------------------------------------------------
+DojoX Django Template Language
+-------------------------------------------------------------------------------
+Version 0.0
+Release date: 09/20/2007
+-------------------------------------------------------------------------------
+Project state: experimental/feature incomplete
+-------------------------------------------------------------------------------
+Project authors
+	Neil Roberts (pottedmeat@dojotoolkit.org)
+-------------------------------------------------------------------------------
+Project description
+
+The Django Template language uses a system of templates that can be compiled
+once and rendered indefinitely afterwards. It uses a simple system of tags
+and filters.
+
+This is a 1:1 match with the Django Template Language as outlined in
+http://www.djangoproject.com/documentation/templates/. All applicable tags and
+filters have been implemented (see below), along with new filters and tags as
+necessary (see below).
+
+The Django Template Language is intended within Django to only handle text.
+Our implementation is able to handle HTML in addition to text. Actually, the
+text and HTML portions of dojox.dtl are two separate layers, the HTML layer
+sits on top of the text layer (base). It's also been implemented in such a way
+that you have little to fear when moving your code from Django to dojox.dtl.
+Your existing templates should work, and will benefit from the massive
+performance gain of being able to manipulate nodes, rather than having to do
+clunky innerHTML swaps you would have to do with a text-only system. It also
+allows for new HTML-centric abilities, outlined below.
+
+Despite having two levels of complexity, if you write your tags correctly, they
+will work in both environments.
+-------------------------------------------------------------------------------
+Dependencies
+
+Base:
+dojox.string.Builder
+
+Date filters and tags:
+dojox.date.php
+
+Widget:
+dijit._Widget
+dijit._Container
+-------------------------------------------------------------------------------
+Installation instructions
+
+Grab the following from the Dojo SVN Repository:
+http://svn.dojotoolkit.org/var/src/dojo/dojox/trunk/dtl.js
+http://svn.dojotoolkit.org/var/src/dojo/dojox/trunk/dtl/*
+
+Install into the following directory structure:
+/dojox/dtl/
+
+...which should be at the same level as your Dojo checkout.
+-------------------------------------------------------------------------------
+What's Been Done
+
+Note: HTML Unit Tests should only be around for the oddities of HTML, tag/filter
+code is the same for each environment with minor exceptions. Cloning of all tags
+should be tested inside a for loop.
+
+| Implemented |     Tag     | Text Unit Test | HTML Unit Test |
+|      X      | block       |       X        |                |
+|      X      | comment     |       X        |                |
+|      X      | cycle       |       X        |                |
+|      X      | debug       |       X        |                |
+|      X      | extends     |       X        |                |
+|      X      | filter      |       X        |                |
+|      X      | firstof     |       X        |                |
+|      X      | for         |       X        |                |
+|      X      | if          |       X        |                |
+|      X      | ifchanged   |       X        |       X        |
+|      X      | ifequal     |       X        |                |
+|      X      | ifnotequal  |       X        |                |
+|      X      | include     |       X        |       X        |
+|      X      | load        |       X        |                |
+|      X      | now         |       X        |                |
+|      X      | regroup     |       X        |                |
+|      X      | spaceless   |       X        |       X        |
+|      X      | ssi         |       X        |       X        |
+|      X      | templatetag |       X        |                |
+|     N/A     | url         |                |                |
+|      X      | widthratio  |       X        |                |
+|      X      | with        |       X        |                |
+
+| Implemented | Filter             | Text Unit Test | HTML Unit Test |
+|      X      | add                |       X        |                |
+|      X      | addslashes         |       X        |                |
+|      X      | capfirst           |       X        |                |
+|      X      | center             |       X        |                |
+|      X      | cut                |       X        |                |
+|      X      | date               |       X        |                |
+|      X      | default            |       X        |                |
+|      X      | default_if_none    |       X        |                |
+|      X      | dictsort           |       X        |                |
+|      X      | dictsort_reversed  |       X        |                |
+|      X      | divisibleby        |       X        |                |
+|      X      | escape             |       X        |                |
+|      X      | filesizeformat     |       X        |                |
+|      X      | first              |       X        |                |
+|      X      | fix_ampersands     |       X        |                |
+|      X      | floatformat        |       X        |                |
+|      X      | get_digit          |       X        |                |
+|      X      | iriencode          |       X        |                |
+|      X      | join               |       X        |                |
+|      X      | length             |       X        |                |
+|      X      | length_is          |       X        |                |
+|      X      | linebreaks         |       X        |                |
+|      X      | linebreaksbr       |       X        |                |
+|      X      | linenumbers        |       X        |                |
+|      X      | ljust              |       X        |                |
+|      X      | lower              |       X        |                |
+|      X      | make_list          |       X        |                |
+|      X      | phone2numeric      |       X        |                |
+|      X      | pluralize          |       X        |                |
+|      X      | pprint             |       X        |                |
+|      X      | random             |       X        |                |
+|      X      | removetags         |       X        |                |
+|      X      | rjust              |       X        |                |
+|      X      | slice              |       X        |                |
+|      X      | slugify            |       X        |                |
+|      X      | stringformat       |       X        |                |
+|      X      | striptags          |       X        |                |
+|      X      | time               |       X        |                |
+|      X      | timesince          |       X        |                |
+|      X      | timeuntil          |       X        |                |
+|      X      | title              |       X        |                |
+|      X      | truncatewords      |       X        |                |
+|      X      | truncatewords_html |       X        |                |
+|      X      | unordered_list     |       X        |                |
+|      X      | upper              |       X        |                |
+|      X      | urlencode          |       X        |                |
+|      X      | urlize             |       X        |                |
+|      X      | urlizetrunc        |       X        |                |
+|      X      | wordcount          |       X        |                |
+|      X      | wordwrap           |       X        |                |
+|      X      | yesno              |       X        |                |
+-------------------------------------------------------------------------------
+HTML-Specific Additions
+-------------------------------------------------------------------------------
+{%extends "shared:templates/template.html" %}
+
+When using the {% extends %} tag, we don't always want to replace the parent
+node in DOM. For example, if we have a list view and a detail view, but both
+share the same base template, we want it to share the parent template. This
+basically means that the same nodes will be used in the parent for both views.
+
+To use this, simply add "shared:" to the beginning of the specified template.
+-------------------------------------------------------------------------------
+<!--{% commented markup %}-->
+
+Some browsers treat comment nodes as full fledged nodes. If performance is
+important to you, you can wrap your markup in comments. The comments will be
+automatically stripped for browsers that cannot support this.
+-------------------------------------------------------------------------------
+Attribute Tags
+
+If a tag name begins with "attr:" then it will be able to inject an object
+into the parsed template. (See dojox.dtl.tag.event.EventNode)
+
+onclick/onmouseover/etc attributes work by attaching to the rendering object.
+
+tstyle attribute allows for styles to be changed dynamically. Use them just
+like a "style" attribute.
+
+attach attribute attaches the node to the rendering object.
+-------------------------------------------------------------------------------
+New Context Functions
+
+setThis() and getThis() returns the object "in charge" of the current rendering.
+This is used so that we can attach events.
+
+mixin() and filter() clone the current context, and either add to or reduce
+the keys in the context.
+-------------------------------------------------------------------------------
+Buffers
+
+Both the base and HTML versions of dojox.dtl use buffers. The base version uses
+dojox.string.Builder and the HTML version uses dojox.dtl.DomBuffer.
+
+The HTML buffer has several calls important to rendering:
+
+setParent/getParent/concat/remove:
+
+setParent and concat are used in order to render our HTML. As we move through
+the parsed template, different nodes change the parent or add on to the
+current parent. getParent is useful in things like the attribute tags, since
+they can use getParent to find the node that they're an attribute on. remove is
+used during unrendering.
+
+setAttribute:
+
+Sets an attribute on the current parent
+-------------------------------------------------------------------------------
+Tags Need clone/unrender Functions.
+
+One of the biggest challenges of getting dojox.dtl to work in an HTML
+environment was logic blocks. Nodes and objects inside a for loop need to be
+cloned, they can't simply be re-rendered, especially if they involve a Node.
+Also, in the case of an if/else block, we need to be able to not just render
+one of the blocks, but also unrender the second.
+
+This is really simple code, a good example is the dojox.dtl.DomNode
+object. Each function in this object is only one line long.
\ No newline at end of file

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/README
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/_DomTemplated.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/_DomTemplated.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/_DomTemplated.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/_DomTemplated.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,61 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.dtl._DomTemplated"]){
+dojo._hasResource["dojox.dtl._DomTemplated"]=true;
+dojo.provide("dojox.dtl._DomTemplated");
+dojo.require("dijit._Templated");
+dojo.require("dojox.dtl.dom");
+dojo.require("dojox.dtl.render.dom");
+dojo.require("dojox.dtl.contrib.dijit");
+dojox.dtl._DomTemplated={prototype:{_dijitTemplateCompat:false,buildRendering:function(){
+this.domNode=this.srcNodeRef;
+if(!this._render){
+var _1=dojox.dtl.contrib.dijit;
+var _2=_1.widgetsInTemplate;
+_1.widgetsInTemplate=this.widgetsInTemplate;
+this.template=this.template||this._getCachedTemplate(this.templatePath,this.templateString);
+this._render=new dojox.dtl.render.dom.Render(this.domNode,this.template);
+_1.widgetsInTemplate=_2;
+}
+this.render();
+this.domNode=this.template.getRootNode();
+if(this.srcNodeRef&&this.srcNodeRef.parentNode){
+dojo.destroy(this.srcNodeRef);
+delete this.srcNodeRef;
+}
+},setTemplate:function(_3,_4){
+if(dojox.dtl.text._isTemplate(_3)){
+this.template=this._getCachedTemplate(null,_3);
+}else{
+this.template=this._getCachedTemplate(_3);
+}
+this.render(_4);
+},render:function(_5,_6){
+if(_6){
+this.template=_6;
+}
+this._render.render(this._getContext(_5),this.template);
+},_getContext:function(_7){
+if(!(_7 instanceof dojox.dtl.Context)){
+_7=false;
+}
+_7=_7||new dojox.dtl.Context(this);
+_7.setThis(this);
+return _7;
+},_getCachedTemplate:function(_8,_9){
+if(!this._templates){
+this._templates={};
+}
+var _a=_9||_8.toString();
+var _b=this._templates;
+if(_b[_a]){
+return _b[_a];
+}
+return (_b[_a]=new dojox.dtl.DomTemplate(dijit._Templated.getCachedTemplate(_8,_9,true)));
+}}};
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/_DomTemplated.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/_HtmlTemplated.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/_HtmlTemplated.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/_HtmlTemplated.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/_HtmlTemplated.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,15 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.dtl._HtmlTemplated"]){
+dojo._hasResource["dojox.dtl._HtmlTemplated"]=true;
+dojo.provide("dojox.dtl._HtmlTemplated");
+dojo.require("dojox.dtl._DomTemplated");
+dojo.deprecated("dojox.dtl.html","All packages and classes in dojox.dtl that start with Html or html have been renamed to Dom or dom");
+dojox.dtl._HtmlTemplated=dojox.dtl._DomTemplated;
+dojox.dtl._HtmlTemplated.prototype.declaredClass="dojox.dtl._HtmlTemplated";
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/_HtmlTemplated.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/_Templated.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/_Templated.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/_Templated.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/_Templated.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,71 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.dtl._Templated"]){
+dojo._hasResource["dojox.dtl._Templated"]=true;
+dojo.provide("dojox.dtl._Templated");
+dojo.require("dijit._Templated");
+dojo.require("dojox.dtl._base");
+dojo.declare("dojox.dtl._Templated",dijit._Templated,{_dijitTemplateCompat:false,buildRendering:function(){
+var _1;
+if(this.domNode&&!this._template){
+return;
+}
+if(!this._template){
+var t=this.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);
+if(t instanceof dojox.dtl.Template){
+this._template=t;
+}else{
+_1=t;
+}
+}
+if(!_1){
+var _3=dojo._toDom(this._template.render(new dojox.dtl._Context(this)));
+if(_3.nodeType!==1&&_3.nodeType!==3){
+for(var i=0,l=_3.childNodes.length;i<l;++i){
+_1=_3.childNodes[i];
+if(_1.nodeType==1){
+break;
+}
+}
+}else{
+_1=_3;
+}
+}
+this._attachTemplateNodes(_1);
+if(this.widgetsInTemplate){
+var _6=dojo.parser.parse(_1);
+this._attachTemplateNodes(_6,function(n,p){
+return n[p];
+});
+}
+if(this.domNode){
+dojo.place(_1,this.domNode,"before");
+this.destroyDescendants();
+dojo.destroy(this.domNode);
+}
+this.domNode=_1;
+this._fillContent(this.srcNodeRef);
+},_templateCache:{},getCachedTemplate:function(_9,_a,_b){
+var _c=this._templateCache;
+var _d=_a||_9;
+if(_c[_d]){
+return _c[_d];
+}
+_a=dojo.string.trim(_a||dijit._Templated._sanitizeTemplateString(dojo._getText(_9)));
+if(this._dijitTemplateCompat&&(_b||_a.match(/\$\{([^\}]+)\}/g))){
+_a=this._stringRepl(_a);
+}
+if(_b||!_a.match(/\{[{%]([^\}]+)[%}]\}/g)){
+return _c[_d]=dojo._toDom(_a);
+}else{
+return _c[_d]=new dojox.dtl.Template(_a);
+}
+},render:function(){
+this.buildRendering();
+}});
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/_Templated.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/_base.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/_base.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/_base.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/_base.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,574 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.dtl._base"]){
+dojo._hasResource["dojox.dtl._base"]=true;
+dojo.provide("dojox.dtl._base");
+dojo.require("dojox.string.Builder");
+dojo.require("dojox.string.tokenize");
+dojo.experimental("dojox.dtl");
+(function(){
+var dd=dojox.dtl;
+dd.TOKEN_BLOCK=-1;
+dd.TOKEN_VAR=-2;
+dd.TOKEN_COMMENT=-3;
+dd.TOKEN_TEXT=3;
+dd._Context=dojo.extend(function(_2){
+dojo._mixin(this,_2||{});
+this._dicts=[];
+},{push:function(){
+var _3=this;
+var _4=dojo.delegate(this);
+_4.pop=function(){
+return _3;
+};
+return _4;
+},pop:function(){
+throw new Error("pop() called on empty Context");
+},get:function(_5,_6){
+if(typeof this[_5]!="undefined"){
+return this._normalize(this[_5]);
+}
+for(var i=0,_8;_8=this._dicts[i];i++){
+if(typeof _8[_5]!="undefined"){
+return this._normalize(_8[_5]);
+}
+}
+return _6;
+},_normalize:function(_9){
+if(_9 instanceof Date){
+_9.year=_9.getFullYear();
+_9.month=_9.getMonth()+1;
+_9.day=_9.getDate();
+_9.date=_9.year+"-"+("0"+_9.month).slice(-2)+"-"+("0"+_9.day).slice(-2);
+_9.hour=_9.getHours();
+_9.minute=_9.getMinutes();
+_9.second=_9.getSeconds();
+_9.microsecond=_9.getMilliseconds();
+}
+return _9;
+},update:function(_a){
+var _b=this.push();
+if(_a){
+dojo._mixin(this,_a);
+}
+return _b;
+}});
+var _c=/("(?:[^"\\]*(?:\\.[^"\\]*)*)"|'(?:[^'\\]*(?:\\.[^'\\]*)*)'|[^\s]+)/g;
+var _d=/\s+/g;
+var _e=function(_f,_10){
+_f=_f||_d;
+if(!(_f instanceof RegExp)){
+_f=new RegExp(_f,"g");
+}
+if(!_f.global){
+throw new Error("You must use a globally flagged RegExp with split "+_f);
+}
+_f.exec("");
+var _11,_12=[],_13=0,i=0;
+while(_11=_f.exec(this)){
+_12.push(this.slice(_13,_f.lastIndex-_11[0].length));
+_13=_f.lastIndex;
+if(_10&&(++i>_10-1)){
+break;
+}
+}
+_12.push(this.slice(_13));
+return _12;
+};
+dd.Token=function(_15,_16){
+this.token_type=_15;
+this.contents=new String(dojo.trim(_16));
+this.contents.split=_e;
+this.split=function(){
+return String.prototype.split.apply(this.contents,arguments);
+};
+};
+dd.Token.prototype.split_contents=function(_17){
+var bit,_19=[],i=0;
+_17=_17||999;
+while(i++<_17&&(bit=_c.exec(this.contents))){
+bit=bit[0];
+if(bit.charAt(0)=="\""&&bit.slice(-1)=="\""){
+_19.push("\""+bit.slice(1,-1).replace("\\\"","\"").replace("\\\\","\\")+"\"");
+}else{
+if(bit.charAt(0)=="'"&&bit.slice(-1)=="'"){
+_19.push("'"+bit.slice(1,-1).replace("\\'","'").replace("\\\\","\\")+"'");
+}else{
+_19.push(bit);
+}
+}
+}
+return _19;
+};
+var ddt=dd.text={_get:function(_1c,_1d,_1e){
+var _1f=dd.register.get(_1c,_1d.toLowerCase(),_1e);
+if(!_1f){
+if(!_1e){
+throw new Error("No tag found for "+_1d);
+}
+return null;
+}
+var fn=_1f[1];
+var _21=_1f[2];
+var _22;
+if(fn.indexOf(":")!=-1){
+_22=fn.split(":");
+fn=_22.pop();
+}
+dojo["require"](_21);
+var _23=dojo.getObject(_21);
+return _23[fn||_1d]||_23[_1d+"_"]||_23[fn+"_"];
+},getTag:function(_24,_25){
+return ddt._get("tag",_24,_25);
+},getFilter:function(_26,_27){
+return ddt._get("filter",_26,_27);
+},getTemplate:function(_28){
+return new dd.Template(ddt.getTemplateString(_28));
+},getTemplateString:function(_29){
+return dojo._getText(_29.toString())||"";
+},_resolveLazy:function(_2a,_2b,_2c){
+if(_2b){
+if(_2c){
+return dojo.fromJson(dojo._getText(_2a))||{};
+}else{
+return dd.text.getTemplateString(_2a);
+}
+}else{
+return dojo.xhrGet({handleAs:(_2c)?"json":"text",url:_2a});
+}
+},_resolveTemplateArg:function(arg,_2e){
+if(ddt._isTemplate(arg)){
+if(!_2e){
+var d=new dojo.Deferred();
+d.callback(arg);
+return d;
+}
+return arg;
+}
+return ddt._resolveLazy(arg,_2e);
+},_isTemplate:function(arg){
+return (typeof arg=="undefined")||(typeof arg=="string"&&(arg.match(/^\s*[<{]/)||arg.indexOf(" ")!=-1));
+},_resolveContextArg:function(arg,_32){
+if(arg.constructor==Object){
+if(!_32){
+var d=new dojo.Deferred;
+d.callback(arg);
+return d;
+}
+return arg;
+}
+return ddt._resolveLazy(arg,_32,true);
+},_re:/(?:\{\{\s*(.+?)\s*\}\}|\{%\s*(load\s*)?(.+?)\s*%\})/g,tokenize:function(str){
+return dojox.string.tokenize(str,ddt._re,ddt._parseDelims);
+},_parseDelims:function(_35,_36,tag){
+if(_35){
+return [dd.TOKEN_VAR,_35];
+}else{
+if(_36){
+var _38=dojo.trim(tag).split(/\s+/g);
+for(var i=0,_3a;_3a=_38[i];i++){
+dojo["require"](_3a);
+}
+}else{
+return [dd.TOKEN_BLOCK,tag];
+}
+}
+}};
+dd.Template=dojo.extend(function(_3b,_3c){
+var str=_3c?_3b:ddt._resolveTemplateArg(_3b,true)||"";
+var _3e=ddt.tokenize(str);
+var _3f=new dd._Parser(_3e);
+this.nodelist=_3f.parse();
+},{update:function(_40,_41){
+return ddt._resolveContextArg(_41).addCallback(this,function(_42){
+var _43=this.render(new dd._Context(_42));
+if(_40.forEach){
+_40.forEach(function(_44){
+_44.innerHTML=_43;
+});
+}else{
+dojo.byId(_40).innerHTML=_43;
+}
+return this;
+});
+},render:function(_45,_46){
+_46=_46||this.getBuffer();
+_45=_45||new dd._Context({});
+return this.nodelist.render(_45,_46)+"";
+},getBuffer:function(){
+dojo.require("dojox.string.Builder");
+return new dojox.string.Builder();
+}});
+var _47=/\{\{\s*(.+?)\s*\}\}/g;
+dd.quickFilter=function(str){
+if(!str){
+return new dd._NodeList();
+}
+if(str.indexOf("{%")==-1){
+return new dd._QuickNodeList(dojox.string.tokenize(str,_47,function(_49){
+return new dd._Filter(_49);
+}));
+}
+};
+dd._QuickNodeList=dojo.extend(function(_4a){
+this.contents=_4a;
+},{render:function(_4b,_4c){
+for(var i=0,l=this.contents.length;i<l;i++){
+if(this.contents[i].resolve){
+_4c=_4c.concat(this.contents[i].resolve(_4b));
+}else{
+_4c=_4c.concat(this.contents[i]);
+}
+}
+return _4c;
+},dummyRender:function(_4f){
+return this.render(_4f,dd.Template.prototype.getBuffer()).toString();
+},clone:function(_50){
+return this;
+}});
+dd._Filter=dojo.extend(function(_51){
+if(!_51){
+throw new Error("Filter must be called with variable name");
+}
+this.contents=_51;
+var _52=this._cache[_51];
+if(_52){
+this.key=_52[0];
+this.filters=_52[1];
+}else{
+this.filters=[];
+dojox.string.tokenize(_51,this._re,this._tokenize,this);
+this._cache[_51]=[this.key,this.filters];
+}
+},{_cache:{},_re:/(?:^_\("([^\\"]*(?:\\.[^\\"])*)"\)|^"([^\\"]*(?:\\.[^\\"]*)*)"|^([a-zA-Z0-9_.]+)|\|(\w+)(?::(?:_\("([^\\"]*(?:\\.[^\\"])*)"\)|"([^\\"]*(?:\\.[^\\"]*)*)"|([a-zA-Z0-9_.]+)|'([^\\']*(?:\\.[^\\']*)*)'))?|^'([^\\']*(?:\\.[^\\']*)*)')/g,_values:{0:"\"",1:"\"",2:"",8:"\""},_args:{4:"\"",5:"\"",6:"",7:"'"},_tokenize:function(){
+var pos,arg;
+for(var i=0,has=[];i<arguments.length;i++){
+has[i]=(typeof arguments[i]!="undefined"&&typeof arguments[i]=="string"&&arguments[i]);
+}
+if(!this.key){
+for(pos in this._values){
+if(has[pos]){
+this.key=this._values[pos]+arguments[pos]+this._values[pos];
+break;
+}
+}
+}else{
+for(pos in this._args){
+if(has[pos]){
+var _57=arguments[pos];
+if(this._args[pos]=="'"){
+_57=_57.replace(/\\'/g,"'");
+}else{
+if(this._args[pos]=="\""){
+_57=_57.replace(/\\"/g,"\"");
+}
+}
+arg=[!this._args[pos],_57];
+break;
+}
+}
+var fn=ddt.getFilter(arguments[3]);
+if(!dojo.isFunction(fn)){
+throw new Error(arguments[3]+" is not registered as a filter");
+}
+this.filters.push([fn,arg]);
+}
+},getExpression:function(){
+return this.contents;
+},resolve:function(_59){
+if(typeof this.key=="undefined"){
+return "";
+}
+var str=this.resolvePath(this.key,_59);
+for(var i=0,_5c;_5c=this.filters[i];i++){
+if(_5c[1]){
+if(_5c[1][0]){
+str=_5c[0](str,this.resolvePath(_5c[1][1],_59));
+}else{
+str=_5c[0](str,_5c[1][1]);
+}
+}else{
+str=_5c[0](str);
+}
+}
+return str;
+},resolvePath:function(_5d,_5e){
+var _5f,_60;
+var _61=_5d.charAt(0);
+var _62=_5d.slice(-1);
+if(!isNaN(parseInt(_61))){
+_5f=(_5d.indexOf(".")==-1)?parseInt(_5d):parseFloat(_5d);
+}else{
+if(_61=="\""&&_61==_62){
+_5f=_5d.slice(1,-1);
+}else{
+if(_5d=="true"){
+return true;
+}
+if(_5d=="false"){
+return false;
+}
+if(_5d=="null"||_5d=="None"){
+return null;
+}
+_60=_5d.split(".");
+_5f=_5e.get(_60[0]);
+if(dojo.isFunction(_5f)){
+var _63=_5e.getThis&&_5e.getThis();
+if(_5f.alters_data){
+_5f="";
+}else{
+if(_63){
+_5f=_5f.call(_63);
+}else{
+_5f="";
+}
+}
+}
+for(var i=1;i<_60.length;i++){
+var _65=_60[i];
+if(_5f){
+var _66=_5f;
+if(dojo.isObject(_5f)&&_65=="items"&&typeof _5f[_65]=="undefined"){
+var _67=[];
+for(var key in _5f){
+_67.push([key,_5f[key]]);
+}
+_5f=_67;
+continue;
+}
+if(_5f.get&&dojo.isFunction(_5f.get)&&_5f.get.safe){
+_5f=_5f.get(_65);
+}else{
+if(typeof _5f[_65]=="undefined"){
+_5f=_5f[_65];
+break;
+}else{
+_5f=_5f[_65];
+}
+}
+if(dojo.isFunction(_5f)){
+if(_5f.alters_data){
+_5f="";
+}else{
+_5f=_5f.call(_66);
+}
+}else{
+if(_5f instanceof Date){
+_5f=dd._Context.prototype._normalize(_5f);
+}
+}
+}else{
+return "";
+}
+}
+}
+}
+return _5f;
+}});
+dd._TextNode=dd._Node=dojo.extend(function(obj){
+this.contents=obj;
+},{set:function(_6a){
+this.contents=_6a;
+return this;
+},render:function(_6b,_6c){
+return _6c.concat(this.contents);
+},isEmpty:function(){
+return !dojo.trim(this.contents);
+},clone:function(){
+return this;
+}});
+dd._NodeList=dojo.extend(function(_6d){
+this.contents=_6d||[];
+this.last="";
+},{push:function(_6e){
+this.contents.push(_6e);
+return this;
+},concat:function(_6f){
+this.contents=this.contents.concat(_6f);
+return this;
+},render:function(_70,_71){
+for(var i=0;i<this.contents.length;i++){
+_71=this.contents[i].render(_70,_71);
+if(!_71){
+throw new Error("Template must return buffer");
+}
+}
+return _71;
+},dummyRender:function(_73){
+return this.render(_73,dd.Template.prototype.getBuffer()).toString();
+},unrender:function(){
+return arguments[1];
+},clone:function(){
+return this;
+},rtrim:function(){
+while(1){
+i=this.contents.length-1;
+if(this.contents[i] instanceof dd._TextNode&&this.contents[i].isEmpty()){
+this.contents.pop();
+}else{
+break;
+}
+}
+return this;
+}});
+dd._VarNode=dojo.extend(function(str){
+this.contents=new dd._Filter(str);
+},{render:function(_75,_76){
+var str=this.contents.resolve(_75);
+if(!str.safe){
+str=dd._base.escape(""+str);
+}
+return _76.concat(str);
+}});
+dd._noOpNode=new function(){
+this.render=this.unrender=function(){
+return arguments[1];
+};
+this.clone=function(){
+return this;
+};
+};
+dd._Parser=dojo.extend(function(_78){
+this.contents=_78;
+},{i:0,parse:function(_79){
+var _7a={};
+_79=_79||[];
+for(var i=0;i<_79.length;i++){
+_7a[_79[i]]=true;
+}
+var _7c=new dd._NodeList();
+while(this.i<this.contents.length){
+token=this.contents[this.i++];
+if(typeof token=="string"){
+_7c.push(new dd._TextNode(token));
+}else{
+var _7d=token[0];
+var _7e=token[1];
+if(_7d==dd.TOKEN_VAR){
+_7c.push(new dd._VarNode(_7e));
+}else{
+if(_7d==dd.TOKEN_BLOCK){
+if(_7a[_7e]){
+--this.i;
+return _7c;
+}
+var cmd=_7e.split(/\s+/g);
+if(cmd.length){
+cmd=cmd[0];
+var fn=ddt.getTag(cmd);
+if(fn){
+_7c.push(fn(this,new dd.Token(_7d,_7e)));
+}
+}
+}
+}
+}
+}
+if(_79.length){
+throw new Error("Could not find closing tag(s): "+_79.toString());
+}
+this.contents.length=0;
+return _7c;
+},next_token:function(){
+var _81=this.contents[this.i++];
+return new dd.Token(_81[0],_81[1]);
+},delete_first_token:function(){
+this.i++;
+},skip_past:function(_82){
+while(this.i<this.contents.length){
+var _83=this.contents[this.i++];
+if(_83[0]==dd.TOKEN_BLOCK&&_83[1]==_82){
+return;
+}
+}
+throw new Error("Unclosed tag found when looking for "+_82);
+},create_variable_node:function(_84){
+return new dd._VarNode(_84);
+},create_text_node:function(_85){
+return new dd._TextNode(_85||"");
+},getTemplate:function(_86){
+return new dd.Template(_86);
+}});
+dd.register={_registry:{attributes:[],tags:[],filters:[]},get:function(_87,_88){
+var _89=dd.register._registry[_87+"s"];
+for(var i=0,_8b;_8b=_89[i];i++){
+if(typeof _8b[0]=="string"){
+if(_8b[0]==_88){
+return _8b;
+}
+}else{
+if(_88.match(_8b[0])){
+return _8b;
+}
+}
+}
+},getAttributeTags:function(){
+var _8c=[];
+var _8d=dd.register._registry.attributes;
+for(var i=0,_8f;_8f=_8d[i];i++){
+if(_8f.length==3){
+_8c.push(_8f);
+}else{
+var fn=dojo.getObject(_8f[1]);
+if(fn&&dojo.isFunction(fn)){
+_8f.push(fn);
+_8c.push(_8f);
+}
+}
+}
+return _8c;
+},_any:function(_91,_92,_93){
+for(var _94 in _93){
+for(var i=0,fn;fn=_93[_94][i];i++){
+var key=fn;
+if(dojo.isArray(fn)){
+key=fn[0];
+fn=fn[1];
+}
+if(typeof key=="string"){
+if(key.substr(0,5)=="attr:"){
+var _98=fn.toLowerCase();
+if(_98.substr(0,5)=="attr:"){
+_98=_98.slice(5);
+}
+dd.register._registry.attributes.push([_98,_92+"."+_94+"."+_98]);
+}
+key=key.toLowerCase();
+}
+dd.register._registry[_91].push([key,fn,_92+"."+_94]);
+}
+}
+},tags:function(_99,_9a){
+dd.register._any("tags",_99,_9a);
+},filters:function(_9b,_9c){
+dd.register._any("filters",_9b,_9c);
+}};
+var _9d=/&/g;
+var _9e=/</g;
+var _9f=/>/g;
+var _a0=/'/g;
+var _a1=/"/g;
+dd._base.escape=function(_a2){
+return dd.mark_safe(_a2.replace(_9d,"&amp;").replace(_9e,"&lt;").replace(_9f,"&gt;").replace(_a1,"&quot;").replace(_a0,"&#39;"));
+};
+dd._base.safe=function(_a3){
+if(typeof _a3=="string"){
+_a3=new String(_a3);
+}
+if(typeof _a3=="object"){
+_a3.safe=true;
+}
+return _a3;
+};
+dd.mark_safe=dd._base.safe;
+dd.register.tags("dojox.dtl.tag",{"date":["now"],"logic":["if","for","ifequal","ifnotequal"],"loader":["extends","block","include","load","ssi"],"misc":["comment","debug","filter","firstof","spaceless","templatetag","widthratio","with"],"loop":["cycle","ifchanged","regroup"]});
+dd.register.filters("dojox.dtl.filter",{"dates":["date","time","timesince","timeuntil"],"htmlstrings":["linebreaks","linebreaksbr","removetags","striptags"],"integers":["add","get_digit"],"lists":["dictsort","dictsortreversed","first","join","length","length_is","random","slice","unordered_list"],"logic":["default","default_if_none","divisibleby","yesno"],"misc":["filesizeformat","pluralize","phone2numeric","pprint"],"strings":["addslashes","capfirst","center","cut","fix_ampersands","floatformat","iriencode","linenumbers","ljust","lower","make_list","rjust","slugify","stringformat","title","truncatewords","truncatewords_html","upper","urlencode","urlize","urlizetrunc","wordcount","wordwrap"]});
+dd.register.filters("dojox.dtl",{"_base":["escape","safe"]});
+})();
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/_base.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/contrib/data.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/contrib/data.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/contrib/data.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/contrib/data.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,121 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.dtl.contrib.data"]){
+dojo._hasResource["dojox.dtl.contrib.data"]=true;
+dojo.provide("dojox.dtl.contrib.data");
+dojo.require("dojox.dtl._base");
+(function(){
+var dd=dojox.dtl;
+var _2=dd.contrib.data;
+var _3=true;
+_2._BoundItem=dojo.extend(function(_4,_5){
+this.item=_4;
+this.store=_5;
+},{get:function(_6){
+var _7=this.store;
+var _8=this.item;
+if(_6=="getLabel"){
+return _7.getLabel(_8);
+}else{
+if(_6=="getAttributes"){
+return _7.getAttributes(_8);
+}else{
+if(_6=="getIdentity"){
+if(_7.getIdentity){
+return _7.getIdentity(_8);
+}
+return "Store has no identity API";
+}else{
+if(!_7.hasAttribute(_8,_6)){
+if(_6.slice(-1)=="s"){
+if(_3){
+_3=false;
+dojo.deprecated("You no longer need an extra s to call getValues, it can be figured out automatically");
+}
+_6=_6.slice(0,-1);
+}
+if(!_7.hasAttribute(_8,_6)){
+return;
+}
+}
+var _9=_7.getValues(_8,_6);
+if(!_9){
+return;
+}
+if(!dojo.isArray(_9)){
+return new _2._BoundItem(_9,_7);
+}
+_9=dojo.map(_9,function(_a){
+if(dojo.isObject(_a)&&_7.isItem(_a)){
+return new _2._BoundItem(_a,_7);
+}
+return _a;
+});
+_9.get=_2._get;
+return _9;
+}
+}
+}
+}});
+_2._BoundItem.prototype.get.safe=true;
+_2.BindDataNode=dojo.extend(function(_b,_c,_d,_e){
+this.items=_b&&new dd._Filter(_b);
+this.query=_c&&new dd._Filter(_c);
+this.store=new dd._Filter(_d);
+this.alias=_e;
+},{render:function(_f,_10){
+var _11=this.items&&this.items.resolve(_f);
+var _12=this.query&&this.query.resolve(_f);
+var _13=this.store.resolve(_f);
+if(!_13||!_13.getFeatures){
+throw new Error("data_bind didn't receive a store");
+}
+if(_12){
+var _14=false;
+_13.fetch({query:_12,sync:true,scope:this,onComplete:function(it){
+_14=true;
+_11=it;
+}});
+if(!_14){
+throw new Error("The bind_data tag only works with a query if the store executed synchronously");
+}
+}
+var _16=[];
+if(_11){
+for(var i=0,_18;_18=_11[i];i++){
+_16.push(new _2._BoundItem(_18,_13));
+}
+}
+_f[this.alias]=_16;
+return _10;
+},unrender:function(_19,_1a){
+return _1a;
+},clone:function(){
+return this;
+}});
+dojo.mixin(_2,{_get:function(key){
+if(this.length){
+return (this[0] instanceof _2._BoundItem)?this[0].get(key):this[0][key];
+}
+},bind_data:function(_1c,_1d){
+var _1e=_1d.contents.split();
+if(_1e[2]!="to"||_1e[4]!="as"||!_1e[5]){
+throw new Error("data_bind expects the format: 'data_bind items to store as varName'");
+}
+return new _2.BindDataNode(_1e[1],null,_1e[3],_1e[5]);
+},bind_query:function(_1f,_20){
+var _21=_20.contents.split();
+if(_21[2]!="to"||_21[4]!="as"||!_21[5]){
+throw new Error("data_bind expects the format: 'bind_query query to store as varName'");
+}
+return new _2.BindDataNode(null,_21[1],_21[3],_21[5]);
+}});
+_2._get.safe=true;
+dd.register.tags("dojox.dtl.contrib",{"data":["bind_data","bind_query"]});
+})();
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/contrib/data.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/contrib/dijit.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/contrib/dijit.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/contrib/dijit.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/contrib/dijit.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,182 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.dtl.contrib.dijit"]){
+dojo._hasResource["dojox.dtl.contrib.dijit"]=true;
+dojo.provide("dojox.dtl.contrib.dijit");
+dojo.require("dojox.dtl.dom");
+dojo.require("dojo.parser");
+(function(){
+var dd=dojox.dtl;
+var _2=dd.contrib.dijit;
+_2.AttachNode=dojo.extend(function(_3,_4){
+this._keys=_3;
+this._object=_4;
+},{render:function(_5,_6){
+if(!this._rendered){
+this._rendered=true;
+for(var i=0,_8;_8=this._keys[i];i++){
+_5.getThis()[_8]=this._object||_6.getParent();
+}
+}
+return _6;
+},unrender:function(_9,_a){
+if(this._rendered){
+this._rendered=false;
+for(var i=0,_c;_c=this._keys[i];i++){
+if(_9.getThis()[_c]===(this._object||_a.getParent())){
+delete _9.getThis()[_c];
+}
+}
+}
+return _a;
+},clone:function(_d){
+return new this.constructor(this._keys,this._object);
+}});
+_2.EventNode=dojo.extend(function(_e,_f){
+this._command=_e;
+var _10,_11=_e.split(/\s*,\s*/);
+var _12=dojo.trim;
+var _13=[];
+var fns=[];
+while(_10=_11.pop()){
+if(_10){
+var fn=null;
+if(_10.indexOf(":")!=-1){
+var _16=_10.split(":");
+_10=_12(_16[0]);
+fn=_12(_16.slice(1).join(":"));
+}else{
+_10=_12(_10);
+}
+if(!fn){
+fn=_10;
+}
+_13.push(_10);
+fns.push(fn);
+}
+}
+this._types=_13;
+this._fns=fns;
+this._object=_f;
+this._rendered=[];
+},{_clear:false,render:function(_17,_18){
+for(var i=0,_1a;_1a=this._types[i];i++){
+if(!this._clear&&!this._object){
+_18.getParent()[_1a]=null;
+}
+var fn=this._fns[i];
+var _1c;
+if(fn.indexOf(" ")!=-1){
+if(this._rendered[i]){
+dojo.disconnect(this._rendered[i]);
+this._rendered[i]=false;
+}
+_1c=dojo.map(fn.split(" ").slice(1),function(_1d){
+return new dd._Filter(_1d).resolve(_17);
+});
+fn=fn.split(" ",2)[0];
+}
+if(!this._rendered[i]){
+if(!this._object){
+this._rendered[i]=_18.addEvent(_17,_1a,fn,_1c);
+}else{
+this._rendered[i]=dojo.connect(this._object,_1a,_17.getThis(),fn);
+}
+}
+}
+this._clear=true;
+return _18;
+},unrender:function(_1e,_1f){
+while(this._rendered.length){
+dojo.disconnect(this._rendered.pop());
+}
+return _1f;
+},clone:function(){
+return new this.constructor(this._command,this._object);
+}});
+function _20(n1){
+var n2=n1.cloneNode(true);
+if(dojo.isIE){
+dojo.query("script",n2).forEach("item.text = this[index].text;",dojo.query("script",n1));
+}
+return n2;
+};
+_2.DojoTypeNode=dojo.extend(function(_23,_24){
+this._node=_23;
+this._parsed=_24;
+var _25=_23.getAttribute("dojoAttachEvent");
+if(_25){
+this._events=new _2.EventNode(dojo.trim(_25));
+}
+var _26=_23.getAttribute("dojoAttachPoint");
+if(_26){
+this._attach=new _2.AttachNode(dojo.trim(_26).split(/\s*,\s*/));
+}
+if(!_24){
+this._dijit=dojo.parser.instantiate([_20(_23)])[0];
+}else{
+_23=_20(_23);
+var old=_2.widgetsInTemplate;
+_2.widgetsInTemplate=false;
+this._template=new dd.DomTemplate(_23);
+_2.widgetsInTemplate=old;
+}
+},{render:function(_28,_29){
+if(this._parsed){
+var _2a=new dd.DomBuffer();
+this._template.render(_28,_2a);
+var _2b=_20(_2a.getRootNode());
+var div=document.createElement("div");
+div.appendChild(_2b);
+var _2d=div.innerHTML;
+div.removeChild(_2b);
+if(_2d!=this._rendered){
+this._rendered=_2d;
+if(this._dijit){
+this._dijit.destroyRecursive();
+}
+this._dijit=dojo.parser.instantiate([_2b])[0];
+}
+}
+var _2e=this._dijit.domNode;
+if(this._events){
+this._events._object=this._dijit;
+this._events.render(_28,_29);
+}
+if(this._attach){
+this._attach._object=this._dijit;
+this._attach.render(_28,_29);
+}
+return _29.concat(_2e);
+},unrender:function(_2f,_30){
+return _30.remove(this._dijit.domNode);
+},clone:function(){
+return new this.constructor(this._node,this._parsed);
+}});
+dojo.mixin(_2,{widgetsInTemplate:true,dojoAttachPoint:function(_31,_32){
+return new _2.AttachNode(_32.contents.slice(16).split(/\s*,\s*/));
+},dojoAttachEvent:function(_33,_34){
+return new _2.EventNode(_34.contents.slice(16));
+},dojoType:function(_35,_36){
+if(_2.widgetsInTemplate){
+var _37=_35.swallowNode();
+var _38=false;
+if(_36.contents.slice(-7)==" parsed"){
+_38=true;
+_37.setAttribute("dojoType",_36.contents.slice(0,-7));
+}
+return new _2.DojoTypeNode(_37,_38);
+}
+return dd._noOpNode;
+},on:function(_39,_3a){
+var _3b=_3a.contents.split();
+return new _2.EventNode(_3b[0]+":"+_3b.slice(1).join(" "));
+}});
+dd.register.tags("dojox.dtl.contrib",{"dijit":["attr:dojoType","attr:dojoAttachPoint",["attr:attach","dojoAttachPoint"],"attr:dojoAttachEvent",[/(attr:)?on(click|key(up))/i,"on"]]});
+})();
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/contrib/dijit.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/contrib/dom.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/contrib/dom.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/contrib/dom.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/contrib/dom.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,131 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.dtl.contrib.dom"]){
+dojo._hasResource["dojox.dtl.contrib.dom"]=true;
+dojo.provide("dojox.dtl.contrib.dom");
+dojo.require("dojox.dtl.dom");
+(function(){
+var dd=dojox.dtl;
+var _2=dd.contrib.dom;
+var _3={render:function(){
+return this.contents;
+}};
+_2.StyleNode=dojo.extend(function(_4){
+this.contents={};
+this._current={};
+this._styles=_4;
+for(var _5 in _4){
+if(_4[_5].indexOf("{{")!=-1){
+var _6=new dd.Template(_4[_5]);
+}else{
+var _6=dojo.delegate(_3);
+_6.contents=_4[_5];
+}
+this.contents[_5]=_6;
+}
+},{render:function(_7,_8){
+for(var _9 in this.contents){
+var _a=this.contents[_9].render(_7);
+if(this._current[_9]!=_a){
+dojo.style(_8.getParent(),_9,this._current[_9]=_a);
+}
+}
+return _8;
+},unrender:function(_b,_c){
+this._current={};
+return _c;
+},clone:function(_d){
+return new this.constructor(this._styles);
+}});
+_2.BufferNode=dojo.extend(function(_e,_f){
+this.nodelist=_e;
+this.options=_f;
+},{_swap:function(_10,_11){
+if(!this.swapped&&this.parent.parentNode){
+if(_10=="node"){
+if((_11.nodeType==3&&!this.options.text)||(_11.nodeType==1&&!this.options.node)){
+return;
+}
+}else{
+if(_10=="class"){
+if(_10!="class"){
+return;
+}
+}
+}
+this.onAddNode&&dojo.disconnect(this.onAddNode);
+this.onRemoveNode&&dojo.disconnect(this.onRemoveNode);
+this.onChangeAttribute&&dojo.disconnect(this.onChangeAttribute);
+this.onChangeData&&dojo.disconnect(this.onChangeData);
+this.swapped=this.parent.cloneNode(true);
+this.parent.parentNode.replaceChild(this.swapped,this.parent);
+}
+},render:function(_12,_13){
+this.parent=_13.getParent();
+if(this.options.node){
+this.onAddNode=dojo.connect(_13,"onAddNode",dojo.hitch(this,"_swap","node"));
+this.onRemoveNode=dojo.connect(_13,"onRemoveNode",dojo.hitch(this,"_swap","node"));
+}
+if(this.options.text){
+this.onChangeData=dojo.connect(_13,"onChangeData",dojo.hitch(this,"_swap","node"));
+}
+if(this.options["class"]){
+this.onChangeAttribute=dojo.connect(_13,"onChangeAttribute",dojo.hitch(this,"_swap","class"));
+}
+_13=this.nodelist.render(_12,_13);
+if(this.swapped){
+this.swapped.parentNode.replaceChild(this.parent,this.swapped);
+dojo.destroy(this.swapped);
+}else{
+this.onAddNode&&dojo.disconnect(this.onAddNode);
+this.onRemoveNode&&dojo.disconnect(this.onRemoveNode);
+this.onChangeAttribute&&dojo.disconnect(this.onChangeAttribute);
+this.onChangeData&&dojo.disconnect(this.onChangeData);
+}
+delete this.parent;
+delete this.swapped;
+return _13;
+},unrender:function(_14,_15){
+return this.nodelist.unrender(_14,_15);
+},clone:function(_16){
+return new this.constructor(this.nodelist.clone(_16),this.options);
+}});
+dojo.mixin(_2,{buffer:function(_17,_18){
+var _19=_18.contents.split().slice(1);
+var _1a={};
+var _1b=false;
+for(var i=_19.length;i--;){
+_1b=true;
+_1a[_19[i]]=true;
+}
+if(!_1b){
+_1a.node=true;
+}
+var _1d=_17.parse(["endbuffer"]);
+_17.next_token();
+return new _2.BufferNode(_1d,_1a);
+},html:function(_1e,_1f){
+dojo.deprecated("{% html someVariable %}","Use {{ someVariable|safe }} instead");
+return _1e.create_variable_node(_1f.contents.slice(5)+"|safe");
+},style_:function(_20,_21){
+var _22={};
+_21=_21.contents.replace(/^style\s+/,"");
+var _23=_21.split(/\s*;\s*/g);
+for(var i=0,_25;_25=_23[i];i++){
+var _26=_25.split(/\s*:\s*/g);
+var key=_26[0];
+var _28=dojo.trim(_26[1]);
+if(_28){
+_22[key]=_28;
+}
+}
+return new _2.StyleNode(_22);
+}});
+dd.register.tags("dojox.dtl.contrib",{"dom":["html","attr:style","buffer"]});
+})();
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/contrib/dom.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/contrib/html.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/contrib/html.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/contrib/html.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/contrib/html.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,13 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.dtl.contrib.html"]){
+dojo._hasResource["dojox.dtl.contrib.html"]=true;
+dojo.provide("dojox.dtl.contrib.html");
+dojo.require("dojox.dtl.contrib.dom");
+dojo.deprecated("dojox.dtl.html","All packages and classes in dojox.dtl that start with Html or html have been renamed to Dom or dom");
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/contrib/html.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/contrib/objects.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/contrib/objects.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/contrib/objects.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/contrib/objects.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,15 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.dtl.contrib.objects"]){
+dojo._hasResource["dojox.dtl.contrib.objects"]=true;
+dojo.provide("dojox.dtl.contrib.objects");
+dojo.mixin(dojox.dtl.contrib.objects,{key:function(_1,_2){
+return _1[_2];
+}});
+dojox.dtl.register.filters("dojox.dtl.contrib",{"objects":["key"]});
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/contrib/objects.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/dom.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/dom.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/dom.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/dom.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,866 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.dtl.dom"]){
+dojo._hasResource["dojox.dtl.dom"]=true;
+dojo.provide("dojox.dtl.dom");
+dojo.require("dojox.dtl._base");
+dojo.require("dojox.dtl.Context");
+(function(){
+var dd=dojox.dtl;
+dd.BOOLS={checked:1,disabled:1,readonly:1};
+dd.TOKEN_CHANGE=-11;
+dd.TOKEN_ATTR=-12;
+dd.TOKEN_CUSTOM=-13;
+dd.TOKEN_NODE=1;
+var _2=dd.text;
+var _3=dd.dom={_attributes:{},_uppers:{},_re4:/^function anonymous\(\)\s*{\s*(.*)\s*}$/,_reTrim:/(?:^[\n\s]*(\{%)?\s*|\s*(%\})?[\n\s]*$)/g,_reSplit:/\s*%\}[\n\s]*\{%\s*/g,getTemplate:function(_4){
+if(typeof this._commentable=="undefined"){
+this._commentable=false;
+var _5=document.createElement("div");
+_5.innerHTML="<!--Test comment handling, and long comments, using comments whenever possible.-->";
+if(_5.childNodes.length&&_5.childNodes[0].nodeType==8&&_5.childNodes[0].data=="comment"){
+this._commentable=true;
+}
+}
+if(!this._commentable){
+_4=_4.replace(/<!--({({|%).*?(%|})})-->/g,"$1");
+}
+if(dojo.isIE){
+_4=_4.replace(/\b(checked|disabled|readonly|style)="/g,"t$1=\"");
+}
+_4=_4.replace(/\bstyle="/g,"tstyle=\"");
+var _6;
+var _7=dojo.isWebKit;
+var _8=[[true,"select","option"],[_7,"tr","td|th"],[_7,"thead","tr","th"],[_7,"tbody","tr","td"],[_7,"table","tbody|thead|tr","tr","td"],];
+var _9=[];
+for(var i=0,_b;_b=_8[i];i++){
+if(!_b[0]){
+continue;
+}
+if(_4.indexOf("<"+_b[1])!=-1){
+var _c=new RegExp("<"+_b[1]+"(?:.|\n)*?>((?:.|\n)+?)</"+_b[1]+">","ig");
+tagLoop:
+while(_6=_c.exec(_4)){
+var _d=_b[2].split("|");
+var _e=[];
+for(var j=0,_10;_10=_d[j];j++){
+_e.push("<"+_10+"(?:.|\n)*?>(?:.|\n)*?</"+_10+">");
+}
+var _11=[];
+var _12=dojox.string.tokenize(_6[1],new RegExp("("+_e.join("|")+")","ig"),function(_13){
+var tag=/<(\w+)/.exec(_13)[1];
+if(!_11[tag]){
+_11[tag]=true;
+_11.push(tag);
+}
+return {data:_13};
+});
+if(_11.length){
+var tag=(_11.length==1)?_11[0]:_b[2].split("|")[0];
+var _16=[];
+for(var j=0,jl=_12.length;j<jl;j++){
+var _18=_12[j];
+if(dojo.isObject(_18)){
+_16.push(_18.data);
+}else{
+var _19=_18.replace(this._reTrim,"");
+if(!_19){
+continue;
+}
+_18=_19.split(this._reSplit);
+for(var k=0,kl=_18.length;k<kl;k++){
+var _1c="";
+for(var p=2,pl=_b.length;p<pl;p++){
+if(p==2){
+_1c+="<"+tag+" dtlinstruction=\"{% "+_18[k].replace("\"","\\\"")+" %}\">";
+}else{
+if(tag==_b[p]){
+continue;
+}else{
+_1c+="<"+_b[p]+">";
+}
+}
+}
+_1c+="DTL";
+for(var p=_b.length-1;p>1;p--){
+if(p==2){
+_1c+="</"+tag+">";
+}else{
+if(tag==_b[p]){
+continue;
+}else{
+_1c+="</"+_b[p]+">";
+}
+}
+}
+_16.push("ÿ"+_9.length);
+_9.push(_1c);
+}
+}
+}
+_4=_4.replace(_6[1],_16.join(""));
+}
+}
+}
+}
+for(var i=_9.length;i--;){
+_4=_4.replace("ÿ"+i,_9[i]);
+}
+var re=/\b([a-zA-Z_:][a-zA-Z0-9_\-\.:]*)=['"]/g;
+while(_6=re.exec(_4)){
+var _20=_6[1].toLowerCase();
+if(_20=="dtlinstruction"){
+continue;
+}
+if(_20!=_6[1]){
+this._uppers[_20]=_6[1];
+}
+this._attributes[_20]=true;
+}
+var _5=document.createElement("div");
+_5.innerHTML=_4;
+var _21={nodes:[]};
+while(_5.childNodes.length){
+_21.nodes.push(_5.removeChild(_5.childNodes[0]));
+}
+return _21;
+},tokenize:function(_22){
+var _23=[];
+for(var i=0,_25;_25=_22[i++];){
+if(_25.nodeType!=1){
+this.__tokenize(_25,_23);
+}else{
+this._tokenize(_25,_23);
+}
+}
+return _23;
+},_swallowed:[],_tokenize:function(_26,_27){
+var _28=false;
+var _29=this._swallowed;
+var i,j,tag,_2d;
+if(!_27.first){
+_28=_27.first=true;
+var _2e=dd.register.getAttributeTags();
+for(i=0;tag=_2e[i];i++){
+try{
+(tag[2])({swallowNode:function(){
+throw 1;
+}},new dd.Token(dd.TOKEN_ATTR,""));
+}
+catch(e){
+_29.push(tag);
+}
+}
+}
+for(i=0;tag=_29[i];i++){
+var _2f=_26.getAttribute(tag[0]);
+if(_2f){
+var _29=false;
+var _30=(tag[2])({swallowNode:function(){
+_29=true;
+return _26;
+}},new dd.Token(dd.TOKEN_ATTR,_2f));
+if(_29){
+if(_26.parentNode&&_26.parentNode.removeChild){
+_26.parentNode.removeChild(_26);
+}
+_27.push([dd.TOKEN_CUSTOM,_30]);
+return;
+}
+}
+}
+var _31=[];
+if(dojo.isIE&&_26.tagName=="SCRIPT"){
+_31.push({nodeType:3,data:_26.text});
+_26.text="";
+}else{
+for(i=0;_2d=_26.childNodes[i];i++){
+_31.push(_2d);
+}
+}
+_27.push([dd.TOKEN_NODE,_26]);
+var _32=false;
+if(_31.length){
+_27.push([dd.TOKEN_CHANGE,_26]);
+_32=true;
+}
+for(var key in this._attributes){
+var _34=false;
+var _35="";
+if(key=="class"){
+_35=_26.className||_35;
+}else{
+if(key=="for"){
+_35=_26.htmlFor||_35;
+}else{
+if(key=="value"&&_26.value==_26.innerHTML){
+continue;
+}else{
+if(_26.getAttribute){
+_35=_26.getAttribute(key,2)||_35;
+if(key=="href"||key=="src"){
+if(dojo.isIE){
+var _36=location.href.lastIndexOf(location.hash);
+var _37=location.href.substring(0,_36).split("/");
+_37.pop();
+_37=_37.join("/")+"/";
+if(_35.indexOf(_37)==0){
+_35=_35.replace(_37,"");
+}
+_35=decodeURIComponent(_35);
+}
+}else{
+if(key=="tstyle"){
+_34=key;
+key="style";
+}else{
+if(dd.BOOLS[key.slice(1)]&&dojo.trim(_35)){
+key=key.slice(1);
+}else{
+if(this._uppers[key]&&dojo.trim(_35)){
+_34=this._uppers[key];
+}
+}
+}
+}
+}
+}
+}
+}
+if(_34){
+_26.setAttribute(_34,"");
+_26.removeAttribute(_34);
+}
+if(typeof _35=="function"){
+_35=_35.toString().replace(this._re4,"$1");
+}
+if(!_32){
+_27.push([dd.TOKEN_CHANGE,_26]);
+_32=true;
+}
+_27.push([dd.TOKEN_ATTR,_26,key,_35]);
+}
+for(i=0,_2d;_2d=_31[i];i++){
+if(_2d.nodeType==1){
+var _38=_2d.getAttribute("dtlinstruction");
+if(_38){
+_2d.parentNode.removeChild(_2d);
+_2d={nodeType:8,data:_38};
+}
+}
+this.__tokenize(_2d,_27);
+}
+if(!_28&&_26.parentNode&&_26.parentNode.tagName){
+if(_32){
+_27.push([dd.TOKEN_CHANGE,_26,true]);
+}
+_27.push([dd.TOKEN_CHANGE,_26.parentNode]);
+_26.parentNode.removeChild(_26);
+}else{
+_27.push([dd.TOKEN_CHANGE,_26,true,true]);
+}
+},__tokenize:function(_39,_3a){
+var _3b=_39.data;
+switch(_39.nodeType){
+case 1:
+this._tokenize(_39,_3a);
+return;
+case 3:
+if(_3b.match(/[^\s\n]/)&&(_3b.indexOf("{{")!=-1||_3b.indexOf("{%")!=-1)){
+var _3c=_2.tokenize(_3b);
+for(var j=0,_3e;_3e=_3c[j];j++){
+if(typeof _3e=="string"){
+_3a.push([dd.TOKEN_TEXT,_3e]);
+}else{
+_3a.push(_3e);
+}
+}
+}else{
+_3a.push([_39.nodeType,_39]);
+}
+if(_39.parentNode){
+_39.parentNode.removeChild(_39);
+}
+return;
+case 8:
+if(_3b.indexOf("{%")==0){
+var _3e=dojo.trim(_3b.slice(2,-2));
+if(_3e.substr(0,5)=="load "){
+var _3f=dojo.trim(_3e).split(/\s+/g);
+for(var i=1,_41;_41=_3f[i];i++){
+dojo["require"](_41);
+}
+}
+_3a.push([dd.TOKEN_BLOCK,_3e]);
+}
+if(_3b.indexOf("{{")==0){
+_3a.push([dd.TOKEN_VAR,dojo.trim(_3b.slice(2,-2))]);
+}
+if(_39.parentNode){
+_39.parentNode.removeChild(_39);
+}
+return;
+}
+}};
+dd.DomTemplate=dojo.extend(function(obj){
+if(!obj.nodes){
+var _43=dojo.byId(obj);
+if(_43&&_43.nodeType==1){
+dojo.forEach(["class","src","href","name","value"],function(_44){
+_3._attributes[_44]=true;
+});
+obj={nodes:[_43]};
+}else{
+if(typeof obj=="object"){
+obj=_2.getTemplateString(obj);
+}
+obj=_3.getTemplate(obj);
+}
+}
+var _45=_3.tokenize(obj.nodes);
+if(dd.tests){
+this.tokens=_45.slice(0);
+}
+var _46=new dd._DomParser(_45);
+this.nodelist=_46.parse();
+},{_count:0,_re:/\bdojo:([a-zA-Z0-9_]+)\b/g,setClass:function(str){
+this.getRootNode().className=str;
+},getRootNode:function(){
+return this.buffer.rootNode;
+},getBuffer:function(){
+return new dd.DomBuffer();
+},render:function(_48,_49){
+_49=this.buffer=_49||this.getBuffer();
+this.rootNode=null;
+var _4a=this.nodelist.render(_48||new dd.Context({}),_49);
+for(var i=0,_4c;_4c=_49._cache[i];i++){
+if(_4c._cache){
+_4c._cache.length=0;
+}
+}
+return _4a;
+},unrender:function(_4d,_4e){
+return this.nodelist.unrender(_4d,_4e);
+}});
+dd.DomBuffer=dojo.extend(function(_4f){
+this._parent=_4f;
+this._cache=[];
+},{concat:function(_50){
+var _51=this._parent;
+if(_51&&_50.parentNode&&_50.parentNode===_51&&!_51._dirty){
+return this;
+}
+if(_50.nodeType==1&&!this.rootNode){
+this.rootNode=_50||true;
+return this;
+}
+if(!_51){
+if(_50.nodeType==3&&dojo.trim(_50.data)){
+throw new Error("Text should not exist outside of the root node in template");
+}
+return this;
+}
+if(this._closed){
+if(_50.nodeType==3&&!dojo.trim(_50.data)){
+return this;
+}else{
+throw new Error("Content should not exist outside of the root node in template");
+}
+}
+if(_51._dirty){
+if(_50._drawn&&_50.parentNode==_51){
+var _52=_51._cache;
+if(_52){
+for(var i=0,_54;_54=_52[i];i++){
+this.onAddNode&&this.onAddNode(_54);
+_51.insertBefore(_54,_50);
+this.onAddNodeComplete&&this.onAddNodeComplete(_54);
+}
+_52.length=0;
+}
+}
+_51._dirty=false;
+}
+if(!_51._cache){
+_51._cache=[];
+this._cache.push(_51);
+}
+_51._dirty=true;
+_51._cache.push(_50);
+return this;
+},remove:function(obj){
+if(typeof obj=="string"){
+if(this._parent){
+this._parent.removeAttribute(obj);
+}
+}else{
+if(obj.nodeType==1&&!this.getRootNode()&&!this._removed){
+this._removed=true;
+return this;
+}
+if(obj.parentNode){
+this.onRemoveNode&&this.onRemoveNode(obj);
+if(obj.parentNode){
+obj.parentNode.removeChild(obj);
+}
+}
+}
+return this;
+},setAttribute:function(key,_57){
+var old=dojo.attr(this._parent,key);
+if(this.onChangeAttribute&&old!=_57){
+this.onChangeAttribute(this._parent,key,old,_57);
+}
+if(key=="style"){
+
+this._parent.style.cssText=_57;
+}else{
+dojo.attr(this._parent,key,_57);
+
+}
+return this;
+},addEvent:function(_59,_5a,fn,_5c){
+if(!_59.getThis()){
+throw new Error("You must use Context.setObject(instance)");
+}
+this.onAddEvent&&this.onAddEvent(this.getParent(),_5a,fn);
+var _5d=fn;
+if(dojo.isArray(_5c)){
+_5d=function(e){
+this[fn].apply(this,[e].concat(_5c));
+};
+}
+return dojo.connect(this.getParent(),_5a,_59.getThis(),_5d);
+},setParent:function(_5f,up,_61){
+if(!this._parent){
+this._parent=this._first=_5f;
+}
+if(up&&_61&&_5f===this._first){
+this._closed=true;
+}
+if(up){
+var _62=this._parent;
+var _63="";
+var ie=dojo.isIE&&_62.tagName=="SCRIPT";
+if(ie){
+_62.text="";
+}
+if(_62._dirty){
+var _65=_62._cache;
+var _66=(_62.tagName=="SELECT"&&!_62.options.length);
+for(var i=0,_68;_68=_65[i];i++){
+if(_68!==_62){
+this.onAddNode&&this.onAddNode(_68);
+if(ie){
+_63+=_68.data;
+}else{
+_62.appendChild(_68);
+if(_66&&_68.defaultSelected&&i){
+_66=i;
+}
+}
+this.onAddNodeComplete&&this.onAddNodeComplete(_68);
+}
+}
+if(_66){
+_62.options.selectedIndex=(typeof _66=="number")?_66:0;
+}
+_65.length=0;
+_62._dirty=false;
+}
+if(ie){
+_62.text=_63;
+}
+}
+this._parent=_5f;
+this.onSetParent&&this.onSetParent(_5f,up,_61);
+return this;
+},getParent:function(){
+return this._parent;
+},getRootNode:function(){
+return this.rootNode;
+}});
+dd._DomNode=dojo.extend(function(_69){
+this.contents=_69;
+},{render:function(_6a,_6b){
+this._rendered=true;
+return _6b.concat(this.contents);
+},unrender:function(_6c,_6d){
+if(!this._rendered){
+return _6d;
+}
+this._rendered=false;
+return _6d.remove(this.contents);
+},clone:function(_6e){
+return new this.constructor(this.contents);
+}});
+dd._DomNodeList=dojo.extend(function(_6f){
+this.contents=_6f||[];
+},{push:function(_70){
+this.contents.push(_70);
+},unshift:function(_71){
+this.contents.unshift(_71);
+},render:function(_72,_73,_74){
+_73=_73||dd.DomTemplate.prototype.getBuffer();
+if(_74){
+var _75=_73.getParent();
+}
+for(var i=0;i<this.contents.length;i++){
+_73=this.contents[i].render(_72,_73);
+if(!_73){
+throw new Error("Template node render functions must return their buffer");
+}
+}
+if(_75){
+_73.setParent(_75);
+}
+return _73;
+},dummyRender:function(_77,_78,_79){
+var div=document.createElement("div");
+var _7b=_78.getParent();
+var old=_7b._clone;
+_7b._clone=div;
+var _7d=this.clone(_78,div);
+if(old){
+_7b._clone=old;
+}else{
+_7b._clone=null;
+}
+_78=dd.DomTemplate.prototype.getBuffer();
+_7d.unshift(new dd.ChangeNode(div));
+_7d.unshift(new dd._DomNode(div));
+_7d.push(new dd.ChangeNode(div,true));
+_7d.render(_77,_78);
+if(_79){
+return _78.getRootNode();
+}
+var _7e=div.innerHTML;
+return (dojo.isIE)?_7e.replace(/\s*_(dirty|clone)="[^"]*"/g,""):_7e;
+},unrender:function(_7f,_80,_81){
+if(_81){
+var _82=_80.getParent();
+}
+for(var i=0;i<this.contents.length;i++){
+_80=this.contents[i].unrender(_7f,_80);
+if(!_80){
+throw new Error("Template node render functions must return their buffer");
+}
+}
+if(_82){
+_80.setParent(_82);
+}
+return _80;
+},clone:function(_84){
+var _85=_84.getParent();
+var _86=this.contents;
+var _87=new dd._DomNodeList();
+var _88=[];
+for(var i=0;i<_86.length;i++){
+var _8a=_86[i].clone(_84);
+if(_8a instanceof dd.ChangeNode||_8a instanceof dd._DomNode){
+var _8b=_8a.contents._clone;
+if(_8b){
+_8a.contents=_8b;
+}else{
+if(_85!=_8a.contents&&_8a instanceof dd._DomNode){
+var _8c=_8a.contents;
+_8a.contents=_8a.contents.cloneNode(false);
+_84.onClone&&_84.onClone(_8c,_8a.contents);
+_88.push(_8c);
+_8c._clone=_8a.contents;
+}
+}
+}
+_87.push(_8a);
+}
+for(var i=0,_8a;_8a=_88[i];i++){
+_8a._clone=null;
+}
+return _87;
+},rtrim:function(){
+while(1){
+var i=this.contents.length-1;
+if(this.contents[i] instanceof dd._DomTextNode&&this.contents[i].isEmpty()){
+this.contents.pop();
+}else{
+break;
+}
+}
+return this;
+}});
+dd._DomVarNode=dojo.extend(function(str){
+this.contents=new dd._Filter(str);
+},{render:function(_8f,_90){
+var str=this.contents.resolve(_8f);
+var _92="text";
+if(str){
+if(str.render&&str.getRootNode){
+_92="injection";
+}else{
+if(str.safe){
+if(str.nodeType){
+_92="node";
+}else{
+if(str.toString){
+str=str.toString();
+_92="html";
+}
+}
+}
+}
+}
+if(this._type&&_92!=this._type){
+this.unrender(_8f,_90);
+}
+this._type=_92;
+switch(_92){
+case "text":
+this._rendered=true;
+this._txt=this._txt||document.createTextNode(str);
+if(this._txt.data!=str){
+var old=this._txt.data;
+this._txt.data=str;
+_90.onChangeData&&_90.onChangeData(this._txt,old,this._txt.data);
+}
+return _90.concat(this._txt);
+case "injection":
+var _94=str.getRootNode();
+if(this._rendered&&_94!=this._root){
+_90=this.unrender(_8f,_90);
+}
+this._root=_94;
+var _95=this._injected=new dd._DomNodeList();
+_95.push(new dd.ChangeNode(_90.getParent()));
+_95.push(new dd._DomNode(_94));
+_95.push(str);
+_95.push(new dd.ChangeNode(_90.getParent()));
+this._rendered=true;
+return _95.render(_8f,_90);
+case "node":
+this._rendered=true;
+if(this._node&&this._node!=str&&this._node.parentNode&&this._node.parentNode===_90.getParent()){
+this._node.parentNode.removeChild(this._node);
+}
+this._node=str;
+return _90.concat(str);
+case "html":
+if(this._rendered&&this._src!=str){
+_90=this.unrender(_8f,_90);
+}
+this._src=str;
+if(!this._rendered){
+this._rendered=true;
+this._html=this._html||[];
+var div=(this._div=this._div||document.createElement("div"));
+div.innerHTML=str;
+var _97=div.childNodes;
+while(_97.length){
+var _98=div.removeChild(_97[0]);
+this._html.push(_98);
+_90=_90.concat(_98);
+}
+}
+return _90;
+default:
+return _90;
+}
+},unrender:function(_99,_9a){
+if(!this._rendered){
+return _9a;
+}
+this._rendered=false;
+switch(this._type){
+case "text":
+return _9a.remove(this._txt);
+case "injection":
+return this._injection.unrender(_99,_9a);
+case "node":
+if(this._node.parentNode===_9a.getParent()){
+return _9a.remove(this._node);
+}
+return _9a;
+case "html":
+for(var i=0,l=this._html.length;i<l;i++){
+_9a=_9a.remove(this._html[i]);
+}
+return _9a;
+default:
+return _9a;
+}
+},clone:function(){
+return new this.constructor(this.contents.getExpression());
+}});
+dd.ChangeNode=dojo.extend(function(_9d,up,_9f){
+this.contents=_9d;
+this.up=up;
+this.root=_9f;
+},{render:function(_a0,_a1){
+return _a1.setParent(this.contents,this.up,this.root);
+},unrender:function(_a2,_a3){
+if(!_a3.getParent()){
+return _a3;
+}
+return _a3.setParent(this.contents);
+},clone:function(){
+return new this.constructor(this.contents,this.up,this.root);
+}});
+dd.AttributeNode=dojo.extend(function(key,_a5){
+this.key=key;
+this.value=_a5;
+this.contents=_a5;
+if(this._pool[_a5]){
+this.nodelist=this._pool[_a5];
+}else{
+if(!(this.nodelist=dd.quickFilter(_a5))){
+this.nodelist=(new dd.Template(_a5,true)).nodelist;
+}
+this._pool[_a5]=this.nodelist;
+}
+this.contents="";
+},{_pool:{},render:function(_a6,_a7){
+var key=this.key;
+var _a9=this.nodelist.dummyRender(_a6);
+if(dd.BOOLS[key]){
+_a9=!(_a9=="false"||_a9=="undefined"||!_a9);
+}
+if(_a9!==this.contents){
+this.contents=_a9;
+return _a7.setAttribute(key,_a9);
+}
+return _a7;
+},unrender:function(_aa,_ab){
+this.contents="";
+return _ab.remove(this.key);
+},clone:function(_ac){
+return new this.constructor(this.key,this.value);
+}});
+dd._DomTextNode=dojo.extend(function(str){
+this.contents=document.createTextNode(str);
+this.upcoming=str;
+},{set:function(_ae){
+this.upcoming=_ae;
+return this;
+},render:function(_af,_b0){
+if(this.contents.data!=this.upcoming){
+var old=this.contents.data;
+this.contents.data=this.upcoming;
+_b0.onChangeData&&_b0.onChangeData(this.contents,old,this.upcoming);
+}
+return _b0.concat(this.contents);
+},unrender:function(_b2,_b3){
+return _b3.remove(this.contents);
+},isEmpty:function(){
+return !dojo.trim(this.contents.data);
+},clone:function(){
+return new this.constructor(this.contents.data);
+}});
+dd._DomParser=dojo.extend(function(_b4){
+this.contents=_b4;
+},{i:0,parse:function(_b5){
+var _b6={};
+var _b7=this.contents;
+if(!_b5){
+_b5=[];
+}
+for(var i=0;i<_b5.length;i++){
+_b6[_b5[i]]=true;
+}
+var _b9=new dd._DomNodeList();
+while(this.i<_b7.length){
+var _ba=_b7[this.i++];
+var _bb=_ba[0];
+var _bc=_ba[1];
+if(_bb==dd.TOKEN_CUSTOM){
+_b9.push(_bc);
+}else{
+if(_bb==dd.TOKEN_CHANGE){
+var _bd=new dd.ChangeNode(_bc,_ba[2],_ba[3]);
+_bc[_bd.attr]=_bd;
+_b9.push(_bd);
+}else{
+if(_bb==dd.TOKEN_ATTR){
+var fn=_2.getTag("attr:"+_ba[2],true);
+if(fn&&_ba[3]){
+if(_ba[3].indexOf("{%")!=-1||_ba[3].indexOf("{{")!=-1){
+_bc.setAttribute(_ba[2],"");
+}
+_b9.push(fn(null,new dd.Token(_bb,_ba[2]+" "+_ba[3])));
+}else{
+if(dojo.isString(_ba[3])){
+if(_ba[2]=="style"||_ba[3].indexOf("{%")!=-1||_ba[3].indexOf("{{")!=-1){
+_b9.push(new dd.AttributeNode(_ba[2],_ba[3]));
+}else{
+if(dojo.trim(_ba[3])){
+try{
+dojo.attr(_bc,_ba[2],_ba[3]);
+}
+catch(e){
+}
+}
+}
+}
+}
+}else{
+if(_bb==dd.TOKEN_NODE){
+var fn=_2.getTag("node:"+_bc.tagName.toLowerCase(),true);
+if(fn){
+_b9.push(fn(null,new dd.Token(_bb,_bc),_bc.tagName.toLowerCase()));
+}
+_b9.push(new dd._DomNode(_bc));
+}else{
+if(_bb==dd.TOKEN_VAR){
+_b9.push(new dd._DomVarNode(_bc));
+}else{
+if(_bb==dd.TOKEN_TEXT){
+_b9.push(new dd._DomTextNode(_bc.data||_bc));
+}else{
+if(_bb==dd.TOKEN_BLOCK){
+if(_b6[_bc]){
+--this.i;
+return _b9;
+}
+var cmd=_bc.split(/\s+/g);
+if(cmd.length){
+cmd=cmd[0];
+var fn=_2.getTag(cmd);
+if(typeof fn!="function"){
+throw new Error("Function not found for "+cmd);
+}
+var tpl=fn(this,new dd.Token(_bb,_bc));
+if(tpl){
+_b9.push(tpl);
+}
+}
+}
+}
+}
+}
+}
+}
+}
+}
+if(_b5.length){
+throw new Error("Could not find closing tag(s): "+_b5.toString());
+}
+return _b9;
+},next_token:function(){
+var _c1=this.contents[this.i++];
+return new dd.Token(_c1[0],_c1[1]);
+},delete_first_token:function(){
+this.i++;
+},skip_past:function(_c2){
+return dd._Parser.prototype.skip_past.call(this,_c2);
+},create_variable_node:function(_c3){
+return new dd._DomVarNode(_c3);
+},create_text_node:function(_c4){
+return new dd._DomTextNode(_c4||"");
+},getTemplate:function(loc){
+return new dd.DomTemplate(_3.getTemplate(loc));
+}});
+})();
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/dom.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/ext-dojo/NodeList.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/ext-dojo/NodeList.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/ext-dojo/NodeList.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/ext-dojo/NodeList.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,29 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.dtl.ext-dojo.NodeList"]){
+dojo._hasResource["dojox.dtl.ext-dojo.NodeList"]=true;
+dojo.provide("dojox.dtl.ext-dojo.NodeList");
+dojo.require("dojox.dtl._base");
+dojo.extend(dojo.NodeList,{dtl:function(_1,_2){
+var d=dojox.dtl;
+var _4=this;
+var _5=function(_6,_7){
+var _8=_6.render(new d._Context(_7));
+_4.forEach(function(_9){
+_9.innerHTML=_8;
+});
+};
+d.text._resolveTemplateArg(_1).addCallback(function(_a){
+_1=new d.Template(_a);
+d.text._resolveContextArg(_2).addCallback(function(_b){
+_5(_1,_b);
+});
+});
+return this;
+}});
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/ext-dojo/NodeList.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/filter/dates.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/filter/dates.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/filter/dates.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/filter/dates.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,59 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.dtl.filter.dates"]){
+dojo._hasResource["dojox.dtl.filter.dates"]=true;
+dojo.provide("dojox.dtl.filter.dates");
+dojo.require("dojox.dtl.utils.date");
+(function(){
+var _1=dojox.dtl.filter.dates;
+dojo.mixin(_1,{_toDate:function(_2){
+if(_2 instanceof Date){
+return _2;
+}
+_2=new Date(_2);
+if(_2.getTime()==new Date(0).getTime()){
+return "";
+}
+return _2;
+},date:function(_3,_4){
+_3=_1._toDate(_3);
+if(!_3){
+return "";
+}
+_4=_4||"N j, Y";
+return dojox.dtl.utils.date.format(_3,_4);
+},time:function(_5,_6){
+_5=_1._toDate(_5);
+if(!_5){
+return "";
+}
+_6=_6||"P";
+return dojox.dtl.utils.date.format(_5,_6);
+},timesince:function(_7,_8){
+_7=_1._toDate(_7);
+if(!_7){
+return "";
+}
+var _9=dojox.dtl.utils.date.timesince;
+if(_8){
+return _9(_8,_7);
+}
+return _9(_7);
+},timeuntil:function(_a,_b){
+_a=_1._toDate(_a);
+if(!_a){
+return "";
+}
+var _c=dojox.dtl.utils.date.timesince;
+if(_b){
+return _c(_b,_a);
+}
+return _c(new Date(),_a);
+}});
+})();
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/filter/dates.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/filter/htmlstrings.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/filter/htmlstrings.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/filter/htmlstrings.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/filter/htmlstrings.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,37 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.dtl.filter.htmlstrings"]){
+dojo._hasResource["dojox.dtl.filter.htmlstrings"]=true;
+dojo.provide("dojox.dtl.filter.htmlstrings");
+dojo.require("dojox.dtl._base");
+dojo.mixin(dojox.dtl.filter.htmlstrings,{_linebreaksrn:/(\r\n|\n\r)/g,_linebreaksn:/\n{2,}/g,_linebreakss:/(^\s+|\s+$)/g,_linebreaksbr:/\n/g,_removetagsfind:/[a-z0-9]+/g,_striptags:/<[^>]*?>/g,linebreaks:function(_1){
+var _2=[];
+var dh=dojox.dtl.filter.htmlstrings;
+_1=_1.replace(dh._linebreaksrn,"\n");
+var _4=_1.split(dh._linebreaksn);
+for(var i=0;i<_4.length;i++){
+var _6=_4[i].replace(dh._linebreakss,"").replace(dh._linebreaksbr,"<br />");
+_2.push("<p>"+_6+"</p>");
+}
+return _2.join("\n\n");
+},linebreaksbr:function(_7){
+var dh=dojox.dtl.filter.htmlstrings;
+return _7.replace(dh._linebreaksrn,"\n").replace(dh._linebreaksbr,"<br />");
+},removetags:function(_9,_a){
+var dh=dojox.dtl.filter.htmlstrings;
+var _c=[];
+var _d;
+while(_d=dh._removetagsfind.exec(_a)){
+_c.push(_d[0]);
+}
+_c="("+_c.join("|")+")";
+return _9.replace(new RegExp("</?s*"+_c+"s*[^>]*>","gi"),"");
+},striptags:function(_e){
+return _e.replace(dojox.dtl.filter.htmlstrings._striptags,"");
+}});
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/filter/htmlstrings.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/filter/integers.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/filter/integers.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/filter/integers.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/filter/integers.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,28 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.dtl.filter.integers"]){
+dojo._hasResource["dojox.dtl.filter.integers"]=true;
+dojo.provide("dojox.dtl.filter.integers");
+dojo.mixin(dojox.dtl.filter.integers,{add:function(_1,_2){
+_1=parseInt(_1,10);
+_2=parseInt(_2,10);
+return isNaN(_2)?_1:_1+_2;
+},get_digit:function(_3,_4){
+_3=parseInt(_3,10);
+_4=parseInt(_4,10)-1;
+if(_4>=0){
+_3+="";
+if(_4<_3.length){
+_3=parseInt(_3.charAt(_4),10);
+}else{
+_3=0;
+}
+}
+return (isNaN(_3)?0:_3);
+}});
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/filter/integers.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/filter/lists.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/filter/lists.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/filter/lists.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/filter/lists.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,95 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.dtl.filter.lists"]){
+dojo._hasResource["dojox.dtl.filter.lists"]=true;
+dojo.provide("dojox.dtl.filter.lists");
+dojo.require("dojox.dtl._base");
+dojo.mixin(dojox.dtl.filter.lists,{_dictsort:function(a,b){
+if(a[0]==b[0]){
+return 0;
+}
+return (a[0]<b[0])?-1:1;
+},dictsort:function(_3,_4){
+if(!_4){
+return _3;
+}
+var i,_6,_7=[];
+if(!dojo.isArray(_3)){
+var _8=_3,_3=[];
+for(var _9 in _8){
+_3.push(_8[_9]);
+}
+}
+for(i=0;i<_3.length;i++){
+_7.push([new dojox.dtl._Filter("var."+_4).resolve(new dojox.dtl._Context({"var":_3[i]})),_3[i]]);
+}
+_7.sort(dojox.dtl.filter.lists._dictsort);
+var _a=[];
+for(i=0;_6=_7[i];i++){
+_a.push(_6[1]);
+}
+return _a;
+},dictsortreversed:function(_b,_c){
+if(!_c){
+return _b;
+}
+var _d=dojox.dtl.filter.lists.dictsort(_b,_c);
+return _d.reverse();
+},first:function(_e){
+return (_e.length)?_e[0]:"";
+},join:function(_f,arg){
+return _f.join(arg||",");
+},length:function(_11){
+return (isNaN(_11.length))?(_11+"").length:_11.length;
+},length_is:function(_12,arg){
+return _12.length==parseInt(arg);
+},random:function(_14){
+return _14[Math.floor(Math.random()*_14.length)];
+},slice:function(_15,arg){
+arg=arg||"";
+var _17=arg.split(":");
+var _18=[];
+for(var i=0;i<_17.length;i++){
+if(!_17[i].length){
+_18.push(null);
+}else{
+_18.push(parseInt(_17[i]));
+}
+}
+if(_18[0]===null){
+_18[0]=0;
+}
+if(_18[0]<0){
+_18[0]=_15.length+_18[0];
+}
+if(_18.length<2||_18[1]===null){
+_18[1]=_15.length;
+}
+if(_18[1]<0){
+_18[1]=_15.length+_18[1];
+}
+return _15.slice(_18[0],_18[1]);
+},_unordered_list:function(_1a,_1b){
+var ddl=dojox.dtl.filter.lists;
+var i,_1e="";
+for(i=0;i<_1b;i++){
+_1e+="\t";
+}
+if(_1a[1]&&_1a[1].length){
+var _1f=[];
+for(i=0;i<_1a[1].length;i++){
+_1f.push(ddl._unordered_list(_1a[1][i],_1b+1));
+}
+return _1e+"<li>"+_1a[0]+"\n"+_1e+"<ul>\n"+_1f.join("\n")+"\n"+_1e+"</ul>\n"+_1e+"</li>";
+}else{
+return _1e+"<li>"+_1a[0]+"</li>";
+}
+},unordered_list:function(_20){
+return dojox.dtl.filter.lists._unordered_list(_20,1);
+}});
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/filter/lists.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/filter/logic.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/filter/logic.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/filter/logic.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/filter/logic.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,33 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.dtl.filter.logic"]){
+dojo._hasResource["dojox.dtl.filter.logic"]=true;
+dojo.provide("dojox.dtl.filter.logic");
+dojo.mixin(dojox.dtl.filter.logic,{default_:function(_1,_2){
+return _1||_2||"";
+},default_if_none:function(_3,_4){
+return (_3===null)?_4||"":_3||"";
+},divisibleby:function(_5,_6){
+return (parseInt(_5,10)%parseInt(_6,10))===0;
+},_yesno:/\s*,\s*/g,yesno:function(_7,_8){
+if(!_8){
+_8="yes,no,maybe";
+}
+var _9=_8.split(dojox.dtl.filter.logic._yesno);
+if(_9.length<2){
+return _7;
+}
+if(_7){
+return _9[0];
+}
+if((!_7&&_7!==null)||_9.length<3){
+return _9[1];
+}
+return _9[2];
+}});
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/filter/logic.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/filter/misc.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/filter/misc.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/filter/misc.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/filter/misc.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,52 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.dtl.filter.misc"]){
+dojo._hasResource["dojox.dtl.filter.misc"]=true;
+dojo.provide("dojox.dtl.filter.misc");
+dojo.mixin(dojox.dtl.filter.misc,{filesizeformat:function(_1){
+_1=parseFloat(_1);
+if(_1<1024){
+return (_1==1)?_1+" byte":_1+" bytes";
+}else{
+if(_1<1024*1024){
+return (_1/1024).toFixed(1)+" KB";
+}else{
+if(_1<1024*1024*1024){
+return (_1/1024/1024).toFixed(1)+" MB";
+}
+}
+}
+return (_1/1024/1024/1024).toFixed(1)+" GB";
+},pluralize:function(_2,_3){
+_3=_3||"s";
+if(_3.indexOf(",")==-1){
+_3=","+_3;
+}
+var _4=_3.split(",");
+if(_4.length>2){
+return "";
+}
+var _5=_4[0];
+var _6=_4[1];
+if(parseInt(_2,10)!=1){
+return _6;
+}
+return _5;
+},_phone2numeric:{a:2,b:2,c:2,d:3,e:3,f:3,g:4,h:4,i:4,j:5,k:5,l:5,m:6,n:6,o:6,p:7,r:7,s:7,t:8,u:8,v:8,w:9,x:9,y:9},phone2numeric:function(_7){
+var dm=dojox.dtl.filter.misc;
+_7=_7+"";
+var _9="";
+for(var i=0;i<_7.length;i++){
+var _b=_7.charAt(i).toLowerCase();
+(dm._phone2numeric[_b])?_9+=dm._phone2numeric[_b]:_9+=_7.charAt(i);
+}
+return _9;
+},pprint:function(_c){
+return dojo.toJson(_c);
+}});
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/dtl/filter/misc.js
------------------------------------------------------------------------------
    svn:eol-style = native