JBoss Rich Faces SVN: r2765 - trunk/test-applications.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-09-05 09:06:14 -0400 (Wed, 05 Sep 2007)
New Revision: 2765
Modified:
trunk/test-applications/pom.xml
Log:
local property renamed in pom.xml
Modified: trunk/test-applications/pom.xml
===================================================================
--- trunk/test-applications/pom.xml 2007-09-05 13:03:08 UTC (rev 2764)
+++ trunk/test-applications/pom.xml 2007-09-05 13:06:14 UTC (rev 2765)
@@ -47,7 +47,7 @@
<name>RichFaces Test Applications</name>
<properties>
- <rfVersionSuffix>3.1.0-rc4</rfVersionSuffix>
+ <rfVersion>3.1.0-rc4</rfVersion>
</properties>
<modules>
@@ -59,7 +59,7 @@
<dependency>
<artifactId>richfaces-ui</artifactId>
<groupId>org.richfaces.ui</groupId>
- <version>${rfVersionSuffix}</version>
+ <version>${rfVersion}</version>
</dependency>
<dependency>
@@ -67,19 +67,19 @@
<artifactId>core</artifactId>
- <version>${rfVersionSuffix}</version>
+ <version>${rfVersion}</version>
<scope>provided</scope>
</dependency>
<dependency>
<artifactId>richfaces-impl</artifactId>
<groupId>org.richfaces.framework</groupId>
- <version>${rfVersionSuffix}</version>
+ <version>${rfVersion}</version>
</dependency>
<dependency>
<artifactId>richfaces-api</artifactId>
<groupId>org.richfaces.framework</groupId>
- <version>${rfVersionSuffix}</version>
+ <version>${rfVersion}</version>
</dependency>
</dependencies>
</project>
\ No newline at end of file
16 years, 8 months
JBoss Rich Faces SVN: r2764 - trunk/test-applications.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-09-05 09:03:08 -0400 (Wed, 05 Sep 2007)
New Revision: 2764
Modified:
trunk/test-applications/pom.xml
Log:
test-applications/pom.xml corrected
Modified: trunk/test-applications/pom.xml
===================================================================
--- trunk/test-applications/pom.xml 2007-09-05 12:42:22 UTC (rev 2763)
+++ trunk/test-applications/pom.xml 2007-09-05 13:03:08 UTC (rev 2764)
@@ -43,9 +43,13 @@
<groupId>org.richfaces</groupId>
<artifactId>test-applications</artifactId>
<packaging>pom</packaging>
- <version>3.1.0-20070829.104728-1</version>
+ <version>3.1.0-SNAPSHOT</version>
<name>RichFaces Test Applications</name>
+ <properties>
+ <rfVersionSuffix>3.1.0-rc4</rfVersionSuffix>
+ </properties>
+
<modules>
<module>jsp</module>
<module>facelets</module>
@@ -55,22 +59,27 @@
<dependency>
<artifactId>richfaces-ui</artifactId>
<groupId>org.richfaces.ui</groupId>
- <version>${project.version}</version>
+ <version>${rfVersionSuffix}</version>
</dependency>
- <dependency>
- <artifactId>core</artifactId>
- <groupId>org.richfaces.ui</groupId>
- <version>${project.version}</version>
+ <dependency>
+
+ <groupId>org.richfaces.ui</groupId>
+
+ <artifactId>core</artifactId>
+
+ <version>${rfVersionSuffix}</version>
+ <scope>provided</scope>
+
</dependency>
<dependency>
<artifactId>richfaces-impl</artifactId>
<groupId>org.richfaces.framework</groupId>
- <version>${project.version}</version>
+ <version>${rfVersionSuffix}</version>
</dependency>
<dependency>
<artifactId>richfaces-api</artifactId>
<groupId>org.richfaces.framework</groupId>
- <version>${project.version}</version>
+ <version>${rfVersionSuffix}</version>
</dependency>
</dependencies>
</project>
\ No newline at end of file
16 years, 8 months
JBoss Rich Faces SVN: r2763 - trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/paint2d.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2007-09-05 08:42:22 -0400 (Wed, 05 Sep 2007)
New Revision: 2763
Modified:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/paint2d/PaintBean.java
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/paint2d/PaintData.java
Log:
http://jira.jboss.com/jira/browse/RF-830
Modified: trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/paint2d/PaintBean.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/paint2d/PaintBean.java 2007-09-05 11:59:00 UTC (rev 2762)
+++ trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/paint2d/PaintBean.java 2007-09-05 12:42:22 UTC (rev 2763)
@@ -23,7 +23,7 @@
int x = 10;
int y = fontSize*5/2;
g2d.translate(x, y);
- Color color = new Color(data.color );
+ Color color = new Color((int) data.color );
g2d.setPaint(new Color(color.getRed(),color.getGreen(), color.getBlue(), 30));
AffineTransform origTransform = g2d.getTransform();
Modified: trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/paint2d/PaintData.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/paint2d/PaintData.java 2007-09-05 11:59:00 UTC (rev 2762)
+++ trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/paint2d/PaintData.java 2007-09-05 12:42:22 UTC (rev 2763)
@@ -4,12 +4,12 @@
public class PaintData implements Serializable{
String text;
- int color;
+ long color;
float scale;
- public int getColor() {
+ public long getColor() {
return color;
}
- public void setColor(int color) {
+ public void setColor(long color) {
this.color = color;
}
public float getScale() {
16 years, 8 months
JBoss Rich Faces SVN: r2762 - trunk/test-applications.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-09-05 07:59:00 -0400 (Wed, 05 Sep 2007)
New Revision: 2762
Modified:
trunk/test-applications/pom.xml
Log:
Changes in pom file for test-applications:
- JBoss snapshots repository added
- Implicit version dependency added for ui.core, ui, impl, api
Modified: trunk/test-applications/pom.xml
===================================================================
--- trunk/test-applications/pom.xml 2007-09-05 11:08:33 UTC (rev 2761)
+++ trunk/test-applications/pom.xml 2007-09-05 11:59:00 UTC (rev 2762)
@@ -7,39 +7,43 @@
</parent>
<repositories>
-
<repository>
-
<releases>
-
<enabled>true</enabled>
-
</releases>
<snapshots>
-
<enabled>true</enabled>
-
<updatePolicy>always</updatePolicy>
-
</snapshots>
<id>maven2-snapshots.exadel.com</id>
-
<name>Exadel Repository for Maven Snapshots</name>
-
<url>http://maven.exadel.com/</url>
-
<layout>default</layout>
-
</repository>
-
+ <repository>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+
+ <snapshots>
+ <enabled>true</enabled>
+ <updatePolicy>always</updatePolicy>
+ </snapshots>
+
+ <id>snapshots.jboss.org</id>
+ <name>JBoss snapshots repository</name>
+ <url>http://snapshots.jboss.org/maven2/</url>
+ <layout>default</layout>
+ </repository>
</repositories>
<modelVersion>4.0.0</modelVersion>
<groupId>org.richfaces</groupId>
<artifactId>test-applications</artifactId>
<packaging>pom</packaging>
+ <version>3.1.0-20070829.104728-1</version>
<name>RichFaces Test Applications</name>
<modules>
@@ -51,7 +55,22 @@
<dependency>
<artifactId>richfaces-ui</artifactId>
<groupId>org.richfaces.ui</groupId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>${project.version}</version>
</dependency>
+ <dependency>
+ <artifactId>core</artifactId>
+ <groupId>org.richfaces.ui</groupId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <artifactId>richfaces-impl</artifactId>
+ <groupId>org.richfaces.framework</groupId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <artifactId>richfaces-api</artifactId>
+ <groupId>org.richfaces.framework</groupId>
+ <version>${project.version}</version>
+ </dependency>
</dependencies>
</project>
\ No newline at end of file
16 years, 8 months
JBoss Rich Faces SVN: r2761 - trunk/ui/treeModel/src/test/java/org/richfaces/component.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-09-05 07:08:33 -0400 (Wed, 05 Sep 2007)
New Revision: 2761
Modified:
trunk/ui/treeModel/src/test/java/org/richfaces/component/TreeModelComponentTest.java
Log:
"root" attribute changed to "roots"
Modified: trunk/ui/treeModel/src/test/java/org/richfaces/component/TreeModelComponentTest.java
===================================================================
--- trunk/ui/treeModel/src/test/java/org/richfaces/component/TreeModelComponentTest.java 2007-09-05 10:50:06 UTC (rev 2760)
+++ trunk/ui/treeModel/src/test/java/org/richfaces/component/TreeModelComponentTest.java 2007-09-05 11:08:33 UTC (rev 2761)
@@ -138,7 +138,7 @@
UIRecursiveTreeNodes directories = (UIRecursiveTreeNodes) application.createComponent(UIRecursiveTreeNodes.COMPONENT_TYPE);
directories.setVar("dir");
- directories.setValueBinding("root", application.createValueBinding("#{XPathMap['$project/directory']}"));
+ directories.setValueBinding("roots", application.createValueBinding("#{XPathMap['$project/directory']}"));
directories.setValueBinding("nodes", application.createValueBinding("#{XPathMap['$dir/directory']}"));
directories.getChildren().add(createOutput("#{XPathStringMap['$dir/@id']}"));
directories.setId("dir");
@@ -155,7 +155,7 @@
UIRecursiveTreeNodes archives = (UIRecursiveTreeNodes) application.createComponent(UIRecursiveTreeNodes.COMPONENT_TYPE);
archives.setVar("archiveEntry");
- archives.setValueBinding("root", application.createValueBinding("#{XPathMap['$dir/archive']}"));
+ archives.setValueBinding("roots", application.createValueBinding("#{XPathMap['$dir/archive']}"));
archives.setValueBinding("nodes", application.createValueBinding("#{XPathMap['$archiveEntry/archiveEntry']}"));
archives.getChildren().add(createOutput("#{XPathStringMap['$archiveEntry/@id']}"));
archives.setId("archives");
16 years, 8 months
JBoss Rich Faces SVN: r2760 - trunk/samples/richfaces-demo/src/main/webapp/richfaces/calendar.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2007-09-05 06:50:06 -0400 (Wed, 05 Sep 2007)
New Revision: 2760
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/calendar/jsAPI.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/calendar/model.xhtml
Log:
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/calendar/jsAPI.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/calendar/jsAPI.xhtml 2007-09-05 09:57:22 UTC (rev 2759)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/calendar/jsAPI.xhtml 2007-09-05 10:50:06 UTC (rev 2760)
@@ -11,24 +11,62 @@
<p>
Calendar object JavaScript API supports the following calls:
<ul>
- <li><b>selectDate(date)</b> selects the date specified. If the date isn't in current
- month, performs request to select</li>
- <li><b>isDateEnabled(date)</b> checks if given date is selectable</li>
- <li><b>enableDate(date)</b> enables the given date</li>
- <li><b>disableDate(date)</b> disables the given date</li>
- <li><b>enableDates(date[])</b> enables the set of dates</li>
- <li><b>disableDates(daye[])</b> disables the set of dates</li>
- <li><b>nextMonth()</b> navigates to next month</li>
- <li><b>nextYear()</b> navigates to next year</li>
- <li><b>prevMonth()</b> navigates to previous month </li>
- <li><b>prevYear()</b> navigates to previous year</li>
- <li><b>today()</b> selects today date</li>
- <li><b>getSelectedDate()</b> returns currently selected date</li>
- <li><b>Object getData()</b> gets the current selected date</li>
- <li><b>enable()</b> enables the whole calendar</li>
- <li><b>disable()</b> disables (makes it read-only) the whole calendar </li>
- <li><b>getCurrentMonth()</b> returns number of the month currently being viewed</li>
- <li><b>getCurrentYear()</b> returns number of the year currently being viewed</li>
+ <li>
+ <b>getCurrentDate()</b> returns the full date currently being viewed
+ </li>
+ <li>
+ <b>getCurrentMonth(asMonthLabel)</b> returns number of the month currently being viewed(for <b>asMonthLabel</b> true - returns month as its label)
+ </li>
+ <li>
+ <b>getCurrentYear()</b> returns number of the year currently being viewed
+ </li>
+ <li>
+ <b>changeCurrentDate(yearOffset, monthOffset)</b> sets new current month to be displayed.
+ </li>
+ <li>
+ <b>doCollapse(), doExpand()</b> collapse or expand calendar in popup mode.
+ </li>
+ <li>
+ <b>doSwitch()</b> inverts state for the popup calendar.
+ </li>
+ <li>
+ <b>getNextMonth(asMonthLabel), getPreviousMonth(asMonthLabel)</b> returns previous and next month for the currently being viewed.
+ </li>
+ <li>
+ <b>getNextYear, getPreviousYear</b> returns previous and next Years for the currently being viewed.
+ </li>
+ <li>
+ <b>getSelectedDate(), getSelectedDateString(pattern)</b> returns currently selected date as date or as String. In case of empty pattern - return in current locale pattern.
+ </li>
+ <li>
+ <b>nextMonth()</b> navigates to next month
+ </li>
+ <li>
+ <b>nextYear()</b> navigates to next year
+ </li>
+ <li>
+ <b>prevMonth()</b> navigates to previous month
+ </li>
+ <li>
+ <b>prevYear()</b> navigates to previous year
+ </li>
+ <li>
+ <b>render(), renderFooter(), renderOptionalFooter(), renderHeader(), renderOptionalHeader()</b> - functions to initiate cliend side rendering of the calendar or additional elements.
+
+ </li>
+ <li>
+ <b>resetSelectedDate()</b> - clears selected day value.
+ </li>
+ <li>
+ <b>selectDate(date, noUpdate, eventData)</b> selects the date specified. If the date isn't in current
+ month, performs request to select. if noUpdate true - request will not fired for data - only client side rendering will be invoked.
+ </li>
+ <li>
+ <b>showSelectedDate()</b> switch calendar to show currently selected date.
+ </li>
+ <li>
+ <b>today(noUpdate, noHighlight)</b> switch calendar to todayDate. If parameters - true, request will not be fired to switch, and additional highlighting will be off.
+ </li>
</ul>
</p>
<p>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/calendar/model.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/calendar/model.xhtml 2007-09-05 09:57:22 UTC (rev 2759)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/calendar/model.xhtml 2007-09-05 10:50:06 UTC (rev 2760)
@@ -1,49 +1,52 @@
-<!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:ui="http://java.sun.com/jsf/facelets"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:a4j="http://richfaces.org/a4j"
- xmlns:rich="http://richfaces.org/rich">
- <ui:composition template="/templates/component-sample.xhtml">
- <ui:define name="sample">
-
- <p>Calendar may use a special Data Model to provide data for element rendering. You
- can re-define the default Calendar Model using the <b>dataModel</b> attribute pointed
- to the object that implements CalendarDataModel interface.
- </p>
- <p>
- CalendarDataModel has the following methods:
- <ul>
- <li><b>CalendarDataModelItem[] getData(Date[]) </b>
- is called every time when components will need next block of
- CalendarDataItems. That may happens when calendar rendered, or when user navigate
- to next(previous) month or in any other case when calendar renders. This method
- will be called in Ajax mode when Calendar renders new page.</li>
- <li><b>Object getToolTip(Date)</b> uses when tool tips are displayed in "single" mode.</li>
- </ul>
- </p>
- <p>
- CalendarDataModelItem provides the following methods:
-
- <ul>
- <li><b>Date getDate()</b> returns date that this item for, default implementation return Date</li>
- <li><b>Boolean isEnabled()</b> returns true if date is "selectable" on calendar, default
- implementation return true</li>
- <li><b>String getStyleClass()</b> returns String that will be appended to style class for
- that date span. For example it may be "relevant holyday" that mean class will
- be like "rich-cal-day relevant holyday". Default implementation return empty string.</li>
- <li><b>Object getData()</b> returns any additional payload that must be JSON-serialazable
- object. May be used in custom date representation on calendar (inside custom facet).</li>
- <li><b>Boolean hasToolTip()</b> returns true if given date has an associated with
- it tooltip data. Default implementation return false.</li>
- <li><b>Object getToolTip()</b> returns tool tip data that will be used in "batch" tooltip
- loading mode.</li>
- </ul>
- </p>
-
-
- </ui:define>
-
- </ui:composition>
-</html>
+<!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:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+<ui:composition template="/templates/component-sample.xhtml">
+ <ui:define name="sample">
+
+ <p>Calendar may use a special Data Model to provide data for
+ element rendering. You can re-define the default Calendar Model using
+ the <b>dataModel</b> attribute pointed to the object that implements
+ CalendarDataModel interface.</p>
+ <p>CalendarDataModel has the following methods:
+ <ul>
+ <li><b>CalendarDataModelItem[] getData(Date[]) </b> is called
+ every time when components will need next block of CalendarDataItems.
+ That may happens when calendar rendered, or when user navigate to
+ next(previous) month or in any other case when calendar renders. This
+ method will be called in Ajax mode when Calendar renders new page.</li>
+ <li><b>Object getToolTip(Date)</b> uses when tool tips are
+ displayed in "single" mode.</li>
+ </ul>
+ </p>
+ <p>CalendarDataModelItem provides the following methods:
+ <ul>
+ <li><b>Boolean isEnabled()</b> returns true if date is
+ "selectable" on calendar, default implementation return true</li>
+ <li><b>String getStyleClass()</b> returns String that will be
+ appended to style class for that date span. For example it may be
+ "relevant holyday" that mean class will be like "rich-cal-day
+ relevant holyday". Default implementation return empty string.</li>
+ <li><b>Object getData()</b> returns any additional payload that
+ must be JSON-serialazable object. May be used in custom date
+ representation on calendar (inside custom facet).</li>
+ <li><b>Boolean hasToolTip()</b> returns true if given date has
+ an associated with it tooltip data. Default implementation return
+ false.</li>
+ <li><b>Object getToolTip()</b> returns tool tip data that will
+ be used in "batch" tooltip loading mode.</li>
+ </ul>
+ </p>
+ <p>
+ <b>Note: </b><i>Tooltips and date disablement isn't supported in current implementation at client side. Will be implemented in next releases.</i>
+ </p>
+
+
+ </ui:define>
+
+</ui:composition>
+</html>
16 years, 8 months
JBoss Rich Faces SVN: r2759 - in trunk/ui/dataTable/src/main: templates/org/richfaces and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2007-09-05 05:57:22 -0400 (Wed, 05 Sep 2007)
New Revision: 2759
Modified:
trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractRowsRenderer.java
trunk/ui/dataTable/src/main/templates/org/richfaces/htmlDataGrid.jspx
Log:
http://jira.jboss.com/jira/browse/RF-821
Modified: trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractRowsRenderer.java
===================================================================
--- trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractRowsRenderer.java 2007-09-05 09:55:41 UTC (rev 2758)
+++ trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractRowsRenderer.java 2007-09-05 09:57:22 UTC (rev 2759)
@@ -28,6 +28,7 @@
import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;
+import org.ajax4jsf.component.SequenceDataAdaptor;
import org.ajax4jsf.component.UIDataAdaptor;
import org.ajax4jsf.model.DataVisitor;
import org.ajax4jsf.renderkit.HeaderResourcesRendererBase;
@@ -135,7 +136,7 @@
encodeRows(context, component);
}
- public void encodeCaption(FacesContext context, UIDataTable table)
+ public void encodeCaption(FacesContext context, SequenceDataAdaptor table)
throws IOException {
ResponseWriter writer = context.getResponseWriter();
UIComponent caption = table.getFacet("caption");
Modified: trunk/ui/dataTable/src/main/templates/org/richfaces/htmlDataGrid.jspx
===================================================================
--- trunk/ui/dataTable/src/main/templates/org/richfaces/htmlDataGrid.jspx 2007-09-05 09:55:41 UTC (rev 2758)
+++ trunk/ui/dataTable/src/main/templates/org/richfaces/htmlDataGrid.jspx 2007-09-05 09:57:22 UTC (rev 2759)
@@ -16,8 +16,9 @@
<table id="#{clientId}"
class="dr-table rich-table #{component.attributes['styleClass']}"
x:passThruWithExclusions="value,name,type,id,class"
- >
- <colgroup span="component.attributes['columns']">
+ >
+ <f:call name="encodeCaption" />
+ <colgroup span="#{component.attributes['columns']}">
</colgroup>
<f:call name="encodeHeader"/>
<f:call name="encodeFooter"/>
16 years, 8 months
JBoss Rich Faces SVN: r2758 - in trunk: framework/impl and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: akushunin
Date: 2007-09-05 05:55:41 -0400 (Wed, 05 Sep 2007)
New Revision: 2758
Added:
trunk/framework/api/build.xml
trunk/framework/impl/build.xml
Modified:
trunk/ui/assembly/build.xml
Log:
build files for clover jar files for tomcat.
Added: trunk/framework/api/build.xml
===================================================================
--- trunk/framework/api/build.xml (rev 0)
+++ trunk/framework/api/build.xml 2007-09-05 09:55:41 UTC (rev 2758)
@@ -0,0 +1,83 @@
+<?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" />
+ <!--!!! Correct .m2 location for current user -->
+ <property name="M2_REPO" value="C:/Documents and Settings/Administrator/.m2/repository"/>
+ <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/richfaces/framework/richfaces-impl/3.1.0-SNAPSHOT/richfaces-impl-3.1.0-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}/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}/javax/faces/jsf-api/1.2_04/jsf-api-1.2_04.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}/org/richfaces/ui/richfaces-ui/3.1.0-SNAPSHOT/richfaces-ui-3.1.0-SNAPSHOT.jar"/>
+ <pathelement location="${M2_REPO}/commons-collections/commons-collections/3.0/commons-collections-3.0.jar"/>
+ <pathelement location="${M2_REPO}/javax/faces/jsf-impl/1.2_04/jsf-impl-1.2_04.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="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="src" excludes="**/*.launch, **/*.java"/>
+ </copy>
+ <copy includeemptydirs="false" todir="target/clover/classes">
+ <fileset dir="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="src" classpathref="common.classpath" debug="true" debuglevel="source,lines,vars" destdir="target/clover/classes" />
+
+ <jar destfile="target/clover/richfaces-clovered-api.jar">
+ <fileset dir="target/clover/classes" />
+ </jar>
+ </target>
+</project>
Property changes on: trunk/framework/api/build.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Added: trunk/framework/impl/build.xml
===================================================================
--- trunk/framework/impl/build.xml (rev 0)
+++ trunk/framework/impl/build.xml 2007-09-05 09:55:41 UTC (rev 2758)
@@ -0,0 +1,91 @@
+<?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" />
+ <!--!!! Correct .m2 location for current user -->
+ <property name="M2_REPO" value="C:/Documents and Settings/Administrator/.m2/repository"/>
+ <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/richfaces/framework/richfaces-api/3.1.0-SNAPSHOT/richfaces-api-3.1.0-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/richfaces/framework/richfaces-impl/3.1.0-SNAPSHOT/richfaces-impl-3.1.0-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"/>
+ <pathelement location="${M2_REPO}/log4j/log4j/1.2.12/log4j-1.2.12.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="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="src" excludes="**/*.launch, **/*.java"/>
+ </copy>
+ <copy includeemptydirs="false" todir="target/clover/classes">
+ <fileset dir="src" excludes="**/*.launch, **/*.java"/>
+ </copy>
+ </target>
+ <target name="clean">
+ <delete dir="target/clover/classes"/>
+ <delete file="target/clover/richfaces-clovered-impl.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="src" classpathref="common.classpath" debug="true" debuglevel="source,lines,vars" destdir="target/clover/classes" />
+
+ <jar destfile="target/clover/richfaces-clovered-impl.jar">
+ <fileset dir="target/clover/classes" />
+ </jar>
+ </target>
+</project>
Property changes on: trunk/framework/impl/build.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Modified: trunk/ui/assembly/build.xml
===================================================================
--- trunk/ui/assembly/build.xml 2007-09-05 09:21:18 UTC (rev 2757)
+++ trunk/ui/assembly/build.xml 2007-09-05 09:55:41 UTC (rev 2758)
@@ -7,6 +7,8 @@
<project basedir="." default="build" name="common">
<property environment="env"/>
<property file="build.properties" />
+ <!--!!! Correct .m2 location for current user -->
+ <property name="M2_REPO" value="C:/Documents and Settings/Administrator/.m2/repository"/>
<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"/>
@@ -18,7 +20,7 @@
<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}/org/richfaces/framework/richfaces-api/3.1.0-SNAPSHOT/richfaces-api-3.1.0-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"/>
@@ -40,7 +42,7 @@
<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}/org/richfaces/framework/richfaces-impl/3.1.0-SNAPSHOT/richfaces-impl-3.1.0-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"/>
@@ -51,6 +53,7 @@
<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"/>
+ <pathelement location="${M2_REPO}/com/uwyn/jhighlight/1.0/jhighlight-1.0.jar"/>
</path>
<target name="init" depends="clean">
<mkdir dir="target/clover/classes"/>
16 years, 8 months
JBoss Rich Faces SVN: r2757 - trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2007-09-05 05:21:18 -0400 (Wed, 05 Sep 2007)
New Revision: 2757
Modified:
trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
Log:
added user defined pattern to getSelectedDateString function instead hardcoded
Modified: trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
===================================================================
--- trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2007-09-05 09:09:23 UTC (rev 2756)
+++ trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2007-09-05 09:21:18 UTC (rev 2757)
@@ -659,7 +659,7 @@
},
getSelectedDateString: function(pattern) {
if (!this.selectedDate) return "";
- if (!pattern) pattern = "dd/MM/yyyy";
+ if (!pattern) pattern = this.params.datePattern;
return this.selectedDate.format(pattern, this.params.monthLabels, this.params.monthLabelsShort);
},
16 years, 8 months
JBoss Rich Faces SVN: r2756 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: vkukharchuk
Date: 2007-09-05 05:09:23 -0400 (Wed, 05 Sep 2007)
New Revision: 2756
Added:
trunk/docs/userguide/en/src/main/docbook/included/dropListener.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/dropListener.xml
Log:
http://jira.jboss.com/jira/browse/RF-809
Added: trunk/docs/userguide/en/src/main/docbook/included/dropListener.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dropListener.desc.xml (rev 0)
+++ trunk/docs/userguide/en/src/main/docbook/included/dropListener.desc.xml 2007-09-05 09:09:23 UTC (rev 2756)
@@ -0,0 +1,22 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<section>
+ <sectioninfo>
+ <keywordset>
+ <keyword>dropListener</keyword>
+ </keywordset>
+ </sectioninfo>
+
+ <section>
+ <title>Description</title>
+ <para>The <emphasis role="bold"><property><rich:dropListener></property></emphasis>
+ represents an action listener method that will be notified after drop operation.
+ </para>
+ </section>
+
+ <section>
+ <title>Key Features</title>
+ <itemizedlist>
+ <listitem>Allows to define some drop listeners for components with "Drag and Drop" support</listitem>
+ </itemizedlist>
+ </section>
+</section>
Added: trunk/docs/userguide/en/src/main/docbook/included/dropListener.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dropListener.xml (rev 0)
+++ trunk/docs/userguide/en/src/main/docbook/included/dropListener.xml 2007-09-05 09:09:23 UTC (rev 2756)
@@ -0,0 +1,111 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<chapter>
+ <table>
+ <title>Component identification parameters </title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Name</entry>
+ <entry>Value</entry>
+ </row>
+ </thead>
+ <tbody>
+
+ <row>
+ <entry>listener-class</entry>
+ <entry>org.richfaces.event.DropListener</entry>
+ </row>
+ <row>
+ <entry>event-class</entry>
+ <entry>org.richfaces.event.DropEvent</entry>
+ </row>
+
+ <row>
+ <entry>tag-class</entry>
+ <entry>org.richfaces.taglib.DropListenerTag</entry>
+ </row>
+
+ </tbody>
+ </tgroup>
+ </table>
+
+
+ <section>
+ <title>Creating on a page</title>
+ <para>Simple Component definition on a page:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+
+ <programlisting role="XML"><![CDATA[...
+ <rich:dropListener type="demo.Bean"/>
+...
+]]></programlisting>
+ </section>
+
+ <section>
+ <title>Dynamical creation of a component from Java code</title>
+ <para>
+ <emphasis role="bold">Example:</emphasis></para>
+ <programlisting role="JAVA"><![CDATA[package demo;
+
+public class ImplBean implements org.richfaces.event.DropListener{
+ ...
+}
+]]></programlisting>
+
+ <programlisting role="JAVA"><![CDATA[
+import demo.ImplBean;
+...
+ImplBean myListener = new ImplBean();
+...
+]]></programlisting>
+
+ </section>
+
+ <section>
+ <title>Key attributes and ways of usage</title>
+
+<para>
+The <property><rich:dropListener></property> is used as nested tag with components like
+<property><rich:dropSupport></property>, <property><rich:tree></property> and <property><rich:treeNode></property>.
+</para>
+<para>
+Attribute <emphasis><property>"type"</property></emphasis> defines the fully qualified Java class name for listener.
+This class should implement org.richfaces.event.DropListener interface.
+</para>
+
+ <para>
+ <emphasis role="bold">The typical variant of using:</emphasis>
+ </para>
+
+ <programlisting role="XML"><![CDATA[...
+<rich:panel style="width:100px;height:100px;">
+ <f:facet name="header">Drop Zone</f:facet>
+ <rich:dropSupport acceptedTypes="text">
+ <rich:dropListener type="demo.ListenerBean"/>
+ </rich:dropSupport>
+</rich:panel>
+...
+]]></programlisting>
+
+ <para>
+ <emphasis role="bold">Java bean source:</emphasis>
+ </para>
+
+ <programlisting role="JAVA"><![CDATA[package demo;
+
+import org.richfaces.event.DropEvent;
+
+public class ListenerBean implements org.richfaces.event.DropListener{
+...
+ public void processDrop(DropEvent arg0){
+ //Custom Developer Code
+ }
+...
+}
+]]></programlisting>
+ </section>
+
+</chapter>
\ No newline at end of file
16 years, 8 months