IDEMPIERE-2969:update to use zk8-osgi library

remove work-around of non-osgi
This commit is contained in:
hieplq 2015-12-12 16:15:05 +07:00
parent 74fa25193b
commit ccd94ecce1
9 changed files with 1 additions and 1975 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,654 +0,0 @@
/* util.js
Purpose:
Description:
History:
Tue Sep 30 09:02:06 2008, Created by tomyeh
Copyright (C) 2008 Potix Corporation. All Rights Reserved.
This program is distributed under LGPL Version 2.1 in the hope that
it will be useful, but WITHOUT ANY WARRANTY.
*/
(function () {
var _decs = {lt: '<', gt: '>', amp: '&', quot: '"'},
_encs = {};
for (var v in _decs)
_encs[_decs[v]] = v;
function _pathname(url) {
var j = url.indexOf('//');
if (j > 0) {
j = url.indexOf('/', j + 2);
if (j > 0) return url.substring(j);
}
}
function _frames(ary, w) {
//Note: the access of frames is allowed for any window (even if it connects other website)
ary.push(w);
for (var fs = w.frames, j = 0, l = fs.length; j < l; ++j)
_frames(ary, fs[j]);
}
/* Returns the onSize target of the given widget.
* The following code is dirty since it checks _hflexsz (which is implementation)
* FUTRE: consider to have zk.Widget.beforeSize to clean up _hflexsz and
* this method considers only if _hflex is min
*/
function _onSizeTarget(wgt) {
var r1 = wgt, p1 = r1,
j1 = -1;
for (; p1 && p1._hflex == 'min'; p1 = p1.parent) {
delete p1._hflexsz;
r1 = p1;
++j1;
if (p1.ignoreFlexSize_('w')) //p1 will not affect its parent's flex size
break;
}
var r2 = wgt, p2 = r2,
j2 = -1;
for (; p2 && p2._vflex == 'min'; p2 = p2.parent) {
delete p2._vflexsz;
r2 = p2;
++j2;
if (p2.ignoreFlexSize_('h')) //p2 will not affect its parent's flex size
break;
}
return j1 > 0 || j2 > 0 ? j1 > j2 ? r1 : r2: wgt;
}
/** @class zUtl
* @import zk.Widget
* @import zk.xml.Utl
* The basic utilties.
* <p>For more utilities, refer to {@link Utl}.
*/
zUtl = { //static methods
//Character
/**
* Returns whether the character is according to its opts.
* @param char cc the character
* @param Map opts the options.
<table border="1" cellspacing="0" width="100%">
<caption> Allowed Options
</caption>
<tr>
<th> Name
</th><th> Allowed Values
</th><th> Description
</th></tr>
<tr>
<td> digit
</td><td> true, false
</td><td> Specifies the character is digit only.
</td></tr>
<tr>
<td> upper
</td><td> true, false
</td><td> Specifies the character is upper case only.
</td></tr>
<tr>
<td> lower
</td><td> true, false
</td><td> Specifies the character is lower case only.
</td></tr>
<tr>
<td> whitespace
</td><td> true, false
</td><td> Specifies the character is whitespace only.
</td></tr>
<tr>
<td> opts[cc]
</td><td> true, false
</td><td> Specifies the character is allowed only.
</td></tr>
</table>
* @return boolean
*/
isChar: function (cc, opts) {
return (opts.digit && cc >= '0' && cc <= '9')
|| (opts.upper && cc >= 'A' && cc <= 'Z')
|| (opts.lower && cc >= 'a' && cc <= 'z')
|| (opts.whitespace && (cc == ' ' || cc == '\t' || cc == '\n' || cc == '\r'))
|| opts[cc];
},
//HTML/XML
/** Parses the specifie text into a map.
* For example
*<pre><code>
zUtl.parseMap("a=b,c=d");
zUtl.parseMap("a='b c',c=de", ',', "'\"");
</code></pre>
* @param String text the text to parse
* @param String separator the separator. If omitted, <code>','</code>
* is assumed
* @param String quote the quote to handle. Ignored if omitted.
* @return Map the map
*/
parseMap: function (text, separator, quote) {
var map = {};
if (text) {
var ps = text.split(separator || ',');
if (quote) {
var tmp = [],
re = new RegExp(quote, 'g'),
key = '', t, pair;
while((t = ps.shift()) !== undefined) {
if ((pair = (key += t).match(re)) && pair.length != 1) {
if (key)
tmp.push(key);
key = '';
} else
key += separator;
}
ps = tmp;
}
for (var len = ps.length; len--;) {
var key = ps[len].trim(),
index = key.indexOf('=');
if (index != -1)
map[key.substring(0, index)] = key.substring(index + 1, key.length).trim();
}
}
return map;
},
/** Encodes the string to a valid XML string.
* Refer to {@link Utl} for more XML utilities.
* @param String txt the text to encode
* @param Map opts [optional] the options. Allowd value:
* <ul>
* <li>pre - whether to replace whitespace with &amp;nbsp;</li>
* <li>multiline - whether to replace linefeed with &lt;br/&gt;</li>
* <li>maxlength - the maximal allowed length of the text</li>
* </ul>
* @return String the encoded text.
*/
encodeXML: function (txt, opts) {
txt = txt != null ? String(txt):'';
var tl = txt.length,
pre = opts && opts.pre,
multiline = pre || (opts && opts.multiline),
maxlength = opts ? opts.maxlength : 0;
if (!multiline && maxlength && tl > maxlength) {
var j = maxlength;
while (j > 0 && txt.charAt(j - 1) == ' ')
--j;
opts.maxlength = 0; //no limit
return zUtl.encodeXML(txt.substring(0, j) + '...', opts);
}
var out = [], k = 0, enc;
if (multiline || pre)
for (var j = 0; j < tl; ++j) {
var cc = txt.charAt(j);
if (enc = _encs[cc]) {
out.push(txt.substring(k, j), '&', enc, ';');
k = j + 1;
} else if (multiline && cc == '\n') {
out.push(txt.substring(k, j), '<br/>\n');
k = j + 1;
} else if (pre && (cc == ' ' || cc == '\t')) {
out.push(txt.substring(k, j), '&nbsp;');
if (cc == '\t')
out.push('&nbsp;&nbsp;&nbsp;');
k = j + 1;
}
}
else
for (var j = 0; j < tl; ++j)
if (enc = _encs[txt.charAt(j)]) {
out.push(txt.substring(k, j), '&', enc, ';');
k = j + 1;
}
if (!k) return txt;
if (k < tl)
out.push(txt.substring(k));
return out.join('');
},
/** Decodes the XML string into a normal string.
* For example, &amp;lt; is convert to &lt;
* @param String txt the text to decode
* @return String the decoded string
*/
decodeXML: function (txt) {
var out = '';
if (!txt) return out;
var k = 0, tl = txt.length;
for (var j = 0; j < tl; ++j) {
var cc = txt.charAt(j);
if (cc == '&') {
var l = txt.indexOf(';', j + 1);
if (l >= 0) {
var dec = txt.charAt(j + 1) == '#' ?
String.fromCharCode(txt.charAt(j + 2).toLowerCase() == 'x' ?
parseInt(txt.substring(j + 3, l), 16):
parseInt(txt.substring(j + 2, l), 10)):
_decs[txt.substring(j + 1, l)];
if (dec) {
out += txt.substring(k, j) + dec;
k = (j = l) + 1;
}
}
}
}
return !k ? txt:
k < tl ? out + txt.substring(k): out;
},
/** A shortcut of <code>' cellpadding="0" cellspacing="0" border="0"'</code>.
* @type String
*/
cellps0: ' cellpadding="0" cellspacing="0" border="0"',
/** A shortcut of <code>'&lt;img style="height:0;width:0"/&gt;'</code>.
* @type String
*/
img0: '<img style="height:0;width:0"/>',
/** A shortcut of <code>'&lt;i style="height:0;width:0"/&gt;'</code>.
* @type String
*/
i0: '<i style="height:0;width:0"/>',
/** Returns a long value representing the current time (unit: miliseconds).
* @return long
* @deprecated As of release 5.0.6, replaced with jq.now().
*/
now: jq.now,
/** Returns today.
* @param boolean full if true, returns the full time,
* else only returns year, month, and day.
* If omitted, false is assumed
* @return Date
*/
/** Returns today.
* @param String fmt the time format, such as HH:mm:ss.SSS
* If a time element such as seconds not specified in the format, it will
* be considered as 0. For example, if the format is "HH:mm", then
* the returned object will be today, this hour and this minute, but
* the second and milliseconds will be zero.
* @return Date
* @since 5.0.6
*/
today: function (fmt) {
var d = new Date(), hr = 0, min = 0, sec = 0, msec = 0;
if (typeof fmt == 'string') {
var fmt0 = fmt.toLowerCase();
if (fmt0.indexOf('h') >= 0 || fmt0.indexOf('k') >= 0) hr = d.getHours();
if (fmt.indexOf('m') >= 0) min = d.getMinutes();
if (fmt.indexOf('s') >= 0) sec = d.getSeconds();
if (fmt.indexOf('S') >= 0) msec = d.getMilliseconds();
} else if (fmt)
return d;
return new Date(d.getFullYear(), d.getMonth(), d.getDate(),
hr, min, sec, msec);
},
/** Returns if one is ancestor of the other.
* It assumes the object has either a method called <code>getParent</code>
* or a field called <code>parent</code>.
* A typical example is used to test the widgets ({@link Widget}).
*
* <p>Notice that, if you want to test DOM elements, please use
* {@link jq#isAncestor} instead.
*
* @param Object p the parent. This method return true if p is null
or p is the same as c
* @param Object c the child
* @return boolean
* @see jq#isAncestor
*/
isAncestor: function (p, c) {
if (!p) return true;
for (; c; c = c.getParent ? c.getParent(): c.parent)
if (p == c)
return true;
return false;
},
//progress//
/** Creates a message box to indicate something is being processed
* @param String id the ID of the DOM element being created
* @param String msg the message to shown
* @param boolean mask whether to show sem-transparent mask to prevent
* the user from accessing it.
* @param String icon the CSS class used to shown an icon in the box.
* Ignored if not specified.
* @see #destroyProgressbox
*/
progressbox: function (id, msg, mask, icon, _opts) {
if (mask && zk.Page.contained.length) {
for (var c = zk.Page.contained.length, e = zk.Page.contained[--c]; e; e = zk.Page.contained[--c]) {
if (!e._applyMask)
e._applyMask = new zk.eff.Mask({
id: e.uuid + '-mask',
message: msg,
anchor: e.$n()
});
}
return;
}
if (_opts && _opts.busy) {
zk.busy++;
jq.focusOut(); //Bug 2912533
}
var x = jq.innerX(), y = jq.innerY(),
style = ' style="left:'+x+'px;top:'+y+'px"',
idtxt = id + '-t',
idmsk = id + '-m',
html = '<div id="'+id+'"';
if (mask)
html += '><div id="' + idmsk + '" class="z-modal-mask"'+style+'></div';
html += '><div id="'+idtxt+'" class="z-loading"'+style
+'><div class="z-loading-indicator"><span class="z-loading-icon"></span> '
+msg+'</div></div>';
if (icon)
html += '<div class="' + icon + '"></div>';
jq(document.body).append(html + '</div>');
var $n = jq(id, zk),
n = $n[0],
$txt = jq(idtxt, zk),
txt = $txt[0],
st = txt.style;
if (mask) {
// old IE will get the auto value by default.
var zIndex = $txt.css('z-index');
if (zIndex == 'auto')
zIndex = 1;
n.z_mask = new zk.eff.FullMask({
mask: jq(idmsk, zk)[0],
zIndex: zIndex - 1
});
}
if (mask && $txt.length) { //center
st.left = jq.px((jq.innerWidth() - txt.offsetWidth) / 2 + x);
st.top = jq.px((jq.innerHeight() - txt.offsetHeight) / 2 + y);
} else {
var pos = zk.progPos;
if (pos) {
var left,
top,
width = jq.innerWidth(),
height = jq.innerHeight(),
wdgap = width - zk(txt).offsetWidth(),
hghgap = height - zk(txt).offsetHeight();
if (pos.indexOf('mouse') >= 0) {
var offset = zk.currentPointer;
left = offset[0] + 10;
top = offset[1] + 10;
} else {
if (pos.indexOf('left') >= 0) left = x;
else if (pos.indexOf('right') >= 0) left = x + wdgap -1;
else if (pos.indexOf('center') >= 0) left = x + wdgap / 2;
else left = 0;
if (pos.indexOf('top') >= 0) top = y;
else if (pos.indexOf('bottom') >= 0) top = y + hghgap - 1;
else if (pos.indexOf('center') >= 0) top = y + hghgap / 2;
else top = 0;
left = left < x ? x : left;
top = top < y ? y : top;
}
st.left = jq.px(left);
st.top = jq.px(top);
}
}
$n.zk.cleanVisibility();
},
/** Removes the message box created by {@link #progressbox}.
* @param String id the ID of the DOM element of the message box
*/
destroyProgressbox: function (id, _opts) {
if (_opts && _opts.busy && --zk.busy < 0)
zk.busy = 0;
var $n = jq(id, zk), n;
if ($n.length) {
if (n = $n[0].z_mask) n.destroy();
$n.remove();
}
for (var c = zk.Page.contained.length, e = zk.Page.contained[--c]; e; e = zk.Page.contained[--c])
if (e._applyMask) {
e._applyMask.destroy();
e._applyMask = null;
}
},
//HTTP//
/** Navigates to the specified URL.
* @param String url the URL to go to
* @param Map opts [optional] the options. Allowed values:
* <ul>
* <li>target - the name of the target browser window. The same browswer
* window is assumed if omitted. You can use any value allowed in
* the target attribute of the HTML FORM tag, such as _self, _blank,
* _parent and _top.</li>
* <li>overwrite - whether load a new page in the current browser window.
* If true, the new page replaces the previous page's position in the history list.</li>
* </ul>
*/
go: function (url, opts) {
opts = opts || {};
if (opts.target) {
open(url, opts.target);
} else if (opts.overwrite) {
location.replace(url ? url: location.href);
} else {
if (url) {
location.href = url;
var j = url.indexOf('#');
//bug 3363687, only if '#" exist, has to reload()
if(j < 0)
return;
var un = j >= 0 ? url.substring(0, j): url,
pn = _pathname(location.href);
j = pn.indexOf('#');
if (j >= 0) pn = pn.substring(0, j);
if (pn != un)
return;
//fall thru (bug 2882149)
}
location.reload();
}
},
/** Returns all descendant frames of the given window.
* <p>To retrieve all, invoke <code>zUtl.frames(top)</code>.
* Notice: w is included in the returned array.
* If you want to exclude it, invoke <code>zUtl.frames(w).$remove(w)</code>.
* @param Window w the browser window
* @return Array
* @since 5.0.4
*/
frames: function (w) {
var ary = [];
_frames(ary, w);
return ary;
},
/** Converts an integer array to a string (separated by comma).
* @param int[] ary the integer array to convert.
* If null, an empty string is returned.
* @return String
* @see #stringToInts
*/
intsToString: function (ary) {
if (!ary) return '';
var sb = [];
for (var j = 0, k = ary.length; j < k; ++j)
sb.push(ary[j]);
return sb.join();
},
/** Converts a string separated by comma to an array of integers.
* @see #intsToString
* @param String text the string to convert.
* If null, null is returned.
* @param int defaultValue the default value used if the value
* is not specified. For example, zUtl.stringToInts("1,,3", 2) returns [1, 2, 3].
* @return int[]
*/
stringToInts: function (text, defaultValue) {
if (text == null)
return null;
var list = [];
for (var j = 0;;) {
var k = text.indexOf(',', j),
s = (k >= 0 ? text.substring(j, k): text.substring(j)).trim();
if (s.length == 0) {
if (k < 0) break;
list.push(defaultValue);
} else
list.push(zk.parseInt(s));
if (k < 0) break;
j = k + 1;
}
return list;
},
/** Converts a map to a string
* @see #intsToString
* @param Map map the map to convert
* @param String assign the symbol for assignment. If omitted, '=' is assumed.
* @param String separator the symbol for separator. If omitted, ',' is assumed.
* @return String
*/
mapToString: function (map, assign, separator) {
assign = assign || '=';
separator = separator || ' ';
var out = [];
for (var v in map)
out.push(separator, v, assign, map[v]);
out[0] = '';
return out.join('');
},
/** Appends an attribute.
* Notice that the attribute won't be appended if val is empty or false.
* In other words, it is equivalent to<br/>
* <code>val ? ' ' + nm + '="' + val + '"': ""</code>.
* <p>If you want to generate the attribute no matter what val is, use
* {@link #appendAttr(String, Object, boolean)}.
* @param String nm the name of the attribute
* @param Object val the value of the attribute
* @since 5.0.3
*/
/** Appends an attribute.
* Notice that the attribute won't be appended.
* @param String nm the name of the attribute
* @param Object val the value of the attribute
* @param boolean force whether to append attribute no matter what value it is.
* If false (or omitted), it is the same as {@link #appendAttr(String, Object)}.
* @since 5.0.3
*/
appendAttr: function (nm, val, force) {
return val || force ? ' ' + nm + '="' + val + '"': '';
},
/** Fires beforeSize, onFitSize and onSize
* @param Widget wgt the widget which the zWatch event will be fired against.
* @param int bfsz the beforeSize mode:
* <ul>
* <li>0 (null/undefined/false): beforeSize sent normally.</li>
* <li>-1: beforeSize won't be sent.</li>
* <li>1: beforeSize will be sent with an additional cleanup option,
* which will clean up the cached minimal size (if flex=min).</li>
* </ul>
* @since 5.0.8
*/
fireSized: function (wgt, bfsz) {
if (zUtl.isImageLoading() || zk.clientinfo) {
var f = arguments.callee;
setTimeout(function () {
return f(wgt, bfsz);
}, 20);
return;
}
wgt = _onSizeTarget(wgt);
if (!(bfsz < 0)) //don't use >= (because bfsz might be undefined)
zWatch.fireDown('beforeSize', wgt, null, bfsz > 0);
zWatch.fireDown('onFitSize', wgt, {reverse: true});
zWatch.fireDown('onSize', wgt);
},
/** Fires onBeforeSize, onShow, onFitSize, and onSize
* @param Widget wgt the widget which the zWatch event will be fired against.
* @param int bfsz the beforeSize mode:
* <ul>
* <li>0 (null/undefined/false): beforeSize sent normally.</li>
* <li>-1: beforeSize won't be sent.</li>
* <li>1: beforeSize will be sent with an additional cleanup option,
* which will clean up the cached minimal size (if flex=min).</li>
* </ul>
* @since 5.0.8
*/
fireShown: function (wgt, bfsz) {
zWatch.fireDown('onShow', wgt);
zUtl.fireSized(wgt, bfsz);
},
/**
* Loads an image before ZK client engine to calculate the widget's layout.
* @param String url the loading image's localation
* @since 6.0.0
*/
loadImage: function (url) {
if (!_imgMap[url]) {
_imgMap[url] = true;
_loadImage(url);
}
},
/**
* Checks whether all the loading images are finish.
* @see #loadImage
* @since 6.0.0
*/
isImageLoading: function () {
for (var url in _imgObjectMap) {
var img = _imgObjectMap[url];
if (img.complete) {
try {
delete _imgMap[url];
} catch (err) {}
try {
delete _imgObjectMap[url];
} catch (err) {}
}
}
for (var n in _imgMap) {
return true;
}
return false;
}
};
var _imgMap = {};
var _imgObjectMap = {};
function _loadImage(url) {
var img = new Image(),
f = function () {
try {
delete _imgMap[url];
} catch (err) {}
try {
delete _imgObjectMap[url];
} catch (err) {}
};
_imgObjectMap[url]=img;
img.onerror = img.onload = img.onabort = f;
img.src = url;
}
})();

View File

@ -1,650 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Purpose:
Defines methods and actions for DSP
Description:
Histroy:
Mon Jun 20 20:57:56 2005, Created by tomyeh
Copyright (C) 2005 Potix Corporation. All Rights Reserved.
-->
<taglib>
<uri>http://www.zkoss.org/dsp/web/core</uri>
<description>
Core methods and tags for zweb in DSP
</description>
<!-- -->
<!-- Tags -->
<!-- -->
<tag>
<description>
Provides the context for mutually exclusive conditional execution.
</description>
<name>choose</name>
<tag-class>org.zkoss.web.servlet.dsp.action.Choose</tag-class>
</tag>
<tag>
<description>
Iterators thru a collection/array of items.
</description>
<name>forEach</name>
<tag-class>org.zkoss.web.servlet.dsp.action.ForEach</tag-class>
</tag>
<tag>
<description>
Tests whether an condition is true and render the child only
if the condition is true.
</description>
<name>if</name>
<tag-class>org.zkoss.web.servlet.dsp.action.If</tag-class>
</tag>
<tag>
<description>
Includes the specified page.
</description>
<name>include</name>
<tag-class>org.zkoss.web.servlet.dsp.action.Include</tag-class>
</tag>
<tag>
<description>
Represents the last alternative within a choose action.
</description>
<name>otherwise</name>
<tag-class>org.zkoss.web.servlet.dsp.action.Otherwise</tag-class>
</tag>
<tag>
<description>
Generates the specified value into a string.
</description>
<name>out</name>
<tag-class>org.zkoss.web.servlet.dsp.action.Out</tag-class>
</tag>
<tag>
<description>
Sets the page info, such as the content type.
</description>
<name>page</name>
<tag-class>org.zkoss.web.servlet.dsp.action.Page</tag-class>
</tag>
<tag>
<description>
Remove an attribute.
</description>
<name>remove</name>
<tag-class>org.zkoss.web.servlet.dsp.action.Remove</tag-class>
</tag>
<tag>
<description>
Sets an attribute.
</description>
<name>set</name>
<tag-class>org.zkoss.web.servlet.dsp.action.Set</tag-class>
</tag>
<tag>
<description>
Represents an alternative within a {@link Choose} action.
</description>
<name>when</name>
<tag-class>org.zkoss.web.servlet.dsp.action.When</tag-class>
</tag>
<!-- -->
<!-- Imports -->
<!-- -->
<import>
<import-name>ServletFns</import-name>
<import-class>org.zkoss.web.fn.ServletFns</import-class>
</import>
<import>
<import-name>Labels</import-name>
<import-class>org.zkoss.util.resource.Labels</import-class>
</import>
<!-- -->
<!-- Class Utilities -->
<!-- -->
<function>
<name>boolean</name>
<function-class>org.zkoss.xel.fn.CommonFns</function-class>
<function-signature>boolean toBoolean(java.lang.Object)</function-signature>
<description>
Converts the specified object to a boolean.
</description>
</function>
<function>
<name>number</name>
<function-class>org.zkoss.xel.fn.CommonFns</function-class>
<function-signature>java.lang.Number toNumber(java.lang.Object)</function-signature>
<description>
Converts the specified object to a number.
</description>
</function>
<function>
<name>int</name>
<function-class>org.zkoss.xel.fn.CommonFns</function-class>
<function-signature>int toInt(java.lang.Object)</function-signature>
<description>
Converts the specified object to an integer.
</description>
</function>
<function>
<name>decimal</name>
<function-class>org.zkoss.xel.fn.CommonFns</function-class>
<function-signature>java.math.BigDecimal toDecimal(java.lang.Object)</function-signature>
<description>
Converts the specified object to a (big) decimal.
</description>
</function>
<function>
<name>string</name>
<function-class>org.zkoss.xel.fn.CommonFns</function-class>
<function-signature>java.lang.String toString(java.lang.Object)</function-signature>
<description>
Converts the specified object to a string.
</description>
</function>
<function>
<name>char</name>
<function-class>org.zkoss.xel.fn.CommonFns</function-class>
<function-signature>char toChar(java.lang.Object)</function-signature>
<description>
Converts the specified object to a character.
</description>
</function>
<function>
<name>class</name>
<function-class>org.zkoss.lang.Classes</function-class>
<function-signature>java.lang.Class forNameByThread(java.lang.String)</function-signature>
<description>
Returns the class of the specified class name.
</description>
</function>
<function>
<name>isInstance</name>
<function-class>org.zkoss.xel.fn.CommonFns</function-class>
<function-signature>boolean isInstance(java.lang.Object, java.lang.Object)</function-signature>
<description>
Tests whether an object (the second argument) is an instance of a class (the first argument).
You could specify a class or the class name as the first argument.
</description>
</function>
<function>
<name>length</name>
<function-class>org.zkoss.xel.fn.CommonFns</function-class>
<function-signature>int length(java.lang.Object)</function-signature>
<description>
Returns the length of a string, array, collection or map.
</description>
</function>
<function>
<name>new</name>
<function-class>org.zkoss.xel.fn.CommonFns</function-class>
<function-signature>java.lang.Object new_(java.lang.Object)</function-signature>
<description>
Instantiates the specified class.
The parameter could be either a string (class name) or a Class instance.
</description>
</function>
<function>
<name>new1</name>
<function-class>org.zkoss.xel.fn.CommonFns</function-class>
<function-signature>java.lang.Object new_(java.lang.Object, java.lang.Object)</function-signature>
<description>
Instantiates the specified class and argument.
The first parameter could be either a string (class name) or a Class instance.
The second parameter is the argument passed to the constructor.
</description>
</function>
<function>
<name>new2</name>
<function-class>org.zkoss.xel.fn.CommonFns</function-class>
<function-signature>java.lang.Object new_(java.lang.Object, java.lang.Object, java.lang.Object)</function-signature>
<description>
Instantiates the specified class and two arguments.
The first parameter could be either a string (class name) or a Class instance.
The second parameter is the first argument passed to the constructor.
The third parameter is the second argument passed to the constructor.
</description>
</function>
<function>
<name>new3</name>
<function-class>org.zkoss.xel.fn.CommonFns</function-class>
<function-signature>java.lang.Object new_(java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object)</function-signature>
<description>
Instantiates the specified class and three arguments.
The first parameter could be either a string (class name) or a Class instance.
The second parameter is the first argument passed to the constructor.
The third parameter is the second argument passed to the constructor.
The fourth parameter is the third argument passed to the constructor.
</description>
</function>
<function>
<name>property</name><!-- since 3.5.1 -->
<function-class>org.zkoss.lang.Library</function-class>
<function-signature>java.lang.String getProperty(java.lang.String)</function-signature>
<description>
Returns the library property.
</description>
</function>
<!-- -->
<!-- String Utilities -->
<!-- -->
<function>
<name>eatQuot</name>
<function-class>org.zkoss.xel.fn.StringFns</function-class>
<function-signature>
java.lang.String eatQuot(java.lang.String)
</function-signature>
<description>
Eliminates single and double quotations to avoid JavaScript injection.
</description>
</function>
<function>
<name>cat</name>
<function-class>org.zkoss.xel.fn.StringFns</function-class>
<function-signature>
java.lang.String cat(java.lang.String, java.lang.String)
</function-signature>
<description>
Catenates two strings. Note: null is considered as empty.
</description>
</function>
<function>
<name>cat3</name>
<function-class>org.zkoss.xel.fn.StringFns</function-class>
<function-signature>
java.lang.String cat3(java.lang.String, java.lang.String, java.lang.String)
</function-signature>
<description>
Catenates three strings. Note: null is considered as empty.
</description>
</function>
<function>
<name>cat4</name>
<function-class>org.zkoss.xel.fn.StringFns</function-class>
<function-signature>
java.lang.String cat4(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
</function-signature>
<description>
Catenates four strings. Note: null is considered as empty.
</description>
</function>
<function>
<name>cat5</name>
<function-class>org.zkoss.xel.fn.StringFns</function-class>
<function-signature>
java.lang.String cat5(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
</function-signature>
<description>
Catenates five strings. Note: null is considered as empty.
</description>
</function>
<function>
<name>replace</name>
<function-class>org.zkoss.xel.fn.StringFns</function-class>
<function-signature>
java.lang.String replace(java.lang.String, java.lang.String, java.lang.String)
</function-signature>
<description>
Replaces all occurenances of the second argument with the third argument.
</description>
</function>
<function>
<name>toLowerCase</name>
<function-class>org.zkoss.xel.fn.StringFns</function-class>
<function-signature>
java.lang.String toLowerCase(java.lang.String)
</function-signature>
<description>
Converts to the lower case.
</description>
</function>
<function>
<name>toUpperCase</name>
<function-class>org.zkoss.xel.fn.StringFns</function-class>
<function-signature>
java.lang.String toUpperCase(java.lang.String)
</function-signature>
<description>
Converts to the upper case.
</description>
</function>
<function>
<name>trim</name>
<function-class>org.zkoss.xel.fn.StringFns</function-class>
<function-signature>
java.lang.String trim(java.lang.String)
</function-signature>
<description>
Trims the whitespaces.
</description>
</function>
<function>
<name>split</name>
<function-class>org.zkoss.xel.fn.StringFns</function-class>
<function-signature>
java.lang.String[] split(java.lang.String, java.lang.String)
</function-signature>
<description>
Splits a string into an array of strings based on the given separator.
</description>
</function>
<function>
<name>join</name>
<function-class>org.zkoss.xel.fn.StringFns</function-class>
<function-signature>
java.lang.String join(java.lang.Object[], java.lang.String)
</function-signature>
<description>
Joins an array of strings into a single string based on the given separator.
</description>
</function>
<function>
<name>startsWith</name>
<function-class>org.zkoss.xel.fn.StringFns</function-class>
<function-signature>
boolean startsWith(java.lang.String, java.lang.String)
</function-signature>
<description>
Returns whether a string starts with another.
</description>
</function>
<function>
<name>endsWith</name>
<function-class>org.zkoss.xel.fn.StringFns</function-class>
<function-signature>
boolean endsWith(java.lang.String, java.lang.String)
</function-signature>
<description>
Returns whether a string starts with another.
</description>
</function>
<function>
<name>substring</name>
<function-class>org.zkoss.xel.fn.StringFns</function-class>
<function-signature>
java.lang.String substring(java.lang.String, int from, int to)
</function-signature>
<description>
Returns the substring.
</description>
</function>
<function>
<name>indexOf</name>
<function-class>org.zkoss.xel.fn.CommonFns</function-class>
<function-signature>
int indexOf(java.lang.Object, java.lang.Object)
</function-signature>
<description>
Returns the index of the given element.
</description>
</function>
<function>
<name>lastIndexOf</name>
<function-class>org.zkoss.xel.fn.CommonFns</function-class>
<function-signature>
int lastIndexOf(java.lang.Object, java.lang.Object)
</function-signature>
<description>
Returns the index of the given element.
</description>
</function>
<function>
<name>l</name>
<function-class>org.zkoss.xel.fn.CommonFns</function-class>
<function-signature>java.lang.String getLabel(java.lang.String)</function-signature>
<description>
Returns the label of the specified key.
</description>
</function>
<function>
<name>l2</name>
<function-class>org.zkoss.xel.fn.CommonFns</function-class>
<function-signature>java.lang.String getLabel(java.lang.String, java.lang.Object[])</function-signature>
<description>
Returns the label of the specified key, and formats with the specified
argument.
</description>
</function>
<!-- -->
<!-- Date Utilities -->
<!-- -->
<function>
<name>formatDate</name>
<function-class>org.zkoss.xel.fn.CommonFns</function-class>
<function-signature>java.lang.String formatDate(java.util.Date, java.lang.String)</function-signature>
<description>
Returns the formatted time string.
</description>
</function>
<function>
<name>parseDate</name>
<function-class>org.zkoss.xel.fn.CommonFns</function-class>
<function-signature>java.util.Date parseDate(java.lang.String, java.lang.String)</function-signature>
<description>
Returns A Date parsed from the string.
</description>
</function>
<!-- -->
<!-- Number Utilities -->
<!-- -->
<function>
<name>formatNumber</name>
<function-class>org.zkoss.xel.fn.CommonFns</function-class>
<function-signature>java.lang.String formatNumber(java.lang.Object, java.lang.String)</function-signature>
<description>
Returns the formatted number string.
</description>
</function>
<function>
<name>parseNumber</name>
<function-class>org.zkoss.xel.fn.CommonFns</function-class>
<function-signature>java.lang.Number parseNumber(java.lang.String, java.lang.String)</function-signature>
<description>
Returns A Number parsed from the string.
</description>
</function>
<!-- -->
<!-- XML/HTML Utilities -->
<!-- -->
<function>
<name>attr</name>
<function-class>org.zkoss.xel.fn.XmlFns</function-class>
<function-signature>
java.lang.String attr(java.lang.String, java.lang.Object)
</function-signature>
<description>
Generates an attribute for HTML/XML, name="value".
If value is null or empty (if String), "" is generated.
</description>
</function>
<!-- -->
<!-- HTTP Utilities -->
<!-- -->
<function>
<name>encodeURL</name>
<function-class>org.zkoss.web.fn.ServletFns</function-class>
<function-signature>
java.lang.String encodeURL(java.lang.String)
</function-signature>
<description>
Encoding URL to prefix the context path and to provide session info,
if necessary
If URI contains "*", it is resolved to the current Locale and
the browser code.
</description>
</function>
<function>
<name>encodeURIComponent</name>
<function-class>org.zkoss.web.servlet.http.Encodes</function-class>
<function-signature>
java.lang.String encodeURIComponent(java.lang.String)
</function-signature>
<description>
Encoding a string to be used as a query name or value.
</description>
</function>
<function>
<name>encodeThemeURL</name>
<function-class>org.zkoss.web.fn.ServletFns</function-class>
<function-signature>
java.lang.String encodeThemeURL(java.lang.String)
</function-signature>
<description>
Encoding URL to theme specific prefix the context path and to provide
session info, if necessary
If URL contains "*", it is resolved to the current Locale and
the browser code.
</description>
</function>
<function>
<name>resolveThemeURL</name>
<function-class>org.zkoss.web.fn.ServletFns</function-class>
<function-signature>
java.lang.String resolveThemeURL(java.lang.String)
</function-signature>
<description>
Resolves a URL to point to resource served by the current theme.
</description>
</function>
<function>
<name>escapeXML</name>
<function-class>org.zkoss.xml.XMLs</function-class>
<function-signature>
java.lang.String escapeXML(java.lang.String)
</function-signature>
<description>
Encodes a string that special characters are quoted to be compatible
with HTML/XML.
</description>
</function>
<function>
<name>browser</name>
<function-class>org.zkoss.web.fn.ServletFns</function-class>
<function-signature>
boolean isBrowser(java.lang.String)
</function-signature>
<description><![CDATA[
Whether the current request is coming from the browser of the specified
type.
@param type the type of the browser.
The syntax: <code>&lt;browser-name&gt;[&lt;version-number&gt;];[-]</code>.<br/>
For example, ie9, ios and ie6-.
And, <code>ie9</code> means Internet Explorer 9 and later, while
<code>ie6-</code> means Internet Explorer 6 (not prior, nor later).
]]></description>
</function>
<function>
<name>isExplorer</name>
<function-class>org.zkoss.web.fn.ServletFns</function-class>
<function-signature>
boolean isExplorer()
</function-signature>
<description>
Whether the current request is coming from Internet Explorer.
</description>
</function>
<function>
<name>isExplorer7</name>
<function-class>org.zkoss.web.fn.ServletFns</function-class>
<function-signature>
boolean isExplorer7()
</function-signature>
<description>
Whether the current request is coming from Internet Explorer 7 or later.
</description>
</function>
<function>
<name>isGecko</name>
<function-class>org.zkoss.web.fn.ServletFns</function-class>
<function-signature>
boolean isGecko()
</function-signature>
<description>
Whether the current request is coming from a Gecko-based browser,
such as Mozilla, Firefox and Camino.
</description>
</function>
<function>
<name>isGecko3</name>
<function-class>org.zkoss.web.fn.ServletFns</function-class>
<function-signature>
boolean isGecko3()
</function-signature>
<description>
Whether the current request is coming from a Gecko 3-based browser,
such as Firefox 3.
</description>
</function>
<function>
<name>isSafari</name>
<function-class>org.zkoss.web.fn.ServletFns</function-class>
<function-signature>
boolean isSafari()
</function-signature>
<description>
Whether the current request is coming from Safari.
</description>
</function>
<function>
<name>isOpera</name>
<function-class>org.zkoss.web.fn.ServletFns</function-class>
<function-signature>
boolean isOpera()
</function-signature>
<description>
Whether the current request is coming from Opera.
</description>
</function>
<function>
<name>render</name>
<function-class>org.zkoss.web.fn.ServletFns</function-class>
<function-signature>
void render(org.zkoss.web.servlet.dsp.action.ActionContext)
</function-signature>
<description>
Renders a DSP fragment.
</description>
</function>
<function>
<name>getCurrentLocale</name>
<function-class>org.zkoss.util.Locales</function-class>
<function-signature>
java.util.Locale getCurrent()
</function-signature>
<description>
Returns the locale for the current request.
</description>
</function>
<function>
<name>testCurrentLocale</name>
<function-class>org.zkoss.util.Locales</function-class>
<function-signature>
boolean testCurrent(java.lang.String, java.lang.String)
</function-signature>
<description>
Returns whether the current locale belongs to the specified
language and/or country.
@param lang the language code, e.g., en and zh. Ignored if null.
@param country the country code, e.g., US. Ignored if null.
If empty, it means no country code at all.
</description>
</function>
</taglib>

View File

@ -1,37 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Purpose:
Defines methods and actions for DSP
Description:
Histroy:
Mon Jun 20 20:57:56 2005, Created by tomyeh
Copyright (C) 2005 Potix Corporation. All Rights Reserved.
-->
<taglib>
<uri>http://www.zkoss.org/dsp/web/html</uri>
<description>
Used to develop ZK components for XUL/HTML.
</description>
<!-- -->
<!-- Tags -->
<!-- -->
<tag>
<description>
Display a box that has a caption and a border enclosing other tags.
</description>
<name>box</name>
<tag-class>org.zkoss.web.servlet.dsp.action.html.Box</tag-class>
</tag>
<tag>
<description>
Generates the HTML's img tag.
</description>
<name>img</name>
<tag-class>org.zkoss.web.servlet.dsp.action.html.Img</tag-class>
</tag>
</taglib>

View File

@ -1,196 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Purpose:
Description:
Histroy:
Tue, Jul 10, 2012 9:32:48 AM, Created by jumperchen
Copyright (C) 2012 Potix Corporation. All Rights Reserved.
-->
<taglib>
<uri>http://www.zkoss.org/dsp/web/theme</uri>
<description>
Theme utility methods
</description>
<!-- -->
<!-- Tags -->
<!-- -->
<!--
<tag>
<description>
Provides the context for mutually exclusive conditional execution.
</description>
<name>choose</name>
<tag-class>org.zkoss.web.servlet.dsp.action.Choose</tag-class>
</tag>
-->
<!-- -->
<!-- Imports -->
<!-- -->
<import>
<import-name>ThemeFns</import-name>
<import-class>org.zkoss.web.fn.ThemeFns</import-class>
</import>
<!-- -->
<!-- Theme Utilities -->
<!-- -->
<function>
<name>gradient</name>
<function-class>org.zkoss.web.fn.ThemeFns</function-class>
<function-signature>
java.lang.String gradient(java.lang.String, java.lang.String)
</function-signature>
<description><![CDATA[
Generates a specific of browser CSS color gradient rules String.
@param type "ver", "hor", "diag-", "diag+", "rad"
@param colors the colors, which are separated by semicolon ";"
]]></description>
</function>
<function>
<name>gradValue</name>
<function-class>org.zkoss.web.fn.ThemeFns</function-class>
<function-signature>
java.lang.String gradValue(java.lang.String, java.lang.String)
</function-signature>
<description><![CDATA[
Generates a specific CSS color gradient value only
@param type "ver", "hor", "diag-", "diag+", "rad"
@param colors the colors, which are separated by semicolon ";"
]]></description>
</function>
<function>
<name>gradients</name>
<function-class>org.zkoss.web.fn.ThemeFns</function-class>
<function-signature>
java.lang.String gradients(java.lang.String, java.lang.String)
</function-signature>
<description><![CDATA[
Generates a set of cross-browser CSS color gradient rules String.
@param type "ver", "hor", "diag-", "diag+", "rad"
@param colors the colors, which are separated by semicolon ";"
]]></description>
</function>
<function>
<name>box</name>
<function-class>org.zkoss.web.fn.ThemeFns</function-class>
<function-signature>
java.lang.String box(java.lang.String, java.lang.String)
</function-signature>
<description><![CDATA[
Generates a specific browser CSS rule string for box model.
@param styleName
the value of the style name, like <code>box-orient</code>,
<code>box-pack</code>
@param styleValue
the value according to the style name, like
<code>horizontal</code>, <code>center</code>
@return a specific browser CSS rule string, like
<code>-moz-box-orient</code> for firefox and
<code>-webkit-box-orient</code> for safari and chrome
]]></description>
</function>
<function>
<name>box2</name>
<function-class>org.zkoss.web.fn.ThemeFns</function-class>
<function-signature>
java.lang.String box2(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
</function-signature>
<description><![CDATA[
Generates a specific browser CSS rule string for box model with two pair styles.
]]></description>
</function>
<function>
<name>box3</name>
<function-class>org.zkoss.web.fn.ThemeFns</function-class>
<function-signature>
java.lang.String box3(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
</function-signature>
<description><![CDATA[
Generates a specific browser CSS rule string for box model with three pair styles.
]]></description>
</function>
<function>
<name>boxShadow</name>
<function-class>org.zkoss.web.fn.ThemeFns</function-class>
<function-signature>
java.lang.String boxShadow(java.lang.String)
</function-signature>
<description><![CDATA[
Generates a specific browser CSS box-shadow.
@param style the value of the box-shadow
]]></description>
</function>
<function>
<name>borderRadius</name>
<function-class>org.zkoss.web.fn.ThemeFns</function-class>
<function-signature>
java.lang.String borderRadius(java.lang.String)
</function-signature>
<description><![CDATA[
Generates a specific browser CSS border-radius.
@param style the value of the border-radius
]]></description>
</function>
<function>
<name>applyCSS3</name>
<function-class>org.zkoss.web.fn.ThemeFns</function-class>
<function-signature>
java.lang.String applyCSS3(java.lang.String, java.lang.String)
</function-signature>
<description><![CDATA[
Generates a specific browser CSS rule String for the given style name and
value.
<p>
Note: the method is only applied with the browser prefix as the style
name, if the CSS3 style usage rule is different between browsers, please
use another method instead.
@param styleName
the value of the style name, like <code>box-sizing</code>,
<code>animation</code>
@param styleValue
the value according to the style name, like
<code>border-box</code>, <code>mymove 5s infinite</code>
@return a specific browser CSS rule string, like
<code>-moz-box-sizing</code> for firefox and
<code>-webkit-box-sizing</code> for safari and chrome
]]></description>
</function>
<function>
<name>transform</name>
<function-class>org.zkoss.web.fn.ThemeFns</function-class>
<function-signature>
java.lang.String transform(java.lang.String)
</function-signature>
<description><![CDATA[
Generates a specific browser CSS transform.
@param style the value of the transform
]]></description>
</function>
<function>
<name>loadProperties</name>
<function-class>org.zkoss.web.fn.ThemeFns</function-class>
<function-signature>
void loadProperties(java.lang.String path)
</function-signature>
<description><![CDATA[
Loads a specific theme properties and apply them into the request scope
]]></description>
</function>
<function>
<name>getCurrentTheme</name>
<function-class>org.zkoss.web.fn.ThemeFns</function-class>
<function-signature>
java.lang.String getCurrentTheme()
</function-signature>
<description><![CDATA[
Returns the current theme name
]]></description>
</function>
</taglib>

View File

@ -1,168 +0,0 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!--
Purpose:
Defines methods and actions for DSP
Description:
Histroy:
Mon Jun 20 20:57:56 2005, Created by tomyeh
Copyright (C) 2005 Potix Corporation. All Rights Reserved.
-->
<taglib>
<uri>http://www.zkoss.org/dsp/zk/core</uri>
<description>
Methods and actions of ZK utilities
</description>
<!-- -->
<!-- Imports -->
<!-- -->
<!-- -->
<!-- Functions -->
<!-- -->
<!-- ZUML Functions -->
<function>
<name>toAbsoluteURI</name>
<function-class>org.zkoss.zk.fn.ZkFns</function-class>
<function-signature>
java.lang.String toAbsoluteURI(java.lang.String, boolean)
</function-signature>
<description>
Converts the specified URI to abolute if necessary.
Note: it doesn't convert if this page is included by another page.
</description>
</function>
<function>
<name>getBuild</name>
<function-class>org.zkoss.zk.fn.ZkFns</function-class>
<function-signature>
java.lang.String getBuild()
</function-signature>
<description>
Returns the build identifier, such as 2007121316.
</description>
</function>
<function>
<name>getVersion</name>
<function-class>org.zkoss.zk.fn.ZkFns</function-class>
<function-signature>
java.lang.String getVersion()
</function-signature>
<description>
Returns the ZK version, such as "1.1.0" and "2.0.0".
</description>
</function>
<function>
<name>getEdition</name>
<function-class>org.zkoss.zk.fn.ZkFns</function-class>
<function-signature>
java.lang.String getEdition()
</function-signature>
<description>
Returns the edition, such as EE, PE and CE.
</description>
</function>
<function>
<name>isEditionValid</name>
<function-class>org.zkoss.zk.fn.ZkFns</function-class>
<function-signature>
boolean isEditionValid()
</function-signature>
<description>
Returns the edition whether valid or invalid.
</description>
</function>
<function>
<name>encodeWithZK</name>
<function-class>org.zkoss.zk.fn.ZkFns</function-class>
<function-signature>
java.lang.String encodeWithZK(java.lang.String)
</function-signature>
<description>
Returns the string encoded with ZK
</description>
</function>
<function>
<name>outDeviceStyleSheets</name>
<function-class>org.zkoss.zk.fn.DspFns</function-class>
<function-signature>
java.lang.String outDeviceStyleSheets(java.lang.String)
</function-signature>
<description>
Returns HTML tags to include all style sheets used by the specified device.
This method is designed to use with DSP pages.
@param deviceType the device type. If null, ajax is assumed.
</description>
</function>
<function>
<name>outDeviceCSSContent</name>
<function-class>org.zkoss.zk.fn.DspFns</function-class>
<function-signature>
java.lang.String outDeviceCSSContent(java.lang.String)
</function-signature>
<description>
Generates and returns the complete CSS content of all components in the
specified device.
This method is designed to use with DSP pages.
@param deviceType the device type. If null, ajax is assumed.
</description>
</function>
<function>
<name>outZkHtmlTags</name>
<function-class>org.zkoss.zk.fn.DspFns</function-class>
<function-signature>
java.lang.String outZkHtmlTags(java.lang.String)
</function-signature>
<description>
Generates and returns the ZK specific HTML tags for the HTML output.
If you want to generate HTML HEAD and BODY tags by yourself, you
can invoke this method in the HTML HEAD tag.
This method is designed to use with DSP pages.
@param deviceType the device type. If null, ajax is assumed.
</description>
</function>
<function>
<name>setCacheControl</name>
<function-class>org.zkoss.zk.fn.DspFns</function-class>
<function-signature>
void setCacheControl(java.lang.String, int)
</function-signature>
<description>
Sets the Cache-Control and Expires headers for the current request.
</description>
</function>
<function>
<name>setCSSCacheControl</name>
<function-class>org.zkoss.zk.fn.DspFns</function-class>
<function-signature>
void setCSSCacheControl()
</function-signature>
<description>
Sets the Cache-Control and Expires headers for the CSS file
from class Web resource for the current request.
</description>
</function>
<function>
<name>setCWRCacheControl</name>
<function-class>org.zkoss.zk.fn.DspFns</function-class>
<function-signature>
void setCWRCacheControl()
</function-signature>
<description>
Sets the Cache-Control and Expires headers for
class Web resource for the current request.
</description>
</function>
</taglib>

View File

@ -1,85 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Purpose:
Description:
Histroy:
Tue Oct 20 16:47:28 2009, Created by tomyeh
Copyright (C) 2009 Potix Corporation. All Rights Reserved.
-->
<taglib xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-jsptaglibrary_2_0.xsd"
version="2.0">
<tlib-version>1.1</tlib-version>
<jsp-version>2.0</jsp-version>
<short-name>core.jsp</short-name>
<uri>http://www.zkoss.org/tld/core.jsp</uri>
<description>
Methods for JSP pages
</description>
<function>
<name>outZkHtmlTags</name>
<function-class>org.zkoss.zk.fn.ZkFns</function-class>
<function-signature>
java.lang.String outZkHtmlTags(ServletContext,
HttpServletRequest, HttpServletResponse, String)
</function-signature>
<description>
Returns the desktop info to render a desktop.
It is required only if outPageAttrs might not be called
</description>
</function>
<function>
<name>outDeviceStyleSheets</name>
<function-class>org.zkoss.zk.fn.JspFns</function-class>
<function-signature>
java.lang.String outDeviceStyleSheets(ServletContext,
HttpServletRequest, HttpServletResponse, String)
</function-signature>
<description>
Returns HTML tags to include all style sheets used by the specified device.
Note: unlike outLangStyleSheets, it can be called without current execution.
</description>
</function>
<function>
<name>setCacheControl</name>
<function-class>org.zkoss.zk.fn.JspFns</function-class>
<function-signature>
void setCacheControl(HttpServletResponse, java.lang.String, int)
</function-signature>
<description>
Sets the Cache-Control and Expires headers for the current request.
</description>
</function>
<function>
<name>setCSSCacheControl</name>
<function-class>org.zkoss.zk.fn.JspFns</function-class>
<function-signature>
void setCSSCacheControl(HttpServletResponse)
</function-signature>
<description>
Sets the Cache-Control and Expires headers for the CSS file
from class Web resource for the current request.
</description>
</function>
<function>
<name>setCWRCacheControl</name>
<function-class>org.zkoss.zk.fn.JspFns</function-class>
<function-signature>
void setCWRCacheControl(HttpServletResponse)
</function-signature>
<description>
Sets the Cache-Control and Expires headers for
class Web resource for the current request.
</description>
</function>
</taglib>

View File

@ -1,179 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<display-name>ADempiere WebUI</display-name>
<!-- /// -->
<!-- DSP -->
<servlet>
<description>
<![CDATA[The servlet loads the DSP pages.]]>
</description>
<servlet-name>dspLoader</servlet-name>
<servlet-class>
org.zkoss.web.servlet.dsp.InterpreterServlet
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>dspLoader</servlet-name>
<url-pattern>*.dsp</url-pattern>
</servlet-mapping>
<!-- /// -->
<!-- //// -->
<!-- ZK -->
<listener>
<description>
Used to cleanup when a session is destroyed
</description>
<display-name>ZK Session Cleaner</display-name>
<listener-class>
org.zkoss.zk.ui.http.HttpSessionListener
</listener-class>
</listener>
<servlet>
<description>ZK loader for ZUML pages</description>
<servlet-name>zkLoader</servlet-name>
<servlet-class>
org.adempiere.webui.session.WebUIServlet
</servlet-class>
<!-- Must. Specifies URI of the update engine (DHtmlUpdateServlet).
It must be the same as <url-pattern> for the update engine.
-->
<init-param>
<param-name>update-uri</param-name>
<param-value>/zkau</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>zkLoader</servlet-name>
<url-pattern>*.zul</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>zkLoader</servlet-name>
<url-pattern>*.zhtml</url-pattern>
</servlet-mapping>
<servlet>
<description>The asynchronous update engine for ZK</description>
<servlet-name>auEngine</servlet-name>
<servlet-class>
org.zkoss.zk.au.http.DHtmlUpdateServlet
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>auEngine</servlet-name>
<url-pattern>/zkau/*</url-pattern>
</servlet-mapping>
<!-- //// -->
<servlet>
<description>servlet to provide timeline xml event feed</description>
<servlet-name>timelineFeed</servlet-name>
<servlet-class>
org.adempiere.webui.TimelineEventFeed
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>timelineFeed</servlet-name>
<url-pattern>/timeline</url-pattern>
</servlet-mapping>
<!-- /////////// -->
<!-- Miscellaneous -->
<session-config>
<session-timeout>120</session-timeout>
</session-config>
<!-- MIME mapping -->
<mime-mapping>
<extension>doc</extension>
<mime-type>application/vnd.ms-word</mime-type>
</mime-mapping>
<mime-mapping>
<extension>dsp</extension>
<mime-type>text/html</mime-type>
</mime-mapping>
<mime-mapping>
<extension>gif</extension>
<mime-type>image/gif</mime-type>
</mime-mapping>
<mime-mapping>
<extension>htm</extension>
<mime-type>text/html</mime-type>
</mime-mapping>
<mime-mapping>
<extension>html</extension>
<mime-type>text/html</mime-type>
</mime-mapping>
<mime-mapping>
<extension>jnlp</extension>
<mime-type>application/x-java-jnlp-file</mime-type>
</mime-mapping>
<mime-mapping>
<extension>jpeg</extension>
<mime-type>image/jpeg</mime-type>
</mime-mapping>
<mime-mapping>
<extension>jpg</extension>
<mime-type>image/jpeg</mime-type>
</mime-mapping>
<mime-mapping>
<extension>js</extension>
<mime-type>text/javascript</mime-type>
</mime-mapping>
<mime-mapping>
<extension>pdf</extension>
<mime-type>application/pdf</mime-type>
</mime-mapping>
<mime-mapping>
<extension>png</extension>
<mime-type>image/png</mime-type>
</mime-mapping>
<mime-mapping>
<extension>txt</extension>
<mime-type>text/plain</mime-type>
</mime-mapping>
<mime-mapping>
<extension>xls</extension>
<mime-type>application/vnd.ms-excel</mime-type>
</mime-mapping>
<mime-mapping>
<extension>xml</extension>
<mime-type>text/xml</mime-type>
</mime-mapping>
<mime-mapping>
<extension>xul</extension>
<mime-type>application/vnd.mozilla.xul-xml</mime-type>
</mime-mapping>
<mime-mapping>
<extension>zhtml</extension>
<mime-type>text/html</mime-type>
</mime-mapping>
<mime-mapping>
<extension>zip</extension>
<mime-type>application/x-zip</mime-type>
</mime-mapping>
<mime-mapping>
<extension>zul</extension>
<mime-type>text/html</mime-type>
</mime-mapping>
<welcome-file-list>
<welcome-file>index.zul</welcome-file>
</welcome-file-list>
<ejb-local-ref>
<ejb-ref-name>adempiere/Status</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local>org.compiere.interfaces.StatusLocal</local>
</ejb-local-ref>
<ejb-local-ref>
<ejb-ref-name>adempiere/Server</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local>org.compiere.interfaces.ServerLocal</local>
</ejb-local-ref>
</web-app>

View File

@ -24,7 +24,7 @@
<!-- false to use compress js which is much smaller. change to true if you need to debug --> <!-- false to use compress js which is much smaller. change to true if you need to debug -->
<client-config> <client-config>
<debug-js>false</debug-js> <debug-js>true</debug-js>
<processing-prompt-delay>500</processing-prompt-delay> <processing-prompt-delay>500</processing-prompt-delay>
</client-config> </client-config>
@ -97,10 +97,6 @@
<name>org.zkoss.zul.borderlayout.animation.disabed</name> <name>org.zkoss.zul.borderlayout.animation.disabed</name>
<value>true</value> <value>true</value>
</library-property> </library-property>
<library-property>
<name>org.zkoss.web.util.resource.dir</name>
<value>/WEB-INF/cwr</value>
</library-property>
<library-property> <library-property>
<name>org.zkoss.zul.grid.DataLoader.class</name> <name>org.zkoss.zul.grid.DataLoader.class</name>
<value>org.zkoss.zul.impl.CustomGridDataLoader</value> <value>org.zkoss.zul.impl.CustomGridDataLoader</value>