JBoss Rich Faces SVN: r575 - trunk/sandbox/scrollable-grid/src/main/java/org/richfaces/component.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-04-26 12:03:37 -0400 (Thu, 26 Apr 2007)
New Revision: 575
Modified:
trunk/sandbox/scrollable-grid/src/main/java/org/richfaces/component/UIScrollableGrid.java
Log:
Modified: trunk/sandbox/scrollable-grid/src/main/java/org/richfaces/component/UIScrollableGrid.java
===================================================================
--- trunk/sandbox/scrollable-grid/src/main/java/org/richfaces/component/UIScrollableGrid.java 2007-04-26 16:03:27 UTC (rev 574)
+++ trunk/sandbox/scrollable-grid/src/main/java/org/richfaces/component/UIScrollableGrid.java 2007-04-26 16:03:37 UTC (rev 575)
@@ -3,21 +3,36 @@
*/
package org.richfaces.component;
+import java.util.Iterator;
+
import javax.faces.component.UIComponentBase;
+import org.ajax4jsf.ajax.repeat.DataComponentState;
+import org.ajax4jsf.ajax.repeat.ExtendedDataModel;
+import org.ajax4jsf.ajax.repeat.UIDataAdaptor;
+
/**
* @author Anton Belevich
*
*/
-public class UIScrollableGrid extends UIComponentBase {
+public class UIScrollableGrid extends UIDataAdaptor {
- /* (non-Javadoc)
- * @see javax.faces.component.UIComponent#getFamily()
- */
-
- public String getFamily() {
+ protected Iterator dataChildren() {
+ return null;
+ }
+
+ protected DataComponentState createComponentState() {
// TODO Auto-generated method stub
return null;
}
+ protected ExtendedDataModel createDataModel() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ protected Iterator fixedChildren() {
+ // TODO Auto-generated method stub
+ return null;
+ }
}
17 years, 8 months
JBoss Rich Faces SVN: r574 - trunk/sandbox/scrollable-grid.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-04-26 12:03:27 -0400 (Thu, 26 Apr 2007)
New Revision: 574
Modified:
trunk/sandbox/scrollable-grid/pom.xml
Log:
Modified: trunk/sandbox/scrollable-grid/pom.xml
===================================================================
--- trunk/sandbox/scrollable-grid/pom.xml 2007-04-26 16:03:15 UTC (rev 573)
+++ trunk/sandbox/scrollable-grid/pom.xml 2007-04-26 16:03:27 UTC (rev 574)
@@ -129,5 +129,10 @@
<artifactId>ajax4jsf</artifactId>
<version>1.1.1-SNAPSHOT</version>
</dependency>
+ <dependency>
+ <groupId>org.richfaces</groupId>
+ <artifactId>richfaces</artifactId>
+ <version>3.0.1-SNAPSHOT</version>
+ </dependency>
</dependencies>
</project>
\ No newline at end of file
17 years, 8 months
JBoss Rich Faces SVN: r573 - trunk/sandbox/scrollable-grid/src/main/templates/org/richfaces.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-04-26 12:03:15 -0400 (Thu, 26 Apr 2007)
New Revision: 573
Modified:
trunk/sandbox/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid.jspx
Log:
Modified: trunk/sandbox/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid.jspx
===================================================================
--- trunk/sandbox/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid.jspx 2007-04-26 16:02:22 UTC (rev 572)
+++ trunk/sandbox/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid.jspx 2007-04-26 16:03:15 UTC (rev 573)
@@ -20,7 +20,66 @@
new org.ajax4jsf.framework.resource.PrototypeScript(),
/org/richfaces/renderkit/html/scripts/scrollable-grid.js
</h:scripts>
+
+ <script type="text/javascript">
+ //<![CDATA[
+ var #{this:getJavaScriptVarName(context, component)} = function() {
+ return {
+ init : function() {
+ var currTime = (new Date()).getTime();
+ ClientUILib.log(ClientUILogger.WARNING, "Document loaded over " + (currTime - ClientUILib.startTime) + " miliseconds.");
+
+ var data = [];
+ for (var index = 0; index < 100; index++) {
+ data[index] = [];
+ for (var index2 = 0; index2 < 6; index2++) {
+ data[index][index2] = index2 + " : " + index;
+ }
+ data[index][6] = index%2 ? "value 1" : "value 2";
+ }
+
+ dataModel = new ClientUI.controls.grid.ArrayDataModel(data);
+
+ var templates = [
+ {pane: GridLayout_Enum.HEADER, ref: "GridHeaderTemplate"},
+ {pane: GridLayout_Enum.BODY, ref: "GridBodyTemplate"},
+ {pane: GridLayout_Enum.FOOTER, ref: "GridFooterTemplate"}
+ ];
+
+ ClientUILib.log(ClientUILogger.WARNING, "DataModel created over " + ((new Date()).getTime() - currTime) + " miliseconds.");
+ currTime = (new Date()).getTime();
+
+ // create the Grid
+ var grid = new ClientUI.controls.grid.Grid('GridContainer', dataModel, templates,
+ {
+ showIndexColumn: true,
+ indexColumnWidth: 40
+ }
+ );
+ ClientUILib.log(ClientUILogger.WARNING, "Grid control created over " + ((new Date()).getTime() - currTime) + " miliseconds.");
+
+ grid.updateLayout();
+ Event.observe(grid.eventOnSort, "grid on sort", onSort);
+
+ setTimeout(function() {
+ currTime = (new Date()).getTime();
+ grid.loadData();
+ ClientUILib.log(ClientUILogger.WARNING, "Grid data loaded over " + ((new Date()).getTime() - currTime) + " miliseconds.");
+ }.bind(this), 100);
+
+ ClientUILib.log(ClientUILogger.WARNING, "Done.");
+ }
+ }
+ }();
+
+ #{this:getScriptContributions(context, component)}
+ Event.observe(window, 'load', #{this:getJavaScriptVarName(context, component)}.init);
+
+// ]]>
+ </script>
+
+
<div id="GridContainer" style="width:60%; height:300px;" class="ClientUI_Grid">
<div id="GridHeaderTemplate">
<table class="TestGridHeader" cellpadding="0" cellspacing="0" border="1">
17 years, 8 months
JBoss Rich Faces SVN: r572 - trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-04-26 12:02:22 -0400 (Thu, 26 Apr 2007)
New Revision: 572
Modified:
trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/scrollable-grid.xhtml
Log:
Modified: trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/scrollable-grid.xhtml
===================================================================
--- trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/scrollable-grid.xhtml 2007-04-26 15:50:21 UTC (rev 571)
+++ trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/scrollable-grid.xhtml 2007-04-26 16:02:22 UTC (rev 572)
@@ -25,67 +25,15 @@
function onSort(column, order) {
alert("Column " + column + " sorted in " + order + " order.");
}
-
- var ExampleGrid = function() {
- return {
- init : function() {
- var currTime = (new Date()).getTime();
- ClientUILib.log(ClientUILogger.WARNING, "Document loaded over " + (currTime - ClientUILib.startTime) + " miliseconds.");
-
- var data = [];
- for (var index = 0; index < 100; index++) {
- data[index] = [];
- for (var index2 = 0; index2 < 6; index2++) {
- data[index][index2] = index2 + " : " + index;
- }
- data[index][6] = index%2 ? "value 1" : "value 2";
- }
-
- dataModel = new ClientUI.controls.grid.ArrayDataModel(data);
-
- var templates = [
- {pane: GridLayout_Enum.HEADER, ref: "GridHeaderTemplate"},
- {pane: GridLayout_Enum.BODY, ref: "GridBodyTemplate"},
- {pane: GridLayout_Enum.FOOTER, ref: "GridFooterTemplate"}
- ];
-
- ClientUILib.log(ClientUILogger.WARNING, "DataModel created over " + ((new Date()).getTime() - currTime) + " miliseconds.");
- currTime = (new Date()).getTime();
-
- // create the Grid
- var grid = new ClientUI.controls.grid.Grid('GridContainer', dataModel, templates,
- {
- showIndexColumn: true,
- indexColumnWidth: 40
- }
- );
- ClientUILib.log(ClientUILogger.WARNING, "Grid control created over " + ((new Date()).getTime() - currTime) + " miliseconds.");
-
- grid.updateLayout();
- Event.observe(grid.eventOnSort, "grid on sort", onSort);
-
- setTimeout(function() {
- currTime = (new Date()).getTime();
- grid.loadData();
- ClientUILib.log(ClientUILogger.WARNING, "Grid data loaded over " + ((new Date()).getTime() - currTime) + " miliseconds.");
- }.bind(this), 100);
-
- ClientUILib.log(ClientUILogger.WARNING, "Done.");
- }
- }
- }();
-
- Event.observe(window, 'load', ExampleGrid.init);
-
-
//]]>
</script>
</head>
<body>
+
<sg:scrollable-grid>
</sg:scrollable-grid>
- </body>
+ </body>
</html>
\ No newline at end of file
17 years, 8 months
JBoss Rich Faces SVN: r571 - in trunk: richfaces/datascroller/src/main/config/component and 5 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: vkukharchuk
Date: 2007-04-26 11:50:21 -0400 (Thu, 26 Apr 2007)
New Revision: 571
Modified:
trunk/docs/userguide/en/modules/treeNode_table.xml
trunk/docs/userguide/en/modules/tree_table.xml
trunk/richfaces/datascroller/src/main/config/component/datascroller.xml
trunk/richfaces/inputnumber-slider/src/main/config/component/inputNumberSlider.xml
trunk/richfaces/inputnumber-spinner/src/main/config/component/inputNumberSpinner.xml
trunk/richfaces/simpleTogglePanel/src/main/config/component/simpleTogglePanel.xml
trunk/richfaces/togglePanel/src/main/config/component/togglePanel.xml
trunk/richfaces/tree/src/main/config/component/commonTreeAttributes.ent
Log:
Modified: trunk/docs/userguide/en/modules/treeNode_table.xml
===================================================================
--- trunk/docs/userguide/en/modules/treeNode_table.xml 2007-04-26 15:36:24 UTC (rev 570)
+++ trunk/docs/userguide/en/modules/treeNode_table.xml 2007-04-26 15:50:21 UTC (rev 571)
@@ -153,7 +153,7 @@
</row>
<row>
<entry>reRender</entry>
- <entry>Id[s] (in format of call UIComopnent.findComponent()) of components, rendered in case of AjaxRequest caused by this component. Can be single id, comma-separated list of Ids, or EL Expression with array or Collection</entry>
+ <entry>Id[s] (in format of call UIComponent.findComponent()) of components, rendered in case of AjaxRequest caused by this component. Can be single id, comma-separated list of Ids, or EL Expression with array or Collection</entry>
</row>
<row>
<entry>selectedClass</entry>
Modified: trunk/docs/userguide/en/modules/tree_table.xml
===================================================================
--- trunk/docs/userguide/en/modules/tree_table.xml 2007-04-26 15:36:24 UTC (rev 570)
+++ trunk/docs/userguide/en/modules/tree_table.xml 2007-04-26 15:50:21 UTC (rev 571)
@@ -182,7 +182,7 @@
</row>
<row>
<entry>reRender</entry>
- <entry>Id[s] (in format of call UIComopnent.findComponent()) of components, rendered in case of AjaxRequest caused by this component. Can be single id, comma-separated list of Ids, or EL Expression with array or Collection</entry>
+ <entry>Id[s] (in format of call UIComponent.findComponent()) of components, rendered in case of AjaxRequest caused by this component. Can be single id, comma-separated list of Ids, or EL Expression with array or Collection</entry>
</row>
<row>
<entry>selectedClass</entry>
Modified: trunk/richfaces/datascroller/src/main/config/component/datascroller.xml
===================================================================
--- trunk/richfaces/datascroller/src/main/config/component/datascroller.xml 2007-04-26 15:36:24 UTC (rev 570)
+++ trunk/richfaces/datascroller/src/main/config/component/datascroller.xml 2007-04-26 15:50:21 UTC (rev 571)
@@ -101,7 +101,7 @@
<property>
<name>rendered</name>
<classname>java.lang.String</classname>
- <description>If "true", this component is rendered.</description>
+ <description>If "false", this component is not rendered.</description>
</property>
<property>
<name>for</name>
@@ -161,7 +161,7 @@
<name>renderIfSinglePage</name>
<classname>boolean</classname>
<description>
- If renderIfSinglePage=true then display datascroller if the data hold on one page
+ If "true" then display datascroller if the data hold on one page
</description>
<defaultvalue>true</defaultvalue>
</property>
Modified: trunk/richfaces/inputnumber-slider/src/main/config/component/inputNumberSlider.xml
===================================================================
--- trunk/richfaces/inputnumber-slider/src/main/config/component/inputNumberSlider.xml 2007-04-26 15:36:24 UTC (rev 570)
+++ trunk/richfaces/inputnumber-slider/src/main/config/component/inputNumberSlider.xml 2007-04-26 15:50:21 UTC (rev 571)
@@ -169,7 +169,7 @@
<property>
<name> barClass </name>
<classname>java.lang.String</classname>
- <description>A name of CSS class </description>
+ <description>A name of CSS class for the bar element.</description>
<defaultvalue><![CDATA[""]]></defaultvalue>
</property>
<property>
@@ -194,7 +194,7 @@
<property>
<name> tipClass </name>
<classname>java.lang.String</classname>
- <description>A name of CSS class </description>
+ <description>A name of CSS class for the tool tip element.</description>
<defaultvalue><![CDATA[""]]></defaultvalue>
</property>
&ui_component_attributes;
Modified: trunk/richfaces/inputnumber-spinner/src/main/config/component/inputNumberSpinner.xml
===================================================================
--- trunk/richfaces/inputnumber-spinner/src/main/config/component/inputNumberSpinner.xml 2007-04-26 15:36:24 UTC (rev 570)
+++ trunk/richfaces/inputnumber-spinner/src/main/config/component/inputNumberSpinner.xml 2007-04-26 15:50:21 UTC (rev 571)
@@ -52,7 +52,7 @@
<property>
<name>step</name>
<classname>java.lang.String</classname>
- <description>Parameter that determines the step betwen nearest values while using handler</description>
+ <description>Parameter that determines the step betwen nearest values while using handle.</description>
<defaultvalue><![CDATA["1"]]></defaultvalue>
</property>
<property>
Modified: trunk/richfaces/simpleTogglePanel/src/main/config/component/simpleTogglePanel.xml
===================================================================
--- trunk/richfaces/simpleTogglePanel/src/main/config/component/simpleTogglePanel.xml 2007-04-26 15:36:24 UTC (rev 570)
+++ trunk/richfaces/simpleTogglePanel/src/main/config/component/simpleTogglePanel.xml 2007-04-26 15:50:21 UTC (rev 571)
@@ -65,7 +65,7 @@
<name>bodyClass</name>
<classname>java.lang.String</classname>
<description>
- A class that defines a style for a panel header
+ A class that defines a style for a panel content.
</description>
</property>
Modified: trunk/richfaces/togglePanel/src/main/config/component/togglePanel.xml
===================================================================
--- trunk/richfaces/togglePanel/src/main/config/component/togglePanel.xml 2007-04-26 15:36:24 UTC (rev 570)
+++ trunk/richfaces/togglePanel/src/main/config/component/togglePanel.xml 2007-04-26 15:50:21 UTC (rev 571)
@@ -377,7 +377,7 @@
<name>status</name>
<classname>java.lang.String</classname>
<description>
- ID (in format of call UIComopnent.findComponent()) of
+ ID (in format of call UIComponent.findComponent()) of
Request status component
</description>
</property>
Modified: trunk/richfaces/tree/src/main/config/component/commonTreeAttributes.ent
===================================================================
--- trunk/richfaces/tree/src/main/config/component/commonTreeAttributes.ent 2007-04-26 15:36:24 UTC (rev 570)
+++ trunk/richfaces/tree/src/main/config/component/commonTreeAttributes.ent 2007-04-26 15:50:21 UTC (rev 571)
@@ -29,5 +29,5 @@
<property>
<name>reRender</name>
<classname>java.lang.Object</classname>
- <description>Id[s] (in format of call UIComopnent.findComponent()) of components, rendered in case of AjaxRequest caused by this component. Can be single id, comma-separated list of Ids, or EL Expression with array or Collection</description>
+ <description>Id[s] (in format of call UIComponent.findComponent()) of components, rendered in case of AjaxRequest caused by this component. Can be single id, comma-separated list of Ids, or EL Expression with array or Collection</description>
</property>
17 years, 8 months
JBoss Rich Faces SVN: r570 - trunk/richfaces/dataFilterSlider/src/main/resources/org/richfaces/renderkit/html/scripts/scriptaculous-js-1.6.5/src.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-04-26 11:36:24 -0400 (Thu, 26 Apr 2007)
New Revision: 570
Modified:
trunk/richfaces/dataFilterSlider/src/main/resources/org/richfaces/renderkit/html/scripts/scriptaculous-js-1.6.5/src/slider.js
Log:
http://jira.jboss.com/jira/browse/RF-104 fixed
Modified: trunk/richfaces/dataFilterSlider/src/main/resources/org/richfaces/renderkit/html/scripts/scriptaculous-js-1.6.5/src/slider.js
===================================================================
--- trunk/richfaces/dataFilterSlider/src/main/resources/org/richfaces/renderkit/html/scripts/scriptaculous-js-1.6.5/src/slider.js 2007-04-26 12:45:53 UTC (rev 569)
+++ trunk/richfaces/dataFilterSlider/src/main/resources/org/richfaces/renderkit/html/scripts/scriptaculous-js-1.6.5/src/slider.js 2007-04-26 15:36:24 UTC (rev 570)
@@ -196,7 +196,7 @@
} else {
span.style.left = this.translateToPx(range.start);
//temporary hard coded fix for oversized trailer
- span.style.width = document.getElementById('slider-handle').offsetLeft + 'px';
+ span.style.width = this.handles[0].offsetLeft + 'px';//document.getElementById('slider-handle').offsetLeft + 'px';
//span.style.width = this.translateToPx(range.end - range.start + this.range.start);
}
},
17 years, 8 months
JBoss Rich Faces SVN: r569 - in trunk/richfaces/datascroller/src/main: java/org/richfaces/component and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2007-04-26 08:45:53 -0400 (Thu, 26 Apr 2007)
New Revision: 569
Modified:
trunk/richfaces/datascroller/src/main/config/component/datascroller.xml
trunk/richfaces/datascroller/src/main/java/org/richfaces/component/UIDatascroller.java
trunk/richfaces/datascroller/src/main/templates/org/richfaces/htmlDatascroller.jspx
Log:
Added "align" attribute to data scroller.
Modified: trunk/richfaces/datascroller/src/main/config/component/datascroller.xml
===================================================================
--- trunk/richfaces/datascroller/src/main/config/component/datascroller.xml 2007-04-26 12:08:57 UTC (rev 568)
+++ trunk/richfaces/datascroller/src/main/config/component/datascroller.xml 2007-04-26 12:45:53 UTC (rev 569)
@@ -221,11 +221,12 @@
</description>
<defaultvalue>true</defaultvalue>
</property>
-
-
-
-
-
+ <property>
+ <name>align</name>
+ <classname>java.lang.String</classname>
+ <description>
+ </description>
+ </property>
</component>
&listeners;
</components>
Modified: trunk/richfaces/datascroller/src/main/java/org/richfaces/component/UIDatascroller.java
===================================================================
--- trunk/richfaces/datascroller/src/main/java/org/richfaces/component/UIDatascroller.java 2007-04-26 12:08:57 UTC (rev 568)
+++ trunk/richfaces/datascroller/src/main/java/org/richfaces/component/UIDatascroller.java 2007-04-26 12:45:53 UTC (rev 569)
@@ -145,7 +145,11 @@
public abstract void setStyleClass(String styleClass);
public abstract void setStyle(String styleClass);
+
+ public abstract String getAlign();
+ public abstract void setAlign(String align);
+
/**
* Finds the dataTable which id is mapped to the "for" property
*
Modified: trunk/richfaces/datascroller/src/main/templates/org/richfaces/htmlDatascroller.jspx
===================================================================
--- trunk/richfaces/datascroller/src/main/templates/org/richfaces/htmlDatascroller.jspx 2007-04-26 12:08:57 UTC (rev 568)
+++ trunk/richfaces/datascroller/src/main/templates/org/richfaces/htmlDatascroller.jspx 2007-04-26 12:45:53 UTC (rev 569)
@@ -24,7 +24,7 @@
x:passThruWithExclusions="value,name,type,id"
class="dr-dscr rich-datascr #{component.attributes['styleClass']}"
style="#{component.attributes['style']};">
- <table id="#{clientId}_table" align="center" border="0" cellpadding="0" cellspacing="1" class="dr-dscr-t rich-dtascroller-table #{component.attributes['tableStyleClass']}">
+ <table id="#{clientId}_table" align="#{component.attributes['align']}" border="0" cellpadding="0" cellspacing="1" class="dr-dscr-t rich-dtascroller-table #{component.attributes['tableStyleClass']}">
<tbody>
<tr>
<jsp:scriptlet><![CDATA[
17 years, 8 months
JBoss Rich Faces SVN: r568 - in trunk/richfaces: datascroller/src/main/config/component and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: vkukharchuk
Date: 2007-04-26 08:08:57 -0400 (Thu, 26 Apr 2007)
New Revision: 568
Modified:
trunk/richfaces/dataFilterSlider/src/main/config/component/dataFilterSlider.xml
trunk/richfaces/datascroller/src/main/config/component/datascroller.xml
trunk/richfaces/drag-drop/src/main/config/component/dragSupport.xml
trunk/richfaces/drag-drop/src/main/config/component/dropSupport.xml
trunk/richfaces/tree/src/main/config/component/tree.xml
trunk/richfaces/tree/src/main/config/component/treeNode.xml
Log:
Modified: trunk/richfaces/dataFilterSlider/src/main/config/component/dataFilterSlider.xml
===================================================================
--- trunk/richfaces/dataFilterSlider/src/main/config/component/dataFilterSlider.xml 2007-04-26 09:57:27 UTC (rev 567)
+++ trunk/richfaces/dataFilterSlider/src/main/config/component/dataFilterSlider.xml 2007-04-26 12:08:57 UTC (rev 568)
@@ -152,7 +152,7 @@
</property>
<property>
<name>sliderListener</name>
- <classname>java.lang.String</classname>
+ <classname>javax.faces.el.MethodBinding</classname>
<description>
MethodBinding representing an action listener method that will be notified afrer changing of slider control position.
</description>
Modified: trunk/richfaces/datascroller/src/main/config/component/datascroller.xml
===================================================================
--- trunk/richfaces/datascroller/src/main/config/component/datascroller.xml 2007-04-26 09:57:27 UTC (rev 567)
+++ trunk/richfaces/datascroller/src/main/config/component/datascroller.xml 2007-04-26 12:08:57 UTC (rev 568)
@@ -79,7 +79,7 @@
<property>
<name>scrollerListener</name>
- <classname>java.lang.String</classname>
+ <classname>javax.faces.el.MethodBinding</classname>
<description>MethodBinding representing an action listener method that will be notified afrer scrolling.
</description>
</property>
Modified: trunk/richfaces/drag-drop/src/main/config/component/dragSupport.xml
===================================================================
--- trunk/richfaces/drag-drop/src/main/config/component/dragSupport.xml 2007-04-26 09:57:27 UTC (rev 567)
+++ trunk/richfaces/drag-drop/src/main/config/component/dragSupport.xml 2007-04-26 12:08:57 UTC (rev 568)
@@ -42,7 +42,7 @@
-->
<property>
<name>dragListener</name>
- <classname>java.lang.String</classname>
+ <classname>javax.faces.el.MethodBinding</classname>
<description>
MethodBinding representing an action listener method that will be notified afrer drag operation.
</description>
Modified: trunk/richfaces/drag-drop/src/main/config/component/dropSupport.xml
===================================================================
--- trunk/richfaces/drag-drop/src/main/config/component/dropSupport.xml 2007-04-26 09:57:27 UTC (rev 567)
+++ trunk/richfaces/drag-drop/src/main/config/component/dropSupport.xml 2007-04-26 12:08:57 UTC (rev 568)
@@ -34,7 +34,7 @@
<property>
<name>dropListener</name>
- <classname>java.lang.String</classname>
+ <classname>javax.faces.el.MethodBinding</classname>
<description>
MethodBinding representing an action listener method that will be notified afrer drop operation.
</description>
Modified: trunk/richfaces/tree/src/main/config/component/tree.xml
===================================================================
--- trunk/richfaces/tree/src/main/config/component/tree.xml 2007-04-26 09:57:27 UTC (rev 567)
+++ trunk/richfaces/tree/src/main/config/component/tree.xml 2007-04-26 12:08:57 UTC (rev 568)
@@ -65,22 +65,22 @@
</property>
<property>
<name>changeExpandListener</name>
- <classname>java.lang.String</classname>
+ <classname>javax.faces.el.MethodBinding</classname>
<description>Listener called on expand/collapse event on the node.</description>
</property>
<property>
<name>dragListener</name>
- <classname>java.lang.String</classname>
+ <classname>javax.faces.el.MethodBinding</classname>
<description>MethodBinding representing an action listener method that will be notified after drag operation. </description>
</property>
<property>
<name>dropListener</name>
- <classname>java.lang.String</classname>
+ <classname>javax.faces.el.MethodBinding</classname>
<description>MethodBinding representing an action listener method that will be notified after drop operation. </description>
</property>
<property>
<name>nodeSelectListener</name>
- <classname>java.lang.String</classname>
+ <classname>javax.faces.el.MethodBinding</classname>
<description>MethodBinding representing an action listener method that will be notified after selection of node. </description>
</property>
<property>
Modified: trunk/richfaces/tree/src/main/config/component/treeNode.xml
===================================================================
--- trunk/richfaces/tree/src/main/config/component/treeNode.xml 2007-04-26 09:57:27 UTC (rev 567)
+++ trunk/richfaces/tree/src/main/config/component/treeNode.xml 2007-04-26 12:08:57 UTC (rev 568)
@@ -74,22 +74,22 @@
<property>
<name>changeExpandListener</name>
- <classname>java.lang.String</classname>
+ <classname>javax.faces.el.MethodBinding</classname>
<description>Listener called on expand/collapse event on the node.</description>
</property>
<property>
<name>dragListener</name>
- <classname>java.lang.String</classname>
+ <classname>javax.faces.el.MethodBinding</classname>
<description>MethodBinding representing an action listener method that will be notified after drag operation. </description>
</property>
<property>
<name>dropListener</name>
- <classname>java.lang.String</classname>
+ <classname>javax.faces.el.MethodBinding</classname>
<description>MethodBinding representing an action listener method that will be notified after drop operation. </description>
</property>
<property>
<name>nodeSelectListener</name>
- <classname>java.lang.String</classname>
+ <classname>javax.faces.el.MethodBinding</classname>
<description>MethodBinding representing an action listener method that will be notified after selection of node. </description>
</property>
<property>
17 years, 8 months
JBoss Rich Faces SVN: r567 - trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/WEB-INF.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-04-26 05:57:27 -0400 (Thu, 26 Apr 2007)
New Revision: 567
Modified:
trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/WEB-INF/web.xml
Log:
Modified: 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 2007-04-26 09:57:13 UTC (rev 566)
+++ trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/WEB-INF/web.xml 2007-04-26 09:57:27 UTC (rev 567)
@@ -6,7 +6,13 @@
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/faces-config.xml</param-value>
</context-param>
+
<context-param>
+ <param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
+ <param-value>false</param-value>
+ </context-param>
+
+ <context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>
17 years, 8 months
JBoss Rich Faces SVN: r566 - trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-04-26 05:57:13 -0400 (Thu, 26 Apr 2007)
New Revision: 566
Modified:
trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/scrollable-grid.xhtml
Log:
Modified: trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/scrollable-grid.xhtml
===================================================================
--- trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/scrollable-grid.xhtml 2007-04-26 09:56:53 UTC (rev 565)
+++ trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/scrollable-grid.xhtml 2007-04-26 09:57:13 UTC (rev 566)
@@ -3,30 +3,89 @@
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:sg="http://richfaces.ajax4jsf.org/scrollable-grid"
>
<head>
- <script type="text/javascript">
-
- function processCellValue(cell, value) {
- var cell = $(cell);
- if(cell) {
- if(value && value.indexOf("2")>0) {
- cell.setStyle({backgroundColor: "red"});
+ <script>
+ //<![CDATA[
+
+ function processCellValue(cell, value) {
+ var cell = $(cell);
+ if(cell) {
+ if(value && value.indexOf("2")>0) {
+ cell.setStyle({backgroundColor: "red"});
+ }
+ else {
+ cell.setStyle({backgroundColor: ""});
+ }
}
- else {
- cell.setStyle({backgroundColor: ""});
- }
}
- }
- function onSort(column, order) {
- alert("Column " + column + " sorted in " + order + " order.");
- }
+ function onSort(column, order) {
+ alert("Column " + column + " sorted in " + order + " order.");
+ }
+
+ var ExampleGrid = function() {
+ return {
+ init : function() {
+ var currTime = (new Date()).getTime();
+ ClientUILib.log(ClientUILogger.WARNING, "Document loaded over " + (currTime - ClientUILib.startTime) + " miliseconds.");
+
+ var data = [];
+ for (var index = 0; index < 100; index++) {
+ data[index] = [];
+ for (var index2 = 0; index2 < 6; index2++) {
+ data[index][index2] = index2 + " : " + index;
+ }
+ data[index][6] = index%2 ? "value 1" : "value 2";
+ }
+
+ dataModel = new ClientUI.controls.grid.ArrayDataModel(data);
+
+ var templates = [
+ {pane: GridLayout_Enum.HEADER, ref: "GridHeaderTemplate"},
+ {pane: GridLayout_Enum.BODY, ref: "GridBodyTemplate"},
+ {pane: GridLayout_Enum.FOOTER, ref: "GridFooterTemplate"}
+ ];
+
+ ClientUILib.log(ClientUILogger.WARNING, "DataModel created over " + ((new Date()).getTime() - currTime) + " miliseconds.");
+ currTime = (new Date()).getTime();
+
+ // create the Grid
+ var grid = new ClientUI.controls.grid.Grid('GridContainer', dataModel, templates,
+ {
+ showIndexColumn: true,
+ indexColumnWidth: 40
+ }
+ );
+ ClientUILib.log(ClientUILogger.WARNING, "Grid control created over " + ((new Date()).getTime() - currTime) + " miliseconds.");
+
+ grid.updateLayout();
+ Event.observe(grid.eventOnSort, "grid on sort", onSort);
+
+ setTimeout(function() {
+ currTime = (new Date()).getTime();
+ grid.loadData();
+ ClientUILib.log(ClientUILogger.WARNING, "Grid data loaded over " + ((new Date()).getTime() - currTime) + " miliseconds.");
+ }.bind(this), 100);
+
+ ClientUILib.log(ClientUILogger.WARNING, "Done.");
+ }
+ }
+ }();
+
+ Event.observe(window, 'load', ExampleGrid.init);
+
+
+ //]]>
+
</script>
</head>
<body>
+ <sg:scrollable-grid>
+ </sg:scrollable-grid>
</body>
</html>
\ No newline at end of file
17 years, 8 months