JBoss Rich Faces SVN: r5254 - trunk/framework/api/src/main/java/org/ajax4jsf/context.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-01-09 22:02:51 -0500 (Wed, 09 Jan 2008)
New Revision: 5254
Modified:
trunk/framework/api/src/main/java/org/ajax4jsf/context/AjaxContext.java
Log:
http://jira.jboss.com/jira/browse/RF-1627
Modified: trunk/framework/api/src/main/java/org/ajax4jsf/context/AjaxContext.java
===================================================================
--- trunk/framework/api/src/main/java/org/ajax4jsf/context/AjaxContext.java 2008-01-10 00:29:29 UTC (rev 5253)
+++ trunk/framework/api/src/main/java/org/ajax4jsf/context/AjaxContext.java 2008-01-10 03:02:51 UTC (rev 5254)
@@ -13,8 +13,6 @@
import javax.faces.context.FacesContext;
import javax.faces.el.VariableResolver;
-import org.ajax4jsf.Messages;
-
public abstract class AjaxContext {
/**
@@ -78,6 +76,7 @@
public static final String SCRIPTS_PARAMETER = "org.ajax4jsf.framework.HEADER_SCRIPTS";
public static final String STYLES_PARAMETER = "org.ajax4jsf.framework.HEADER_STYLES";
+ public static final String USER_STYLES_PARAMETER = "org.ajax4jsf.framework.HEADER_USER_STYLES";
public static final String RESPONSE_DATA_KEY = "_ajax:data";
private static final String SERVICE_RESOURCE = "META-INF/services/"
+ AjaxContext.class.getName();
17 years
JBoss Rich Faces SVN: r5253 - management/design/progressBar.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2008-01-09 19:29:29 -0500 (Wed, 09 Jan 2008)
New Revision: 5253
Modified:
management/design/progressBar/Func-Spec-ProgressBar.doc
Log:
RF-1689 -structure and language is checked
Modified: management/design/progressBar/Func-Spec-ProgressBar.doc
===================================================================
(Binary files differ)
17 years
JBoss Rich Faces SVN: r5252 - branches/3.1.x.
by richfaces-svn-commits@lists.jboss.org
Author: alexsmirnov
Date: 2008-01-09 16:38:38 -0500 (Wed, 09 Jan 2008)
New Revision: 5252
Modified:
branches/3.1.x/deployRelease.sh
Log:
Deploy samples project pom with release.
Modified: branches/3.1.x/deployRelease.sh
===================================================================
--- branches/3.1.x/deployRelease.sh 2008-01-09 21:37:01 UTC (rev 5251)
+++ branches/3.1.x/deployRelease.sh 2008-01-09 21:38:38 UTC (rev 5252)
@@ -14,5 +14,7 @@
mvn -s ~/.m2t/settings.xml -P local,release deploy
cd $PROJECT_DIR/extensions
mvn -s ~/.m2t/settings.xml -P local,release deploy
+cd $PROJECT_DIR/samples
+mvn -s ~/.m2t/settings.xml -P local,release deploy -N
cd $PROJECT_DIR/samples/richfaces-demo
mvn -s ~/.m2t/settings.xml -P local,release deploy
17 years
JBoss Rich Faces SVN: r5251 - in branches/3.1.x/samples: scrollableDataTableDemo/src/main/webapp and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: alexsmirnov
Date: 2008-01-09 16:37:01 -0500 (Wed, 09 Jan 2008)
New Revision: 5251
Added:
branches/3.1.x/samples/scrollableDataTableDemo/src/main/webapp/firebug/
branches/3.1.x/samples/scrollableDataTableDemo/src/main/webapp/firebug/errorIcon.png
branches/3.1.x/samples/scrollableDataTableDemo/src/main/webapp/firebug/firebug.css
branches/3.1.x/samples/scrollableDataTableDemo/src/main/webapp/firebug/firebug.html
branches/3.1.x/samples/scrollableDataTableDemo/src/main/webapp/firebug/firebug.js
branches/3.1.x/samples/scrollableDataTableDemo/src/main/webapp/firebug/firebugx.js
branches/3.1.x/samples/scrollableDataTableDemo/src/main/webapp/firebug/infoIcon.png
branches/3.1.x/samples/scrollableDataTableDemo/src/main/webapp/firebug/warningIcon.png
Modified:
branches/3.1.x/samples/richfaces-demo/src/main/webapp/WEB-INF/web.xml
branches/3.1.x/samples/scrollableDataTableDemo/src/main/webapp/pages/test.xhtml
branches/3.1.x/samples/scrollableDataTableDemo/src/main/webapp/pages/testScript.xhtml
Log:
Contiinue to profile scrollableGrid client library.
Modified: branches/3.1.x/samples/richfaces-demo/src/main/webapp/WEB-INF/web.xml
===================================================================
--- branches/3.1.x/samples/richfaces-demo/src/main/webapp/WEB-INF/web.xml 2008-01-09 20:47:32 UTC (rev 5250)
+++ branches/3.1.x/samples/richfaces-demo/src/main/webapp/WEB-INF/web.xml 2008-01-09 21:37:01 UTC (rev 5251)
@@ -54,7 +54,7 @@
<context-param>
<param-name>org.richfaces.LoadScriptStrategy</param-name>
<param-value>DEFAULT</param-value>
- </context-param-->
+ </context-param>
<filter>
<display-name>Ajax4jsf Filter</display-name>
Added: branches/3.1.x/samples/scrollableDataTableDemo/src/main/webapp/firebug/errorIcon.png
===================================================================
(Binary files differ)
Property changes on: branches/3.1.x/samples/scrollableDataTableDemo/src/main/webapp/firebug/errorIcon.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/3.1.x/samples/scrollableDataTableDemo/src/main/webapp/firebug/firebug.css
===================================================================
--- branches/3.1.x/samples/scrollableDataTableDemo/src/main/webapp/firebug/firebug.css (rev 0)
+++ branches/3.1.x/samples/scrollableDataTableDemo/src/main/webapp/firebug/firebug.css 2008-01-09 21:37:01 UTC (rev 5251)
@@ -0,0 +1,209 @@
+
+html, body {
+ margin: 0;
+ background: #FFFFFF;
+ font-family: Lucida Grande, Tahoma, sans-serif;
+ font-size: 11px;
+ overflow: hidden;
+}
+
+a {
+ text-decoration: none;
+}
+
+a:hover {
+ text-decoration: underline;
+}
+
+.toolbar {
+ height: 14px;
+ border-top: 1px solid ThreeDHighlight;
+ border-bottom: 1px solid ThreeDShadow;
+ padding: 2px 6px;
+ background: ThreeDFace;
+}
+
+.toolbarRight {
+ position: absolute;
+ top: 4px;
+ right: 6px;
+}
+
+#log {
+ overflow: auto;
+ position: absolute;
+ left: 0;
+ width: 100%;
+}
+
+#commandLine {
+ position: absolute;
+ bottom: 0;
+ left: 0;
+ width: 100%;
+ height: 18px;
+ border: none;
+ border-top: 1px solid ThreeDShadow;
+}
+
+/************************************************************************************************/
+
+.logRow {
+ position: relative;
+ border-bottom: 1px solid #D7D7D7;
+ padding: 2px 4px 1px 6px;
+ background-color: #FFFFFF;
+}
+
+.logRow-command {
+ font-family: Monaco, monospace;
+ color: blue;
+}
+
+.objectBox-null {
+ padding: 0 2px;
+ border: 1px solid #666666;
+ background-color: #888888;
+ color: #FFFFFF;
+}
+
+.objectBox-string {
+ font-family: Monaco, monospace;
+ color: red;
+ white-space: pre;
+}
+
+.objectBox-number {
+ color: #000088;
+}
+
+.objectBox-function {
+ font-family: Monaco, monospace;
+ color: DarkGreen;
+}
+
+.objectBox-object {
+ color: DarkGreen;
+ font-weight: bold;
+}
+
+/************************************************************************************************/
+
+.logRow-info,
+.logRow-error,
+.logRow-warning {
+ background: #FFFFFF no-repeat 2px 2px;
+ padding-left: 20px;
+ padding-bottom: 3px;
+}
+
+.logRow-info {
+ background-image: url(infoIcon.png);
+}
+
+.logRow-warning {
+ background-color: cyan;
+ background-image: url(warningIcon.png);
+}
+
+.logRow-error {
+ background-color: LightYellow;
+ background-image: url(errorIcon.png);
+}
+
+.errorMessage {
+ vertical-align: top;
+ color: #FF0000;
+}
+
+.objectBox-sourceLink {
+ position: absolute;
+ right: 4px;
+ top: 2px;
+ padding-left: 8px;
+ font-family: Lucida Grande, sans-serif;
+ font-weight: bold;
+ color: #0000FF;
+}
+
+/************************************************************************************************/
+
+.logRow-group {
+ background: #EEEEEE;
+ border-bottom: none;
+}
+
+.logGroup {
+ background: #EEEEEE;
+}
+
+.logGroupBox {
+ margin-left: 24px;
+ border-top: 1px solid #D7D7D7;
+ border-left: 1px solid #D7D7D7;
+}
+
+/************************************************************************************************/
+
+.selectorTag,
+.selectorId,
+.selectorClass {
+ font-family: Monaco, monospace;
+ font-weight: normal;
+}
+
+.selectorTag {
+ color: #0000FF;
+}
+
+.selectorId {
+ color: DarkBlue;
+}
+
+.selectorClass {
+ color: red;
+}
+
+/************************************************************************************************/
+
+.objectBox-element {
+ font-family: Monaco, monospace;
+ color: #000088;
+}
+
+.nodeChildren {
+ margin-left: 16px;
+}
+
+.nodeTag {
+ color: blue;
+}
+
+.nodeValue {
+ color: #FF0000;
+ font-weight: normal;
+}
+
+.nodeText,
+.nodeComment {
+ margin: 0 2px;
+ vertical-align: top;
+}
+
+.nodeText {
+ color: #333333;
+}
+
+.nodeComment {
+ color: DarkGreen;
+}
+
+/************************************************************************************************/
+
+.propertyNameCell {
+ vertical-align: top;
+}
+
+.propertyName {
+ font-weight: bold;
+}
Property changes on: branches/3.1.x/samples/scrollableDataTableDemo/src/main/webapp/firebug/firebug.css
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: branches/3.1.x/samples/scrollableDataTableDemo/src/main/webapp/firebug/firebug.html
===================================================================
--- branches/3.1.x/samples/scrollableDataTableDemo/src/main/webapp/firebug/firebug.html (rev 0)
+++ branches/3.1.x/samples/scrollableDataTableDemo/src/main/webapp/firebug/firebug.html 2008-01-09 21:37:01 UTC (rev 5251)
@@ -0,0 +1,23 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+
+<head>
+ <title>Firebug</title>
+ <link rel="stylesheet" type="text/css" href="firebug.css">
+</head>
+
+<body>
+ <div id="toolbar" class="toolbar">
+ <a href="#" onclick="parent.console.clear()">Clear</a>
+ <span class="toolbarRight">
+ <a href="#" onclick="parent.console.close()">Close</a>
+ </span>
+ </div>
+ <div id="log"></div>
+ <input type="text" id="commandLine">
+
+ <script>parent.onFirebugReady(document);</script>
+</body>
+</html>
Property changes on: branches/3.1.x/samples/scrollableDataTableDemo/src/main/webapp/firebug/firebug.html
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: branches/3.1.x/samples/scrollableDataTableDemo/src/main/webapp/firebug/firebug.js
===================================================================
--- branches/3.1.x/samples/scrollableDataTableDemo/src/main/webapp/firebug/firebug.js (rev 0)
+++ branches/3.1.x/samples/scrollableDataTableDemo/src/main/webapp/firebug/firebug.js 2008-01-09 21:37:01 UTC (rev 5251)
@@ -0,0 +1,672 @@
+
+if (!("console" in window) || !("firebug" in console)) {
+(function()
+{
+ window.console =
+ {
+ log: function()
+ {
+ logFormatted(arguments, "");
+ },
+
+ debug: function()
+ {
+ logFormatted(arguments, "debug");
+ },
+
+ info: function()
+ {
+ logFormatted(arguments, "info");
+ },
+
+ warn: function()
+ {
+ logFormatted(arguments, "warning");
+ },
+
+ error: function()
+ {
+ logFormatted(arguments, "error");
+ },
+
+ assert: function(truth, message)
+ {
+ if (!truth)
+ {
+ var args = [];
+ for (var i = 1; i < arguments.length; ++i)
+ args.push(arguments[i]);
+
+ logFormatted(args.length ? args : ["Assertion Failure"], "error");
+ throw message ? message : "Assertion Failure";
+ }
+ },
+
+ dir: function(object)
+ {
+ var html = [];
+
+ var pairs = [];
+ for (var name in object)
+ {
+ try
+ {
+ pairs.push([name, object[name]]);
+ }
+ catch (exc)
+ {
+ }
+ }
+
+ pairs.sort(function(a, b) { return a[0] < b[0] ? -1 : 1; });
+
+ html.push('<table>');
+ for (var i = 0; i < pairs.length; ++i)
+ {
+ var name = pairs[i][0], value = pairs[i][1];
+
+ html.push('<tr>',
+ '<td class="propertyNameCell"><span class="propertyName">',
+ escapeHTML(name), '</span></td>', '<td><span class="propertyValue">');
+ appendObject(value, html);
+ html.push('</span></td></tr>');
+ }
+ html.push('</table>');
+
+ logRow(html, "dir");
+ },
+
+ dirxml: function(node)
+ {
+ var html = [];
+
+ appendNode(node, html);
+ logRow(html, "dirxml");
+ },
+
+ group: function()
+ {
+ logRow(arguments, "group", pushGroup);
+ },
+
+ groupEnd: function()
+ {
+ logRow(arguments, "", popGroup);
+ },
+
+ time: function(name)
+ {
+ timeMap[name] = (new Date()).getTime();
+ },
+
+ timeEnd: function(name)
+ {
+ if (name in timeMap)
+ {
+ var delta = (new Date()).getTime() - timeMap[name];
+ logFormatted([name+ ":", delta+"ms"]);
+ delete timeMap[name];
+ }
+ },
+
+ count: function()
+ {
+ this.warn(["count() not supported."]);
+ },
+
+ trace: function()
+ {
+ this.warn(["trace() not supported."]);
+ },
+
+ profile: function()
+ {
+ this.warn(["profile() not supported."]);
+ },
+
+ profileEnd: function()
+ {
+ },
+
+ clear: function()
+ {
+ consoleBody.innerHTML = "";
+ },
+
+ open: function()
+ {
+ toggleConsole(true);
+ },
+
+ close: function()
+ {
+ if (frameVisible)
+ toggleConsole();
+ }
+ };
+
+ // ********************************************************************************************
+
+ var consoleFrame = null;
+ var consoleBody = null;
+ var commandLine = null;
+
+ var frameVisible = false;
+ var messageQueue = [];
+ var groupStack = [];
+ var timeMap = {};
+
+ var clPrefix = ">>> ";
+
+ var isFirefox = navigator.userAgent.indexOf("Firefox") != -1;
+ var isIE = navigator.userAgent.indexOf("MSIE") != -1;
+ var isOpera = navigator.userAgent.indexOf("Opera") != -1;
+ var isSafari = navigator.userAgent.indexOf("AppleWebKit") != -1;
+
+ // ********************************************************************************************
+
+ function toggleConsole(forceOpen)
+ {
+ frameVisible = forceOpen || !frameVisible;
+ if (consoleFrame)
+ consoleFrame.style.visibility = frameVisible ? "visible" : "hidden";
+ else
+ waitForBody();
+ }
+
+ function focusCommandLine()
+ {
+ toggleConsole(true);
+ if (commandLine)
+ commandLine.focus();
+ }
+
+ function waitForBody()
+ {
+ if (document.body)
+ createFrame();
+ else
+ setTimeout(waitForBody, 200);
+ }
+
+ function createFrame()
+ {
+ if (consoleFrame)
+ return;
+
+ window.onFirebugReady = function(doc)
+ {
+ window.onFirebugReady = null;
+
+ var toolbar = doc.getElementById("toolbar");
+ toolbar.onmousedown = onSplitterMouseDown;
+
+ commandLine = doc.getElementById("commandLine");
+ addEvent(commandLine, "keydown", onCommandLineKeyDown);
+
+ addEvent(doc, isIE || isSafari ? "keydown" : "keypress", onKeyDown);
+
+ consoleBody = doc.getElementById("log");
+ layout();
+ flush();
+ }
+
+ var baseURL = getFirebugURL();
+
+ consoleFrame = document.createElement("iframe");
+ consoleFrame.setAttribute("src", baseURL+"/firebug.html");
+ consoleFrame.setAttribute("frameBorder", "0");
+ consoleFrame.style.visibility = (frameVisible ? "visible" : "hidden");
+ consoleFrame.style.zIndex = "2147483647";
+ consoleFrame.style.position = "fixed";
+ consoleFrame.style.width = "100%";
+ consoleFrame.style.left = "0";
+ consoleFrame.style.bottom = "0";
+ consoleFrame.style.height = "200px";
+ document.body.appendChild(consoleFrame);
+ }
+
+ function getFirebugURL()
+ {
+ var scripts = document.getElementsByTagName("script");
+ for (var i = 0; i < scripts.length; ++i)
+ {
+ if (scripts[i].src.indexOf("firebug.js") != -1)
+ {
+ var lastSlash = scripts[i].src.lastIndexOf("/");
+ return scripts[i].src.substr(0, lastSlash);
+ }
+ }
+ }
+
+ function evalCommandLine()
+ {
+ var text = commandLine.value;
+ commandLine.value = "";
+
+ logRow([clPrefix, text], "command");
+
+ var value;
+ try
+ {
+ value = eval(text);
+ }
+ catch (exc)
+ {
+ }
+
+ console.log(value);
+ }
+
+ function layout()
+ {
+ var toolbar = consoleBody.ownerDocument.getElementById("toolbar");
+ var height = consoleFrame.offsetHeight - (toolbar.offsetHeight + commandLine.offsetHeight);
+ consoleBody.style.top = toolbar.offsetHeight + "px";
+ consoleBody.style.height = height + "px";
+
+ commandLine.style.top = (consoleFrame.offsetHeight - commandLine.offsetHeight) + "px";
+ }
+
+ function logRow(message, className, handler)
+ {
+ if (consoleBody)
+ writeMessage(message, className, handler);
+ else
+ {
+ messageQueue.push([message, className, handler]);
+ waitForBody();
+ }
+ }
+
+ function flush()
+ {
+ var queue = messageQueue;
+ messageQueue = [];
+
+ for (var i = 0; i < queue.length; ++i)
+ writeMessage(queue[i][0], queue[i][1], queue[i][2]);
+ }
+
+ function writeMessage(message, className, handler)
+ {
+ var isScrolledToBottom =
+ consoleBody.scrollTop + consoleBody.offsetHeight >= consoleBody.scrollHeight;
+
+ if (!handler)
+ handler = writeRow;
+
+ handler(message, className);
+
+ if (isScrolledToBottom)
+ consoleBody.scrollTop = consoleBody.scrollHeight - consoleBody.offsetHeight;
+ }
+
+ function appendRow(row)
+ {
+ var container = groupStack.length ? groupStack[groupStack.length-1] : consoleBody;
+ container.appendChild(row);
+ }
+
+ function writeRow(message, className)
+ {
+ var row = consoleBody.ownerDocument.createElement("div");
+ row.className = "logRow" + (className ? " logRow-"+className : "");
+ row.innerHTML = message.join("");
+ appendRow(row);
+ }
+
+ function pushGroup(message, className)
+ {
+ logFormatted(message, className);
+
+ var groupRow = consoleBody.ownerDocument.createElement("div");
+ groupRow.className = "logGroup";
+ var groupRowBox = consoleBody.ownerDocument.createElement("div");
+ groupRowBox.className = "logGroupBox";
+ groupRow.appendChild(groupRowBox);
+ appendRow(groupRowBox);
+ groupStack.push(groupRowBox);
+ }
+
+ function popGroup()
+ {
+ groupStack.pop();
+ }
+
+ // ********************************************************************************************
+
+ function logFormatted(objects, className)
+ {
+ var html = [];
+
+ var format = objects[0];
+ var objIndex = 0;
+
+ if (typeof(format) != "string")
+ {
+ format = "";
+ objIndex = -1;
+ }
+
+ var parts = parseFormat(format);
+ for (var i = 0; i < parts.length; ++i)
+ {
+ var part = parts[i];
+ if (part && typeof(part) == "object")
+ {
+ var object = objects[++objIndex];
+ part.appender(object, html);
+ }
+ else
+ appendText(part, html);
+ }
+
+ for (var i = objIndex+1; i < objects.length; ++i)
+ {
+ appendText(" ", html);
+
+ var object = objects[i];
+ if (typeof(object) == "string")
+ appendText(object, html);
+ else
+ appendObject(object, html);
+ }
+
+ logRow(html, className);
+ }
+
+ function parseFormat(format)
+ {
+ var parts = [];
+
+ var reg = /((^%|[^\\]%)(\d+)?(\.)([a-zA-Z]))|((^%|[^\\]%)([a-zA-Z]))/;
+ var appenderMap = {s: appendText, d: appendInteger, i: appendInteger, f: appendFloat};
+
+ for (var m = reg.exec(format); m; m = reg.exec(format))
+ {
+ var type = m[8] ? m[8] : m[5];
+ var appender = type in appenderMap ? appenderMap[type] : appendObject;
+ var precision = m[3] ? parseInt(m[3]) : (m[4] == "." ? -1 : 0);
+
+ parts.push(format.substr(0, m[0][0] == "%" ? m.index : m.index+1));
+ parts.push({appender: appender, precision: precision});
+
+ format = format.substr(m.index+m[0].length);
+ }
+
+ parts.push(format);
+
+ return parts;
+ }
+
+ function escapeHTML(value)
+ {
+ function replaceChars(ch)
+ {
+ switch (ch)
+ {
+ case "<":
+ return "<";
+ case ">":
+ return ">";
+ case "&":
+ return "&";
+ case "'":
+ return "'";
+ case '"':
+ return """;
+ }
+ return "?";
+ };
+ return String(value).replace(/[<>&"']/g, replaceChars);
+ }
+
+ function objectToString(object)
+ {
+ try
+ {
+ return object+"";
+ }
+ catch (exc)
+ {
+ return null;
+ }
+ }
+
+ // ********************************************************************************************
+
+ function appendText(object, html)
+ {
+ html.push(escapeHTML(objectToString(object)));
+ }
+
+ function appendNull(object, html)
+ {
+ html.push('<span class="objectBox-null">', escapeHTML(objectToString(object)), '</span>');
+ }
+
+ function appendString(object, html)
+ {
+ html.push('<span class="objectBox-string">"', escapeHTML(objectToString(object)),
+ '"</span>');
+ }
+
+ function appendInteger(object, html)
+ {
+ html.push('<span class="objectBox-number">', escapeHTML(objectToString(object)), '</span>');
+ }
+
+ function appendFloat(object, html)
+ {
+ html.push('<span class="objectBox-number">', escapeHTML(objectToString(object)), '</span>');
+ }
+
+ function appendFunction(object, html)
+ {
+ var reName = /function ?(.*?)\(/;
+ var m = reName.exec(objectToString(object));
+ var name = m ? m[1] : "function";
+ html.push('<span class="objectBox-function">', escapeHTML(name), '()</span>');
+ }
+
+ function appendObject(object, html)
+ {
+ try
+ {
+ if (object == undefined)
+ appendNull("undefined", html);
+ else if (object == null)
+ appendNull("null", html);
+ else if (typeof object == "string")
+ appendString(object, html);
+ else if (typeof object == "number")
+ appendInteger(object, html);
+ else if (typeof object == "function")
+ appendFunction(object, html);
+ else if (object.nodeType == 1)
+ appendSelector(object, html);
+ else if (typeof object == "object")
+ appendObjectFormatted(object, html);
+ else
+ appendText(object, html);
+ }
+ catch (exc)
+ {
+ }
+ }
+
+ function appendObjectFormatted(object, html)
+ {
+ var text = objectToString(object);
+ var reObject = /\[object (.*?)\]/;
+
+ var m = reObject.exec(text);
+ html.push('<span class="objectBox-object">', m ? m[1] : text, '</span>')
+ }
+
+ function appendSelector(object, html)
+ {
+ html.push('<span class="objectBox-selector">');
+
+ html.push('<span class="selectorTag">', escapeHTML(object.nodeName.toLowerCase()), '</span>');
+ if (object.id)
+ html.push('<span class="selectorId">#', escapeHTML(object.id), '</span>');
+ if (object.className)
+ html.push('<span class="selectorClass">.', escapeHTML(object.className), '</span>');
+
+ html.push('</span>');
+ }
+
+ function appendNode(node, html)
+ {
+ if (node.nodeType == 1)
+ {
+ html.push(
+ '<div class="objectBox-element">',
+ '<<span class="nodeTag">', node.nodeName.toLowerCase(), '</span>');
+
+ for (var i = 0; i < node.attributes.length; ++i)
+ {
+ var attr = node.attributes[i];
+ if (!attr.specified)
+ continue;
+
+ html.push(' <span class="nodeName">', attr.nodeName.toLowerCase(),
+ '</span>="<span class="nodeValue">', escapeHTML(attr.nodeValue),
+ '</span>"')
+ }
+
+ if (node.firstChild)
+ {
+ html.push('></div><div class="nodeChildren">');
+
+ for (var child = node.firstChild; child; child = child.nextSibling)
+ appendNode(child, html);
+
+ html.push('</div><div class="objectBox-element"></<span class="nodeTag">',
+ node.nodeName.toLowerCase(), '></span></div>');
+ }
+ else
+ html.push('/></div>');
+ }
+ else if (node.nodeType == 3)
+ {
+ html.push('<div class="nodeText">', escapeHTML(node.nodeValue),
+ '</div>');
+ }
+ }
+
+ // ********************************************************************************************
+
+ function addEvent(object, name, handler)
+ {
+ if (document.all)
+ object.attachEvent("on"+name, handler);
+ else
+ object.addEventListener(name, handler, false);
+ }
+
+ function removeEvent(object, name, handler)
+ {
+ if (document.all)
+ object.detachEvent("on"+name, handler);
+ else
+ object.removeEventListener(name, handler, false);
+ }
+
+ function cancelEvent(event)
+ {
+ if (document.all)
+ event.cancelBubble = true;
+ else
+ event.stopPropagation();
+ }
+
+ function onError(msg, href, lineNo)
+ {
+ var html = [];
+
+ var lastSlash = href.lastIndexOf("/");
+ var fileName = lastSlash == -1 ? href : href.substr(lastSlash+1);
+
+ html.push(
+ '<span class="errorMessage">', msg, '</span>',
+ '<div class="objectBox-sourceLink">', fileName, ' (line ', lineNo, ')</div>'
+ );
+
+ logRow(html, "error");
+ };
+
+ function onKeyDown(event)
+ {
+ if (event.keyCode == 123)
+ toggleConsole();
+ else if ((event.keyCode == 108 || event.keyCode == 76) && event.shiftKey
+ && (event.metaKey || event.ctrlKey))
+ focusCommandLine();
+ else
+ return;
+
+ cancelEvent(event);
+ }
+
+ function onSplitterMouseDown(event)
+ {
+ if (isSafari || isOpera)
+ return;
+
+ addEvent(document, "mousemove", onSplitterMouseMove);
+ addEvent(document, "mouseup", onSplitterMouseUp);
+
+ for (var i = 0; i < frames.length; ++i)
+ {
+ addEvent(frames[i].document, "mousemove", onSplitterMouseMove);
+ addEvent(frames[i].document, "mouseup", onSplitterMouseUp);
+ }
+ }
+
+ function onSplitterMouseMove(event)
+ {
+ var win = document.all
+ ? event.srcElement.ownerDocument.parentWindow
+ : event.target.ownerDocument.defaultView;
+
+ var clientY = event.clientY;
+ if (win != win.parent)
+ clientY += win.frameElement ? win.frameElement.offsetTop : 0;
+
+ var height = consoleFrame.offsetTop + consoleFrame.clientHeight;
+ var y = height - clientY;
+
+ consoleFrame.style.height = y + "px";
+ layout();
+ }
+
+ function onSplitterMouseUp(event)
+ {
+ removeEvent(document, "mousemove", onSplitterMouseMove);
+ removeEvent(document, "mouseup", onSplitterMouseUp);
+
+ for (var i = 0; i < frames.length; ++i)
+ {
+ removeEvent(frames[i].document, "mousemove", onSplitterMouseMove);
+ removeEvent(frames[i].document, "mouseup", onSplitterMouseUp);
+ }
+ }
+
+ function onCommandLineKeyDown(event)
+ {
+ if (event.keyCode == 13)
+ evalCommandLine();
+ else if (event.keyCode == 27)
+ commandLine.value = "";
+ }
+
+ window.onerror = onError;
+ addEvent(document, isIE || isSafari ? "keydown" : "keypress", onKeyDown);
+
+ if (document.documentElement.getAttribute("debug") == "true")
+ toggleConsole(true);
+})();
+}
Added: branches/3.1.x/samples/scrollableDataTableDemo/src/main/webapp/firebug/firebugx.js
===================================================================
--- branches/3.1.x/samples/scrollableDataTableDemo/src/main/webapp/firebug/firebugx.js (rev 0)
+++ branches/3.1.x/samples/scrollableDataTableDemo/src/main/webapp/firebug/firebugx.js 2008-01-09 21:37:01 UTC (rev 5251)
@@ -0,0 +1,10 @@
+
+if (!("console" in window) || !("firebug" in console))
+{
+ var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml",
+ "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
+
+ window.console = {};
+ for (var i = 0; i < names.length; ++i)
+ window.console[names[i]] = function() {}
+}
\ No newline at end of file
Added: branches/3.1.x/samples/scrollableDataTableDemo/src/main/webapp/firebug/infoIcon.png
===================================================================
(Binary files differ)
Property changes on: branches/3.1.x/samples/scrollableDataTableDemo/src/main/webapp/firebug/infoIcon.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/3.1.x/samples/scrollableDataTableDemo/src/main/webapp/firebug/warningIcon.png
===================================================================
(Binary files differ)
Property changes on: branches/3.1.x/samples/scrollableDataTableDemo/src/main/webapp/firebug/warningIcon.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: branches/3.1.x/samples/scrollableDataTableDemo/src/main/webapp/pages/test.xhtml
===================================================================
--- branches/3.1.x/samples/scrollableDataTableDemo/src/main/webapp/pages/test.xhtml 2008-01-09 20:47:32 UTC (rev 5250)
+++ branches/3.1.x/samples/scrollableDataTableDemo/src/main/webapp/pages/test.xhtml 2008-01-09 21:37:01 UTC (rev 5251)
@@ -4,9 +4,11 @@
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:sg="http://labs.jboss.com/jbossrichfaces/ui/scrollableDataTable"
- xmlns:a4j="http://richfaces.org/a4j">
+ xmlns:a4j="http://richfaces.org/a4j">
+<head><title>Scrollable data table</title></head>
<body>
-<f:view>
+<f:view>
+ <a4j:loadScript src="/firebug/firebug.js"></a4j:loadScript>
<h:form>
<a4j:status startText="loading..."/>
<h:selectOneMenu value="#{modelBuilder.grid}">
Modified: branches/3.1.x/samples/scrollableDataTableDemo/src/main/webapp/pages/testScript.xhtml
===================================================================
--- branches/3.1.x/samples/scrollableDataTableDemo/src/main/webapp/pages/testScript.xhtml 2008-01-09 20:47:32 UTC (rev 5250)
+++ branches/3.1.x/samples/scrollableDataTableDemo/src/main/webapp/pages/testScript.xhtml 2008-01-09 21:37:01 UTC (rev 5251)
@@ -21,17 +21,31 @@
return this.element;
}
});
+ mockRow = Class.create({
+ clientWidth:100,
+ clientHeight:100,
+ offsetWidth:100,
+ offsetHeight:100
+ });
function startTest(){
+ var table=$("form:dt");
+ var mrow=new mockRow();
LOG.debug("script started");
- var table=$("form:dt");
- var display=table.style.display;
-// table.style.display = 'none';
+ for(var i=0;i < 10000;i++){
+ var width= mrow.clientWidth;
+ var height= mrow.clientHeight;
+ var offsetWidth = mrow.offsetWidth;
+ var offsetHeight = mrow.offsetHeight;
+ }
+ LOG.debug("dom size loop started");
var row=$("form:dt:1");
- var req = new mockRequest(row);
- LOG.debug("update started");
- Utils.DOM.replaceNode("form:dt:0",req);
- LOG.debug("script done");
- table.style.display = display;
+ for(var i=0;i < 10000;i++){
+ var width= row.clientWidth;
+ var height= row.clientHeight;
+ var offsetWidth = row.offsetWidth;
+ var offsetHeight = row.offsetHeight;
+ }
+ LOG.debug("script done");
};
</script>
<dt:dataTable id="dt" value="#{modelBuilder.model3}" var="issues" rowKeyVar="row"
17 years
JBoss Rich Faces SVN: r5250 - branches/3.1.x/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2008-01-09 15:47:32 -0500 (Wed, 09 Jan 2008)
New Revision: 5250
Modified:
branches/3.1.x/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/Grid.js
branches/3.1.x/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js
branches/3.1.x/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridFooter.js
branches/3.1.x/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridHeader.js
Log:
RF-726
Modified: branches/3.1.x/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/Grid.js
===================================================================
--- branches/3.1.x/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/Grid.js 2008-01-09 20:44:14 UTC (rev 5249)
+++ branches/3.1.x/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/Grid.js 2008-01-09 20:47:32 UTC (rev 5250)
@@ -71,31 +71,19 @@
var grid = this;
Utils.execOnLoad(
function(){
+ grid.getHeader().updateSize();
+ grid.getBody().updateSize();
+ if(grid.getFooter()) {grid.getFooter().updateSize();}
grid.updateLayout();
},
Utils.Condition.ElementPresent(grid.client_id), 100);
},
updateLayout: function($super) {
- if(!this.controlCreated || this.element.offsetHeight==0) {
- return;
- }
$super();
-
- var header = this.getHeader();
- if(header.element.offsetHeight == 0) {
- header.updateSize();
- this.getBody().updateSize();
- if(this.getFooter()) {this.getFooter().updateSize();}
- }
-
if(this.layout) {
this.layout.updateLayout();
}
- header.updateLayout();
- header.setFakeColumnWidth();
- this.getBody().setFakeColumnWidth();
- if(this.getFooter()) {this.getFooter().setFakeColumnWidth();}
},
getHeader: function() {
return this.layout.getPane(GridLayout_Enum.HEADER);
Modified: branches/3.1.x/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js
===================================================================
--- branches/3.1.x/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js 2008-01-09 20:44:14 UTC (rev 5249)
+++ branches/3.1.x/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js 2008-01-09 20:47:32 UTC (rev 5250)
@@ -174,15 +174,14 @@
},
updateSize: function() {
- var defHeight = this._calcDefaultRowHeight();
-
- if (isFinite(defHeight)) {
- this.defaultRowHeight = defHeight;
- }
-
var row = this.templNormal.getElement().rows[0];
if(row) {
this.defaultRowHeight = row.cells[0].offsetHeight;
+ } else {
+ var defHeight = this._calcDefaultRowHeight();
+ if (isFinite(defHeight)) {
+ this.defaultRowHeight = defHeight;
+ }
}
//if(ClientUILib.isGecko) {
// this.defaultRowHeight -= this.getBorderWidth("tb") + this.getPadding("tb");
@@ -249,6 +248,7 @@
}
var scrollPos = Math.min(totalWidth - viewWidth, scrollLeft);
this.grid.adjustScrollPosition(scrollPos);
+ this.setFakeColumnWidth();
},
adjustScrollPosition: function(pos) {
this.templNormal.moveToX(-pos);
Modified: branches/3.1.x/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridFooter.js
===================================================================
--- branches/3.1.x/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridFooter.js 2008-01-09 20:44:14 UTC (rev 5249)
+++ branches/3.1.x/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridFooter.js 2008-01-09 20:47:32 UTC (rev 5250)
@@ -145,6 +145,7 @@
this.container.setWidth(viewWidth);
this.setWidth(viewWidth);
this.frozenSubstrate.setWidth(frozenContentWidth);
+ this.setFakeColumnWidth();
},
adjustScrollPosition: function(pos) {
this.contentBox.moveToX(this.grid.getColumnsFrozenWidth()-pos);
Modified: branches/3.1.x/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridHeader.js
===================================================================
--- branches/3.1.x/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridHeader.js 2008-01-09 20:44:14 UTC (rev 5249)
+++ branches/3.1.x/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridHeader.js 2008-01-09 20:47:32 UTC (rev 5250)
@@ -56,7 +56,6 @@
if(!template) {
return false;
}
-
var childs = template.childNodes;
for(var i=0; i<childs.length; i++) {
if(childs[i].tagName && childs[i].tagName.toLowerCase() == "div") {
@@ -121,6 +120,7 @@
var ids = this.grid.options.ids;
var count = this.frozenCells.length;
for(i=0; i<count; i++) {
+ this.trace(i);
cell = this.frozenCells[i];
columns[j] = {
columnId: ids[i],
@@ -137,14 +137,18 @@
sortable: Validators.getBoolean(cell.getAttribute("sortable"), false),
sorted: Validators.getBoolean(cell.getAttribute("sorted"), "desc")
};
+ this.trace(i+"a");
if(columns[j].sortable)
Event.observe(cell, 'click', eventCellMouseDown);
+ this.trace(i+"a1");
h = cell.offsetHeight;
+ this.trace(i+"a2");
if(h > defaultHeight) defaultHeight = h;
defaultWidth += columns[j].width;
columns[j].object = new ClientUI.common.box.InlineBox(cell, null, true);
+ this.trace(i+"b");
var details = this._getCellElements(j);
// separator
columns[j].sep = new ClientUI.common.box.InlineBox(details[0], null, true);
@@ -161,6 +165,7 @@
//columns[j].sortDesc = new ClientUI.common.box.Box(details[1], null, true);
//columns[j].sortAsc = new ClientUI.common.box.Box(details[2], null, true);
j++;
+ this.trace(i+"c");
}
cols = this.headerRow.getElement().getElementsByTagName("col");
@@ -223,9 +228,13 @@
this.frozenSubstrate = new ClientUI.common.box.Box(this.gridId + ":hs", this.getElement());
this.frozenSubstrate.getElement().name = this.getElement().id + "HRFrm";
this.frozenSubstrate.setHeight(this.headerRow.element.offsetHeight);
-
+
return true;
},
+ trace: function(s) {
+ window.status = s + ": " + (new Date().getTime()- this._d) + " $$ " + window.status;
+ this._d = new Date().getTime();
+ },
_getCellElements: function(column) {
var details = new Array(3);
var clientId = this.grid.getElement().id;
@@ -307,6 +316,7 @@
this.headerFrozenRow.setHeight(height);
this.frozenSubstrate.setWidth(frozenContentWidth);
this.updateHeaders();
+ this.setFakeColumnWidth();
},
getColumns: function() {
return this._columns;
17 years
JBoss Rich Faces SVN: r5249 - trunk/sandbox/ui/combobox/src/main/templates.
by richfaces-svn-commits@lists.jboss.org
Author: vmolotkov
Date: 2008-01-09 15:44:14 -0500 (Wed, 09 Jan 2008)
New Revision: 5249
Modified:
trunk/sandbox/ui/combobox/src/main/templates/combobox.jspx
Log:
selectFirstOnUpdate attribute was added
Modified: trunk/sandbox/ui/combobox/src/main/templates/combobox.jspx
===================================================================
--- trunk/sandbox/ui/combobox/src/main/templates/combobox.jspx 2008-01-09 20:43:59 UTC (rev 5248)
+++ trunk/sandbox/ui/combobox/src/main/templates/combobox.jspx 2008-01-09 20:44:14 UTC (rev 5249)
@@ -46,6 +46,9 @@
String defaultMessage = (String) component.getAttributes().get("defaultMessage");
variables.setVariable("defaultMessage", defaultMessage);
+
+ Boolean selectFirstOnUpdate = (Boolean) component.getAttributes().get("selectFirstOnUpdate");
+ variables.setVariable("selectFirstOnUpdate", selectFirstOnUpdate);
]]>
@@ -80,8 +83,10 @@
#{this:getItemsTextAsJSArray(context, component)},
#{directInputSuggestions},
#{filterNewValues},
+ #{selectFirstOnUpdate},
#{this:getAsEventHandler(context, component, "onlistcall")},
#{this:getAsEventHandler(context, component, "onitemselected")},
+ #{this:getAsEventHandler(context, component, "onchange")},
"#{defaultMessage}");
</script>
</f:root>
\ No newline at end of file
17 years
JBoss Rich Faces SVN: r5248 - in trunk/sandbox/ui/combobox/src/main: resources/org/richfaces/renderkit/html/scripts and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: vmolotkov
Date: 2008-01-09 15:43:59 -0500 (Wed, 09 Jan 2008)
New Revision: 5248
Modified:
trunk/sandbox/ui/combobox/src/main/config/component/combobox.xml
trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js
Log:
component is corrected
Modified: trunk/sandbox/ui/combobox/src/main/config/component/combobox.xml
===================================================================
--- trunk/sandbox/ui/combobox/src/main/config/component/combobox.xml 2008-01-09 20:28:03 UTC (rev 5247)
+++ trunk/sandbox/ui/combobox/src/main/config/component/combobox.xml 2008-01-09 20:43:59 UTC (rev 5248)
@@ -71,6 +71,7 @@
<name>listWidth</name>
<classname>java.lang.String</classname>
<description></description>
+ <defaultvalue><![CDATA["150"]]></defaultvalue>
</property>
<property>
<name>listHeight</name>
Modified: trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js
===================================================================
--- trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js 2008-01-09 20:28:03 UTC (rev 5247)
+++ trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js 2008-01-09 20:43:59 UTC (rev 5248)
@@ -3,7 +3,7 @@
Richfaces.ComboBox.prototype = {
- initialize: function(combobox, listId, parentListId, fieldId, buttonId, classes, listWidth, listHeight, itemsText, directInputSuggestions, filterNewValue, selectFirstOnUpdate, onlistcall, onselected, defaultMessage) {
+ initialize: function(combobox, listId, parentListId, fieldId, buttonId, classes, listWidth, listHeight, itemsText, directInputSuggestions, filterNewValue, selectFirstOnUpdate, onlistcall, onselected, onchange, defaultMessage) {
this.directInputSuggestions = directInputSuggestions;
this.filterNewValue = filterNewValue;
@@ -17,6 +17,7 @@
this.defaultMessage = defaultMessage;
this.onselected = onselected;
+ this.onchange = onchange;
this.isSelection = true;
@@ -41,6 +42,10 @@
this.combobox.observe("rich:onitemselected", this.onselected);
}
+ if (this.onchange) {
+ this.combobox.observe("rich:onchange", this.onchange);
+ }
+
if (this.defaultMessage) {
this.applyDefaultText();
}
@@ -94,8 +99,17 @@
}
var value = this.comboList.selectedItem.innerHTML;
if (toSetOnly) {
+ var oV = this.field.value;
+ if (oV == value) {
+ if (Prototype.Browser.Gecko) {
+ this.field.value = "";
+ }
+ }
this.field.value = value;
this.combobox.fire("rich:onitemselected", {});
+ if (oV != value) {
+ this.combobox.fire("rich:onchange", {});
+ }
} else {
if (this.directInputSuggestions) {
var startInd = this.field.value.length;
17 years
JBoss Rich Faces SVN: r5247 - branches/3.1.x/ui/listShuttle/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-01-09 15:28:03 -0500 (Wed, 09 Jan 2008)
New Revision: 5247
Modified:
branches/3.1.x/ui/listShuttle/src/main/resources/org/richfaces/renderkit/html/scripts/ListShuttle.js
Log:
http://jira.jboss.com/jira/browse/RF-1824
Modified: branches/3.1.x/ui/listShuttle/src/main/resources/org/richfaces/renderkit/html/scripts/ListShuttle.js
===================================================================
--- branches/3.1.x/ui/listShuttle/src/main/resources/org/richfaces/renderkit/html/scripts/ListShuttle.js 2008-01-09 20:11:33 UTC (rev 5246)
+++ branches/3.1.x/ui/listShuttle/src/main/resources/org/richfaces/renderkit/html/scripts/ListShuttle.js 2008-01-09 20:28:03 UTC (rev 5247)
@@ -196,7 +196,7 @@
tableUpdate : function(component) {
var table = component.shuttleTable;
table.removeChild(table.tBodies[0]);
- var tbody = document.createElement("TBODY");
+ var tbody = document.createElement("tbody");
table.appendChild(tbody);
component.shuttleTbody = table.tBodies[0];
},
17 years
JBoss Rich Faces SVN: r5246 - trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-01-09 15:11:33 -0500 (Wed, 09 Jan 2008)
New Revision: 5246
Modified:
trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js
Log:
http://jira.jboss.com/jira/browse/RF-1864
Modified: trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js
===================================================================
--- trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js 2008-01-09 19:55:46 UTC (rev 5245)
+++ trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js 2008-01-09 20:11:33 UTC (rev 5246)
@@ -208,14 +208,17 @@
}
this.borders = null;
- if (this.floatedToBody) {
- var element = this.id;
- var parent = element.parentNode;
- if (parent) {
- parent.removeChild(element);
- discardElement(element);
+ setTimeout(function() {
+ if (this.floatedToBody) {
+ var element = this.id;
+ var parent = element.parentNode;
+ if (parent) {
+ parent.removeChild(element);
+ discardElement(element);
+ }
}
- }
+ }.bind(this), 0);
+
this.markerId.component = null;
this.markerId = null;
},
17 years
JBoss Rich Faces SVN: r5245 - trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2008-01-09 14:55:46 -0500 (Wed, 09 Jan 2008)
New Revision: 5245
Modified:
branches/3.1.x/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd/dnd-draggable.js
trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd/dnd-draggable.js
Log:
http://jira.jboss.com/jira/browse/RF-1859
Modified: branches/3.1.x/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd/dnd-draggable.js
===================================================================
--- branches/3.1.x/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd/dnd-draggable.js 2008-01-09 19:48:59 UTC (rev 5244)
+++ branches/3.1.x/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd/dnd-draggable.js 2008-01-09 19:55:46 UTC (rev 5245)
@@ -347,19 +347,19 @@
},
changeIndicatorColor: function(indicator, color) {
- Element.setStyle(indicator, {"border-top" : "1px dashed "+color});
+ Element.setStyle(indicator, {"borderTop" : "1px dashed "+color});
var elt = $("_rfDefaultDragIndicatorLeft");
if (elt) {
- Element.setStyle(elt, {"border-left" : "1px dashed "+color});
+ Element.setStyle(elt, {"borderLeft" : "1px dashed "+color});
}
elt = $("_rfDefaultDragIndicatorRight");
if (elt) {
- Element.setStyle(elt, {"border-right" : "1px dashed "+color});
+ Element.setStyle(elt, {"borderRight" : "1px dashed "+color});
}
elt = $("_rfDefaultDragIndicatorBottom");
if (elt) {
- Element.setStyle(elt, {"border-bottom" : "1px dashed "+color});
+ Element.setStyle(elt, {"borderBottom" : "1px dashed "+color});
}
}
};
Modified: trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd/dnd-draggable.js
===================================================================
--- trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd/dnd-draggable.js 2008-01-09 19:48:59 UTC (rev 5244)
+++ trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd/dnd-draggable.js 2008-01-09 19:55:46 UTC (rev 5245)
@@ -512,19 +512,19 @@
},
changeIndicatorColor: function(indicator, color) {
- indicator.style.borderTop = "1px dashed "+ color;
+ Element.setStyle(indicator, {"borderTop" : "1px dashed "+color});
var elt = $("_rfDefaultDragIndicatorLeft");
if (elt) {
- elt.style.borderLeft = "1px dashed "+ color;
+ Element.setStyle(elt, {"borderLeft" : "1px dashed "+color});
}
elt = $("_rfDefaultDragIndicatorRight");
if (elt) {
- elt.style.borderRight = "1px dashed "+ color;
+ Element.setStyle(elt, {"borderRight" : "1px dashed "+color});
}
elt = $("_rfDefaultDragIndicatorBottom");
if (elt) {
- elt.style.borderBottom = "1px dashed "+ color;
+ Element.setStyle(elt, {"borderBottom" : "1px dashed "+color});
}
}
};
17 years