Author: maksimkaszynski
Date: 2007-09-04 08:33:22 -0400 (Tue, 04 Sep 2007)
New Revision: 2733
Modified:
trunk/ui/scrollableDataTable/src/main/config/component/scrollable-data-table.xml
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/SelectionRendererContributor.java
trunk/ui/scrollableDataTable/src/test/java/org/richfaces/model/internal/TestObj.java
Log:
RF-777
Modified:
trunk/ui/scrollableDataTable/src/main/config/component/scrollable-data-table.xml
===================================================================
---
trunk/ui/scrollableDataTable/src/main/config/component/scrollable-data-table.xml 2007-09-04
12:17:01 UTC (rev 2732)
+++
trunk/ui/scrollableDataTable/src/main/config/component/scrollable-data-table.xml 2007-09-04
12:33:22 UTC (rev 2733)
@@ -145,9 +145,10 @@
</description>
</property>
- <property attachedstate="true" hidden="true">
+ <property attachedstate="true">
<name>selection</name>
<classname>org.richfaces.model.selection.Selection</classname>
+ <description>Value binding representing selected rows</description>
</property>
<property>
@@ -222,12 +223,12 @@
</description>
</property>
- <property>
+ <property hidden="true">
<name>sortListener</name>
<classname>org.richfaces.event.sort.SortListener</classname>
<description>
- MethodBinding representing an action listener method that will be
notified after sorting of rows
+ Value representing an scroll listener object that will be notified after
sorting of rows
</description>
</property>
@@ -237,7 +238,23 @@
<description>This attribute defines rows that are updated after an AJAX
request</description>
</property>
+ <property hidden="true">
+ <name>scrollPos</name>
+ <classname>java.lang.String</classname>
+ <description>Component internal property serving mainly to determine vertical
scroll position</description>
+ </property>
+ <property hidden="true">
+ <name>responseData</name>
+ <classname>java.util.Collection</classname>
+ <description>Component internal property serving mainly to determine vertical
scroll position</description>
+ </property>
+
+ <property hidden="true">
+ <name>beforeUpdate</name>
+ <classname>java.lang.String</classname>
+ </property>
+
&ajax_component_attributes;
&ui_component_attributes;
&ui_data_attributes;
Modified:
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/SelectionRendererContributor.java
===================================================================
---
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/SelectionRendererContributor.java 2007-09-04
12:17:01 UTC (rev 2732)
+++
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/SelectionRendererContributor.java 2007-09-04
12:33:22 UTC (rev 2733)
@@ -13,6 +13,7 @@
import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;
import javax.faces.convert.Converter;
+import javax.faces.el.ValueBinding;
import org.ajax4jsf.context.AjaxContext;
import org.ajax4jsf.model.DataVisitor;
@@ -113,6 +114,11 @@
grid.setSelection(simpleSelection);
+ ValueBinding selectionBinding = grid.getValueBinding("selection");
+ if (selectionBinding != null) {
+ selectionBinding.setValue(context, simpleSelection);
+ }
+
ScrollableDataTableRendererState.restoreState(context);
}
Modified:
trunk/ui/scrollableDataTable/src/test/java/org/richfaces/model/internal/TestObj.java
===================================================================
---
trunk/ui/scrollableDataTable/src/test/java/org/richfaces/model/internal/TestObj.java 2007-09-04
12:17:01 UTC (rev 2732)
+++
trunk/ui/scrollableDataTable/src/test/java/org/richfaces/model/internal/TestObj.java 2007-09-04
12:33:22 UTC (rev 2733)
@@ -24,10 +24,22 @@
public class TestObj {
private String name;
+ /**
+ *
+ */
+ public TestObj() {
+ // TODO Auto-generated constructor stub
+ }
+
public TestObj(String name) {
this.name = name;
}
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
public String getName() {
return name;
}
Show replies by date