JBoss Rich Faces SVN: r535 - in trunk/sandbox-samples: scrollable-grid-demo and 8 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-04-24 14:01:06 -0400 (Tue, 24 Apr 2007)
New Revision: 535
Added:
trunk/sandbox-samples/pom.xml
trunk/sandbox-samples/scrollable-grid-demo/
trunk/sandbox-samples/scrollable-grid-demo/pom.xml
trunk/sandbox-samples/scrollable-grid-demo/src/
trunk/sandbox-samples/scrollable-grid-demo/src/main/
trunk/sandbox-samples/scrollable-grid-demo/src/main/java/
trunk/sandbox-samples/scrollable-grid-demo/src/main/java/org/
trunk/sandbox-samples/scrollable-grid-demo/src/main/java/org/richfaces/
trunk/sandbox-samples/scrollable-grid-demo/src/main/java/org/richfaces/Bean.java
trunk/sandbox-samples/scrollable-grid-demo/src/main/resources/
trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/
trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/WEB-INF/
trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/WEB-INF/faces-config.xml
trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/WEB-INF/web.xml
trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/index.jsp
trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/
trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/index.jsp
trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/index.xhtml
Log:
Added: trunk/sandbox-samples/pom.xml
===================================================================
--- trunk/sandbox-samples/pom.xml (rev 0)
+++ trunk/sandbox-samples/pom.xml 2007-04-24 18:01:06 UTC (rev 535)
@@ -0,0 +1,237 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces</groupId>
+ <artifactId>richfaces-samples</artifactId>
+ <packaging>pom</packaging>
+ <name>RichFaces Components Examples</name>
+ <version>3.0.1-SNAPSHOT</version>
+ <url>http://labs.jboss.com/jbossrichfaces/samples</url>
+
+ <!-- Profile to run jetty, so the tomcat jars are included in the bundle. They are not included by default -->
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.mortbay.jetty</groupId>
+ <artifactId>maven-jetty-plugin</artifactId>
+ <version>6.1.1</version>
+ <configuration>
+ <scanIntervalSeconds>10</scanIntervalSeconds>
+ <connectors>
+ <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
+ <port>8080</port>
+ <maxIdleTime>60000</maxIdleTime>
+ </connector>
+ </connectors>
+ </configuration>
+
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <skip>true</skip>
+ </configuration>
+ <executions>
+ <execution>
+ <id>surefire-it</id>
+ <phase>integration-test</phase>
+ <goals>
+ <goal>test</goal>
+ </goals>
+ <configuration>
+ <skip>false</skip>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.ajax4jsf</groupId>
+ <artifactId>ajax4jsf</artifactId>
+ <version>1.1.1-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>com.sun.facelets</groupId>
+ <artifactId>jsf-facelets</artifactId>
+ <version>1.1.12</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.el</groupId>
+ <artifactId>el-api</artifactId>
+ <version>1.0</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>el-impl</groupId>
+ <artifactId>el-impl</artifactId>
+ <version>1.0</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>jstl</artifactId>
+ <version>1.0</version>
+ <scope>runtime</scope>
+ </dependency>
+ </dependencies>
+
+ <scm>
+ <connection>
+ scm:svn:http://anonsvn.jboss.org/repos/richfaces/
+ </connection>
+ <developerConnection>
+ scm:svn:https://svn.jboss.org/repos/richfaces/
+ </developerConnection>
+ <url>http://anonsvn.jboss.org/repos/richfaces/</url>
+ </scm>
+
+ <distributionManagement>
+ <downloadUrl>http://labs.jboss.com/portal/jbossrichfaces/downloads</downloadUrl>
+ <repository>
+ <id>release-repository</id>
+ <uniqueVersion>false</uniqueVersion>
+ <url>${releaseRepository}</url>
+ </repository>
+ <snapshotRepository>
+ <id>snap-repository</id>
+ <uniqueVersion>true</uniqueVersion>
+ <url>${snapshotRepository}</url>
+ </snapshotRepository>
+ </distributionManagement>
+ <pluginRepositories>
+ <pluginRepository>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ <updatePolicy>always</updatePolicy>
+ </snapshots>
+ <id>maven2-snapshots.jboss.org</id>
+ <name>Jboss Repository for Maven Snapshots</name>
+ <url>http://snapshots.jboss.com/</url>
+ </pluginRepository>
+ </pluginRepositories>
+ <repositories>
+ <repository>
+ <releases/>
+ <snapshots>
+ <enabled>false</enabled>
+ <updatePolicy>never</updatePolicy>
+ </snapshots>
+ <id>maven-repository.dev.java.net</id>
+ <name>Java.net Repository for Maven</name>
+ <url>
+ https://maven-repository.dev.java.net/nonav/repository
+ </url>
+ <layout>legacy</layout>
+ </repository>
+ <repository>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ <updatePolicy>always</updatePolicy>
+ </snapshots>
+ <id>maven2-snapshots.jboss.org</id>
+ <name>Jboss Repository for Maven Snapshots</name>
+ <url>http://snapshots.jboss.com/</url>
+ </repository>
+ </repositories>
+ <profiles>
+ <profile>
+ <id>jsf12</id>
+ <build>
+ <defaultGoal>jetty:run</defaultGoal>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.0</version>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <version>2.5</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet.jsp</groupId>
+ <artifactId>jsp-api</artifactId>
+ <version>2.1</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.faces</groupId>
+ <artifactId>jsf-api</artifactId>
+ <version>1.2_03</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.faces</groupId>
+ <artifactId>jsf-impl</artifactId>
+ <version>1.2_03</version>
+ <scope>runtime</scope>
+ </dependency>
+ </dependencies>
+ </profile>
+ <profile>
+ <id>myfaces</id>
+ <properties>
+ <myfaces>1.1.5</myfaces>
+ <tomahawk>1.1.5</tomahawk>
+ </properties>
+ <build>
+ <plugins/>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>org.ajax4jsf</groupId>
+ <artifactId>ajax4jsf</artifactId>
+ <version>1.1.1-SNAPSHOT</version>
+ <exclusions>
+ <exclusion>
+ <groupId>javax.faces</groupId>
+ <artifactId>jsf-api</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>javax.faces</groupId>
+ <artifactId>jsf-impl</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.myfaces.core</groupId>
+ <artifactId>myfaces-api</artifactId>
+ <version>${myfaces}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.myfaces.core</groupId>
+ <artifactId>myfaces-impl</artifactId>
+ <version>${myfaces}</version>
+ <scope>runtime</scope>
+ </dependency>
+ </dependencies>
+ </profile>
+ </profiles>
+ <modules>
+ <module>scrollable-grid-demo</module>
+ </modules>
+</project>
\ No newline at end of file
Added: trunk/sandbox-samples/scrollable-grid-demo/pom.xml
===================================================================
--- trunk/sandbox-samples/scrollable-grid-demo/pom.xml (rev 0)
+++ trunk/sandbox-samples/scrollable-grid-demo/pom.xml 2007-04-24 18:01:06 UTC (rev 535)
@@ -0,0 +1,15 @@
+<?xml version="1.0"?><project>
+ <parent>
+ <artifactId>richfaces-samples</artifactId>
+ <groupId>org.richfaces</groupId>
+ <version>3.0.1-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces</groupId>
+ <artifactId>scrollable-grid-demo</artifactId>
+ <packaging>war</packaging>
+ <name>scrollable-grid-demo Maven Webapp</name>
+ <build>
+ <finalName>scrollable-grid-demo</finalName>
+ </build>
+</project>
\ No newline at end of file
Added: trunk/sandbox-samples/scrollable-grid-demo/src/main/java/org/richfaces/Bean.java
===================================================================
--- trunk/sandbox-samples/scrollable-grid-demo/src/main/java/org/richfaces/Bean.java (rev 0)
+++ trunk/sandbox-samples/scrollable-grid-demo/src/main/java/org/richfaces/Bean.java 2007-04-24 18:01:06 UTC (rev 535)
@@ -0,0 +1,29 @@
+/**
+ * License Agreement.
+ *
+ * Ajax4jsf 1.1 - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package org.richfaces;
+/**
+ * @author $Autor$
+ *
+ */
+public class Bean {
+
+}
\ No newline at end of file
Added: trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/WEB-INF/faces-config.xml (rev 0)
+++ trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/WEB-INF/faces-config.xml 2007-04-24 18:01:06 UTC (rev 535)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>bean</managed-bean-name>
+ <managed-bean-class>org.richfaces.Bean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/WEB-INF/web.xml (rev 0)
+++ trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/WEB-INF/web.xml 2007-04-24 18:01:06 UTC (rev 535)
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app version="2.4" 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 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+ <display-name>Archetype Created Web Application</display-name>
+ <context-param>
+ <param-name>javax.faces.CONFIG_FILES</param-name>
+ <param-value>/WEB-INF/faces-config.xml</param-value>
+ </context-param>
+ <context-param>
+ <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
+ <param-value>server</param-value>
+ </context-param>
+ <!--
+ -->
+ <filter>
+ <display-name>Ajax4jsf Filter</display-name>
+ <filter-name>ajax4jsf</filter-name>
+ <filter-class>org.ajax4jsf.Filter</filter-class>
+ </filter>
+ <filter-mapping>
+ <filter-name>ajax4jsf</filter-name>
+ <servlet-name>Faces Servlet</servlet-name>
+ <dispatcher>REQUEST</dispatcher>
+ <dispatcher>FORWARD</dispatcher>
+ <dispatcher>INCLUDE</dispatcher>
+ </filter-mapping>
+ <servlet>
+ <servlet-name>Faces Servlet</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>/faces/*</url-pattern>
+ </servlet-mapping>
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>*.jsf</url-pattern>
+ </servlet-mapping>
+ <login-config>
+ <auth-method>BASIC</auth-method>
+ </login-config>
+</web-app>
Added: trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/index.jsp
===================================================================
--- trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/index.jsp (rev 0)
+++ trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/index.jsp 2007-04-24 18:01:06 UTC (rev 535)
@@ -0,0 +1,11 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+
+<html>
+
+<head></head>
+
+ <body>
+ <jsp:forward page="/pages/index.jsf" />
+ </body>
+
+</html>
\ No newline at end of file
Added: trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/index.jsp (rev 0)
+++ trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/index.jsp 2007-04-24 18:01:06 UTC (rev 535)
@@ -0,0 +1,12 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<html>
+ <head>
+ <title></title>
+ </head>
+ <body>
+ <f:view>
+
+ </f:view>
+ </body>
+</html>
Added: trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/index.xhtml
===================================================================
--- trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/index.xhtml (rev 0)
+++ trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/index.xhtml 2007-04-24 18:01:06 UTC (rev 535)
@@ -0,0 +1,12 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
+ xmlns:c="http://java.sun.com/jsp/jstl/core"
+ >
+ <f:view>
+
+ </f:view>
+</html>
\ No newline at end of file
17 years, 8 months
JBoss Rich Faces SVN: r533 - trunk/sandbox.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-04-24 13:48:34 -0400 (Tue, 24 Apr 2007)
New Revision: 533
Removed:
trunk/sandbox/sandbox-samples/
Log:
17 years, 8 months
JBoss Rich Faces SVN: r532 - in trunk/richfaces: drag-drop/src/main/resources/org/richfaces/renderkit/html/scripts and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-04-24 13:46:45 -0400 (Tue, 24 Apr 2007)
New Revision: 532
Modified:
trunk/richfaces/common/src/main/resources/org/richfaces/renderkit/html/scripts/dnd/dnd-draggable.js
trunk/richfaces/drag-drop/src/main/resources/org/richfaces/renderkit/html/scripts/simple-draggable.js
trunk/richfaces/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-item.js
Log:
http://jira.jboss.com/jira/browse/RF-75 fixed
Modified: trunk/richfaces/common/src/main/resources/org/richfaces/renderkit/html/scripts/dnd/dnd-draggable.js
===================================================================
--- trunk/richfaces/common/src/main/resources/org/richfaces/renderkit/html/scripts/dnd/dnd-draggable.js 2007-04-24 17:46:15 UTC (rev 531)
+++ trunk/richfaces/common/src/main/resources/org/richfaces/renderkit/html/scripts/dnd/dnd-draggable.js 2007-04-24 17:46:45 UTC (rev 532)
@@ -80,54 +80,80 @@
},
startDrag : function(event) {
- var type = this.getContentType();
+ var contentType = this.getContentType();
- if (type) {
-
- var indicator = this.getIndicator();
- var drag = new DnD.Drag(this, indicator, type);
-
- if (indicator.id.indexOf("_rfDefaultDragIndicator") != -1) {
- var target = drag.source.getElement();
- var offSets = Position.cumulativeOffset(target);
- indicator.indicatorWidth = Element.getWidth(target);
- indicator.indicatorHeight = Element.getHeight(target);
- indicator.position(offSets[0], offSets[1]);
- indicator.removalX = Event.pointerX(event) - offSets[0];
- indicator.removalY = Event.pointerY(event) - offSets[1];
+ if (contentType) {
+ if (typeof this.lastDragX == "undefined" || typeof this.lastDragY == "undefined") {
+ this.lastDragX = Event.pointerX(event);
+ this.lastDragY = Event.pointerY(event);
+
+ // prevent text selection in IE
+ this.onSelectStartHandler = document.onselectstart;
+ this.onDragStartHandler = document.ondragstart;
+
+ document.onselectstart = function () { return false; };
+ document.ondragstart = function () { DnD.ieReleaseCapture(); return false; };
+
+ if (document.releaseCapture) {
+ Event.observe(document, "mousemove", DnD.ieReleaseCapture);
+ }
+
+ return false;
+ } else {
+ var x = Event.pointerX(event);
+ var y = Event.pointerY(event);
+
+ if ((Math.abs(this.lastDragX - x) + Math.abs(this.lastDragY - y)) > 3) {
+ this.updateDrag(event);
+
+ return true;
+ }
+
+ return false;
}
+ } else {
+ return true;
+ }
+ },
+
+ updateDrag : function(event) {
+ var type = this.getContentType();
+ var indicator = this.getIndicator();
+ var drag = new DnD.Drag(this, indicator, type);
- DnD.startDrag(drag);
- DnD.updateDrag(event);
- this.ondragstart(event, drag);
- if (indicator) {
- indicator.show();
- }
+ if (indicator.id.indexOf("_rfDefaultDragIndicator") != -1) {
+ var target = drag.source.getElement();
+ var offSets = Position.cumulativeOffset(target);
+ indicator.indicatorWidth = Element.getWidth(target);
+ indicator.indicatorHeight = Element.getHeight(target);
+ indicator.position(offSets[0], offSets[1]);
+ indicator.removalX = Event.pointerX(event) - offSets[0];
+ indicator.removalY = Event.pointerY(event) - offSets[1];
+ }
+
+ DnD.startDrag(drag);
+ DnD.updateDrag(event);
+ this.ondragstart(event, drag);
+ if (indicator) {
+ indicator.show();
+ }
- if( this.options && this.options.ondragstart) {
- this.options.ondragstart();
- }
+ if( this.options && this.options.ondragstart) {
+ this.options.ondragstart();
+ }
// cancel out any text selections
//document.body.focus();
- // prevent text selection in IE
- this.onSelectStartHandler = document.onselectstart;
- this.onDragStartHandler = document.ondragstart;
-
- document.onselectstart = function () { return false; };
- document.ondragstart = function () { DnD.ieReleaseCapture(); return false; };
-
- if (document.releaseCapture) {
- Event.observe(document, "mousemove", DnD.ieReleaseCapture);
- }
- }
},
/**
*
* @param {DnD.Drag} drag
*/
endDrag: function(event, drag) {
+ this.lastDragX = undefined;
+ this.lastDragY = undefined;
+
document.onselectstart = this.onSelectStartHandler;
document.ondragstart = this.onDragStartHandler;
@@ -139,6 +165,7 @@
if (indicator) {
indicator.hide();
}
+
this.ondragend(event, drag);
if( this.options && this.options.ondragend) {
Modified: trunk/richfaces/drag-drop/src/main/resources/org/richfaces/renderkit/html/scripts/simple-draggable.js
===================================================================
--- trunk/richfaces/drag-drop/src/main/resources/org/richfaces/renderkit/html/scripts/simple-draggable.js 2007-04-24 17:46:15 UTC (rev 531)
+++ trunk/richfaces/drag-drop/src/main/resources/org/richfaces/renderkit/html/scripts/simple-draggable.js 2007-04-24 17:46:45 UTC (rev 532)
@@ -57,17 +57,15 @@
},
listenDrag: function(e) {
- if (!this.dragStarted) {
- this.startDrag(e);
-
+ if (this.startDrag(e)) {
Event.stopObserving(this.id, "mousemove", this.listenDragBound);
Event.stopObserving(this.id, "mouseup", this.stopListenDragBound);
- this.dragStarted = true;
+ //this.dragStarted = true;
}
},
stopListenDrag: function(e) {
- this.dragStarted = false;
+ //this.dragStarted = false;
Event.stopObserving(this.id, "mousemove", this.listenDragBound);
Event.stopObserving(this.id, "mouseup", this.stopListenDragBound);
Modified: trunk/richfaces/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-item.js
===================================================================
--- trunk/richfaces/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-item.js 2007-04-24 17:46:15 UTC (rev 531)
+++ trunk/richfaces/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-item.js 2007-04-24 17:46:45 UTC (rev 532)
@@ -283,16 +283,12 @@
},
listenDrag: function(e) {
- if (!this.dragStarted) {
- this.initDrag(e);
-
+ if (this.startDrag(e)) {
Event.stopObserving(this.elements.icon, "mousemove", this.listenDragBound);
Event.stopObserving(this.elements.text, "mousemove", this.listenDragBound);
Event.stopObserving(this.elements.icon, "mouseup", this.stopListenDragBound);
Event.stopObserving(this.elements.text, "mouseup", this.stopListenDragBound);
-
- this.dragStarted = true;
}
},
@@ -301,16 +297,10 @@
this.fireSelectEvent();
}
- this.dragStarted = false;
-
Event.stopObserving(this.elements.icon, "mousemove", this.listenDragBound);
Event.stopObserving(this.elements.text, "mousemove", this.listenDragBound);
Event.stopObserving(this.elements.icon, "mouseup", this.stopListenDragBound);
Event.stopObserving(this.elements.text, "mouseup", this.stopListenDragBound);
- },
-
- initDrag: function(event) {
- this.startDrag(event);
}
}
17 years, 8 months
JBoss Rich Faces SVN: r531 - trunk/sandbox/sandbox-samples.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-04-24 13:46:15 -0400 (Tue, 24 Apr 2007)
New Revision: 531
Removed:
trunk/sandbox/sandbox-samples/pom.xml
Log:
Deleted: trunk/sandbox/sandbox-samples/pom.xml
===================================================================
--- trunk/sandbox/sandbox-samples/pom.xml 2007-04-24 17:41:03 UTC (rev 530)
+++ trunk/sandbox/sandbox-samples/pom.xml 2007-04-24 17:46:15 UTC (rev 531)
@@ -1,237 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.richfaces</groupId>
- <artifactId>sandbox-samples</artifactId>
- <packaging>pom</packaging>
- <name>RichFaces Components Examples</name>
- <version>3.0.1-SNAPSHOT</version>
- <url>http://labs.jboss.com/jbossrichfaces/samples</url>
-
- <!-- Profile to run jetty, so the tomcat jars are included in the bundle. They are not included by default -->
- <build>
- <plugins>
- <plugin>
- <groupId>org.mortbay.jetty</groupId>
- <artifactId>maven-jetty-plugin</artifactId>
- <version>6.1.1</version>
- <configuration>
- <scanIntervalSeconds>10</scanIntervalSeconds>
- <connectors>
- <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
- <port>8080</port>
- <maxIdleTime>60000</maxIdleTime>
- </connector>
- </connectors>
- </configuration>
-
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <skip>true</skip>
- </configuration>
- <executions>
- <execution>
- <id>surefire-it</id>
- <phase>integration-test</phase>
- <goals>
- <goal>test</goal>
- </goals>
- <configuration>
- <skip>false</skip>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
-
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.ajax4jsf</groupId>
- <artifactId>ajax4jsf</artifactId>
- <version>1.1.1-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>com.sun.facelets</groupId>
- <artifactId>jsf-facelets</artifactId>
- <version>1.1.12</version>
- </dependency>
- <dependency>
- <groupId>javax.el</groupId>
- <artifactId>el-api</artifactId>
- <version>1.0</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>el-impl</groupId>
- <artifactId>el-impl</artifactId>
- <version>1.0</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>jstl</artifactId>
- <version>1.0</version>
- <scope>runtime</scope>
- </dependency>
- </dependencies>
-
- <scm>
- <connection>
- scm:svn:http://anonsvn.jboss.org/repos/richfaces/
- </connection>
- <developerConnection>
- scm:svn:https://svn.jboss.org/repos/richfaces/
- </developerConnection>
- <url>http://anonsvn.jboss.org/repos/richfaces/</url>
- </scm>
-
- <distributionManagement>
- <downloadUrl>http://labs.jboss.com/portal/jbossrichfaces/downloads</downloadUrl>
- <repository>
- <id>release-repository</id>
- <uniqueVersion>false</uniqueVersion>
- <url>${releaseRepository}</url>
- </repository>
- <snapshotRepository>
- <id>snap-repository</id>
- <uniqueVersion>true</uniqueVersion>
- <url>${snapshotRepository}</url>
- </snapshotRepository>
- </distributionManagement>
- <pluginRepositories>
- <pluginRepository>
- <releases>
- <enabled>false</enabled>
- </releases>
- <snapshots>
- <enabled>true</enabled>
- <updatePolicy>always</updatePolicy>
- </snapshots>
- <id>maven2-snapshots.jboss.org</id>
- <name>Jboss Repository for Maven Snapshots</name>
- <url>http://snapshots.jboss.com/</url>
- </pluginRepository>
- </pluginRepositories>
- <repositories>
- <repository>
- <releases/>
- <snapshots>
- <enabled>false</enabled>
- <updatePolicy>never</updatePolicy>
- </snapshots>
- <id>maven-repository.dev.java.net</id>
- <name>Java.net Repository for Maven</name>
- <url>
- https://maven-repository.dev.java.net/nonav/repository
- </url>
- <layout>legacy</layout>
- </repository>
- <repository>
- <releases>
- <enabled>false</enabled>
- </releases>
- <snapshots>
- <enabled>true</enabled>
- <updatePolicy>always</updatePolicy>
- </snapshots>
- <id>maven2-snapshots.jboss.org</id>
- <name>Jboss Repository for Maven Snapshots</name>
- <url>http://snapshots.jboss.com/</url>
- </repository>
- </repositories>
- <profiles>
- <profile>
- <id>jsf12</id>
- <build>
- <defaultGoal>jetty:run</defaultGoal>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>2.0</version>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- </configuration>
- </plugin>
- </plugins>
- </build>
- <dependencies>
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>servlet-api</artifactId>
- <version>2.5</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>javax.servlet.jsp</groupId>
- <artifactId>jsp-api</artifactId>
- <version>2.1</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>javax.faces</groupId>
- <artifactId>jsf-api</artifactId>
- <version>1.2_03</version>
- </dependency>
- <dependency>
- <groupId>javax.faces</groupId>
- <artifactId>jsf-impl</artifactId>
- <version>1.2_03</version>
- <scope>runtime</scope>
- </dependency>
- </dependencies>
- </profile>
- <profile>
- <id>myfaces</id>
- <properties>
- <myfaces>1.1.5</myfaces>
- <tomahawk>1.1.5</tomahawk>
- </properties>
- <build>
- <plugins/>
- </build>
- <dependencies>
- <dependency>
- <groupId>org.ajax4jsf</groupId>
- <artifactId>ajax4jsf</artifactId>
- <version>1.1.1-SNAPSHOT</version>
- <exclusions>
- <exclusion>
- <groupId>javax.faces</groupId>
- <artifactId>jsf-api</artifactId>
- </exclusion>
- <exclusion>
- <groupId>javax.faces</groupId>
- <artifactId>jsf-impl</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.apache.myfaces.core</groupId>
- <artifactId>myfaces-api</artifactId>
- <version>${myfaces}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.myfaces.core</groupId>
- <artifactId>myfaces-impl</artifactId>
- <version>${myfaces}</version>
- <scope>runtime</scope>
- </dependency>
- </dependencies>
- </profile>
- </profiles>
- <modules>
- <module>scrollable-grid-demo</module>
- </modules>
-</project>
\ No newline at end of file
17 years, 8 months
JBoss Rich Faces SVN: r528 - trunk/sandbox/sandbox-samples.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-04-24 13:24:10 -0400 (Tue, 24 Apr 2007)
New Revision: 528
Modified:
trunk/sandbox/sandbox-samples/
Log:
Property changes on: trunk/sandbox/sandbox-samples
___________________________________________________________________
Name: svn:ignore
+ .classpath
.project
17 years, 8 months
JBoss Rich Faces SVN: r527 - trunk/richfaces/assembly.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-04-24 13:21:31 -0400 (Tue, 24 Apr 2007)
New Revision: 527
Added:
trunk/richfaces/assembly/build.properties.template
trunk/richfaces/assembly/build.xml
trunk/richfaces/assembly/cenquatasks.jar
Modified:
trunk/richfaces/assembly/
Log:
Ant build file to clover assembled sources
Property changes on: trunk/richfaces/assembly
___________________________________________________________________
Name: svn:ignore
- target
.classpath
.project
.settings
+ target
.classpath
.project
.settings
build.properties
Added: trunk/richfaces/assembly/build.properties.template
===================================================================
--- trunk/richfaces/assembly/build.properties.template (rev 0)
+++ trunk/richfaces/assembly/build.properties.template 2007-04-24 17:21:31 UTC (rev 527)
@@ -0,0 +1 @@
+M2_REPO=~/.m2/repository
\ No newline at end of file
Added: trunk/richfaces/assembly/build.xml
===================================================================
--- trunk/richfaces/assembly/build.xml (rev 0)
+++ trunk/richfaces/assembly/build.xml 2007-04-24 17:21:31 UTC (rev 527)
@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- WARNING: Eclipse auto-generated file.
+ Any modifications will be overwritten.
+ To include a user specific buildfile here, simply create one in the same
+ directory with the processing instruction <?eclipse.ant.import?>
+ as the first entry and export the buildfile again. -->
+<project basedir="." default="build" name="common">
+ <property environment="env"/>
+ <property file="build.properties" />
+ <property name="CLOVER" value="${M2_REPO}/com/cenqua/clover/clover/1.3.13/clover-1.3.13.jar" />
+
+ <taskdef resource="com/cenqua/ant/antlib.xml" classpath="cenquatasks.jar"/>
+ <extendclasspath path="${CLOVER}" />
+ <taskdef resource="clovertasks" classpath="${CLOVER}" />
+
+ <path id="common.classpath">
+ <pathelement location="${CLOVER}"/>
+ <pathelement location="target/classes"/>
+ <pathelement location="target/test-classes"/>
+ <pathelement location="${M2_REPO}/opensymphony/oscache/2.3/oscache-2.3.jar"/>
+ <pathelement location="${M2_REPO}/org/ajax4jsf/test/1.1.1-SNAPSHOT/test-1.1.1-SNAPSHOT.jar"/>
+ <pathelement location="${M2_REPO}/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar"/>
+ <pathelement location="${M2_REPO}/jaxen/jaxen/1.1-beta-11/jaxen-1.1-beta-11.jar"/>
+ <pathelement location="${M2_REPO}/org/ccil/cowan/tagsoup/tagsoup/0.9.7/tagsoup-0.9.7.jar"/>
+ <pathelement location="${M2_REPO}/xerces/xmlParserAPIs/2.6.2/xmlParserAPIs-2.6.2.jar"/>
+ <pathelement location="${M2_REPO}/org/apache/shale/shale-test/1.0.4/shale-test-1.0.4.jar"/>
+ <pathelement location="${M2_REPO}/commons-lang/commons-lang/2.1/commons-lang-2.1.jar"/>
+ <pathelement location="${M2_REPO}/jdom/jdom/1.0/jdom-1.0.jar"/>
+ <pathelement location="${M2_REPO}/xml-apis/xml-apis/1.3.02/xml-apis-1.3.02.jar"/>
+ <pathelement location="${M2_REPO}/javax/el/el-api/1.0/el-api-1.0.jar"/>
+ <pathelement location="${M2_REPO}/commons-io/commons-io/1.2/commons-io-1.2.jar"/>
+ <pathelement location="${M2_REPO}/javax/servlet/servlet-api/2.4/servlet-api-2.4.jar"/>
+ <pathelement location="${M2_REPO}/el-impl/el-impl/1.0/el-impl-1.0.jar"/>
+ <pathelement location="${M2_REPO}/xalan/xalan/2.6.0/xalan-2.6.0.jar"/>
+ <pathelement location="${M2_REPO}/xerces/xercesImpl/2.6.2/xercesImpl-2.6.2.jar"/>
+ <pathelement location="${M2_REPO}/com/ibm/icu/icu4j/2.6.1/icu4j-2.6.1.jar"/>
+ <pathelement location="${M2_REPO}/com/sun/facelets/jsf-facelets/1.1.11/jsf-facelets-1.1.11.jar"/>
+ <pathelement location="${M2_REPO}/javax/servlet/jstl/1.0/jstl-1.0.jar"/>
+ <pathelement location="${M2_REPO}/xom/xom/1.0b3/xom-1.0b3.jar"/>
+ <pathelement location="${M2_REPO}/commons-digester/commons-digester/1.5/commons-digester-1.5.jar"/>
+ <pathelement location="${M2_REPO}/commons-httpclient/commons-httpclient/3.0.1/commons-httpclient-3.0.1.jar"/>
+ <pathelement location="${M2_REPO}/javax/servlet/jsp-api/2.0/jsp-api-2.0.jar"/>
+ <pathelement location="${M2_REPO}/org/ajax4jsf/ajax4jsf/1.1.1-SNAPSHOT/ajax4jsf-1.1.1-SNAPSHOT.jar"/>
+ <pathelement location="${M2_REPO}/javax/faces/jsf-api/1.1_02/jsf-api-1.1_02.jar"/>
+ <pathelement location="${M2_REPO}/nekohtml/nekohtml/0.9.5/nekohtml-0.9.5.jar"/>
+ <pathelement location="${M2_REPO}/htmlunit/htmlunit/1.10/htmlunit-1.10.jar"/>
+ <pathelement location="${M2_REPO}/commons-beanutils/commons-beanutils/1.6/commons-beanutils-1.6.jar"/>
+ <pathelement location="${M2_REPO}/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar"/>
+ <pathelement location="${M2_REPO}/junit/junit/3.8.1/junit-3.8.1.jar"/>
+ <pathelement location="${M2_REPO}/commons-collections/commons-collections/3.0/commons-collections-3.0.jar"/>
+ <pathelement location="${M2_REPO}/commons-codec/commons-codec/1.3/commons-codec-1.3.jar"/>
+ <pathelement location="${M2_REPO}/rhino/js/1.6R2/js-1.6R2.jar"/>
+ <pathelement location="${M2_REPO}/javax/faces/jsf-impl/1.1_02/jsf-impl-1.1_02.jar"/>
+ </path>
+ <target name="init" depends="clean">
+ <mkdir dir="target/clover/classes"/>
+ <clover-clean initstring="target/clover/clover.db" keepdb="false"/>
+ <clover-setup initstring="target/clover/clover.db" flushpolicy="interval" flushinterval="1000">
+ <fileset dir="target/src" includes="**/*.java"/>
+ </clover-setup>
+ <copy includeemptydirs="false" todir="target/clover/classes">
+ <fileset dir="target/classes" excludes="**/*.launch, **/*.java, **/*.class"/>
+ </copy>
+ <copy includeemptydirs="false" todir="target/clover/classes">
+ <fileset dir="target/src" excludes="**/*.launch, **/*.java"/>
+ </copy>
+ <copy includeemptydirs="false" todir="target/clover/classes">
+ <fileset dir="target/src" excludes="**/*.launch, **/*.java"/>
+ </copy>
+ </target>
+ <target name="clean">
+ <delete dir="target/clover/classes"/>
+ <delete file="target/clover/richfaces-clovered.jar"/>
+ </target>
+ <target depends="clean" name="cleanall"/>
+ <target depends="build-project" name="build"/>
+ <target depends="init" name="build-project">
+ <echo message="${ant.project.name}: ${ant.file}"/>
+
+ <javac source="1.4" srcdir="target/src" classpathref="common.classpath" debug="true" debuglevel="source,lines,vars" destdir="target/clover/classes" />
+
+ <jar destfile="target/clover/richfaces-clovered.jar">
+ <fileset dir="target/clover/classes" />
+ </jar>
+ </target>
+</project>
Added: trunk/richfaces/assembly/cenquatasks.jar
===================================================================
(Binary files differ)
Property changes on: trunk/richfaces/assembly/cenquatasks.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
17 years, 8 months
JBoss Rich Faces SVN: r526 - trunk/sandbox/sandbox-samples/scrollable-grid-demo/.settings.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-04-24 13:20:51 -0400 (Tue, 24 Apr 2007)
New Revision: 526
Modified:
trunk/sandbox/sandbox-samples/scrollable-grid-demo/.settings/
Log:
Property changes on: trunk/sandbox/sandbox-samples/scrollable-grid-demo/.settings
___________________________________________________________________
Name: svn:ignore
+ org.eclipse.wst.common.component
org.eclipse.wst.common.project.facet.core.xml
17 years, 8 months