Details
-
Type: New Feature
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: EE-1.8.2.GA_P03
-
Fix Version/s: 3.0, EE-1.8.2.GA_P04
-
Component/s: ACE-Components, ICE-Components
-
Labels:None
-
Environment:ICEfaces 3, ice:dataTable component
-
Assignee Priority:P2
-
Affects:Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial
Description
It would be a useful addition to the ice:dataTable component if application developers could implement a Find function that would search for a matching substring within a set of specified columns to include in the search. Upon finding the first match, the dataTable would navigate to ensure that row was visible on the screen, and use an effect to highlight the matching row.
It would be the responsibility of the application to provide the search string and trigger the find operation via new APIs on the dataTable component. This approach provides the maximum flexibility for applications in terms of how the find text is acquired from the user, etc.
In order to provide a Search/Find capability to the ace:dataTable, we need to add new component APIs as described below:
double findRow(String str, Array columns, double startRow)
The findRow API will accept a String argument ("str") to locate within the specified dataTable "columns". An optional startRow argument can be specified to begin searching at a specific row number (this enables a "Find Next" type functionality). The return value for this API is the first row number that has a column string value that matches the str argument value anywhere in the string. If no match is found, -1 is returned.
Also might make sense to make the actual match condition a config. parameter in the findRow api. Possible settings would be Anywhere in String, StartsWith, endsWith.
void navigateToRow( double row, EffectQueue highlightEffect)
The navigateToRow API will accept a row number to navigate the datatable to such that the specified row number is made visible in the datatable, either via pagination to the page that contains the specified row, or via scrolling a scrollable datatable until the specified row is within the visible region on the page. An optional highlightEffect type may be specified that will be applied to the row once it is visible to draw the user's attention to the row.
It would be the responsibility of the application to provide the search string and trigger the find operation via new APIs on the dataTable component. This approach provides the maximum flexibility for applications in terms of how the find text is acquired from the user, etc.
In order to provide a Search/Find capability to the ace:dataTable, we need to add new component APIs as described below:
double findRow(String str, Array columns, double startRow)
The findRow API will accept a String argument ("str") to locate within the specified dataTable "columns". An optional startRow argument can be specified to begin searching at a specific row number (this enables a "Find Next" type functionality). The return value for this API is the first row number that has a column string value that matches the str argument value anywhere in the string. If no match is found, -1 is returned.
Also might make sense to make the actual match condition a config. parameter in the findRow api. Possible settings would be Anywhere in String, StartsWith, endsWith.
void navigateToRow( double row, EffectQueue highlightEffect)
The navigateToRow API will accept a row number to navigate the datatable to such that the specified row number is made visible in the datatable, either via pagination to the page that contains the specified row, or via scrolling a scrollable datatable until the specified row is within the visible region on the page. An optional highlightEffect type may be specified that will be applied to the row once it is visible to draw the user's attention to the row.
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #28766 | Thu Apr 19 10:26:28 MDT 2012 | ken.fyten | |
Files Changed | ||||
MODIFY
/icefaces/trunk/icefaces/samples/component-showcase/facelets-enh/src/org/icefaces/application/showcase/view/jaxb/resources/application_structure.xml
|
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #28752 | Wed Apr 18 13:08:45 MDT 2012 | nils.lundquist | |
Files Changed | ||||
MODIFY
/icefaces/trunk/icefaces/samples/component-showcase/common-src/org/icefaces/application/showcase/view/bean/examples/component/dataTable/DataTableFind.java
MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/ext/HtmlDataTable.java |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #27565 | Wed Feb 01 10:17:48 MST 2012 | ken.fyten | |
Files Changed | ||||
MODIFY
/icefaces3/tags/icefaces-3.0.0/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/compat/dataTable/DataTableFind.java
MODIFY /icefaces3/tags/icefaces-3.0.0/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/ace/dataTable/DataTableFind.java MODIFY /icefaces3/tags/icefaces-3.0.0/icefaces/compat/components/src/main/java/com/icesoft/faces/component/ext/HtmlDataTable.java |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #27554 | Tue Jan 31 13:15:35 MST 2012 | nils.lundquist | |
Files Changed | ||||
MODIFY
/icefaces3/trunk/icefaces/samples/showcase/showcase/src/main/webapp/resources/examples/compat/dataTable/dataTableFind.xhtml
MODIFY /icefaces3/trunk/icefaces/compat/components/src/main/java/com/icesoft/faces/component/ext/HtmlDataTable.java |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #27552 | Tue Jan 31 12:58:49 MST 2012 | nils.lundquist | |
Files Changed | ||||
MODIFY
/icefaces3/trunk/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/ace/dataTable/DataTableFind.java
MODIFY /icefaces3/trunk/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/compat/dataTable/DataTableFind.java |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #27533 | Mon Jan 30 17:15:51 MST 2012 | ken.fyten | |
Files Changed | ||||
MODIFY
/icefaces3/tags/icefaces-3.0.0/icefaces/ace/component/src/org/icefaces/ace/component/datatable/DataTable.java
MODIFY /icefaces3/tags/icefaces-3.0.0/icefaces/compat/components/src/main/java/com/icesoft/faces/component/ext/HtmlDataTable.java |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #27532 | Mon Jan 30 17:15:31 MST 2012 | ken.fyten | |
Files Changed | ||||
MODIFY
/icefaces3/tags/icefaces-3.0.0/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/ace/dataTable/DataTableBean.java
MODIFY /icefaces3/tags/icefaces-3.0.0/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/compat/dataTable/DataTableBean.java |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #27531 | Mon Jan 30 16:55:32 MST 2012 | nils.lundquist | |
Files Changed | ||||
MODIFY
/icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/datatable/DataTable.java
MODIFY /icefaces3/trunk/icefaces/compat/components/src/main/java/com/icesoft/faces/component/ext/HtmlDataTable.java |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #27529 | Mon Jan 30 16:20:09 MST 2012 | nils.lundquist | |
Files Changed | ||||
MODIFY
/icefaces3/trunk/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/compat/dataTable/DataTableBean.java
MODIFY /icefaces3/trunk/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/ace/dataTable/DataTableBean.java |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #27514 | Mon Jan 30 15:27:40 MST 2012 | ken.fyten | |
Files Changed | ||||
MODIFY
/icefaces3/tags/icefaces-3.0.0/icefaces/ace/component/src/org/icefaces/ace/component/datatable/DataTable.java
MODIFY /icefaces3/tags/icefaces-3.0.0/icefaces/compat/components/src/main/java/com/icesoft/faces/component/ext/renderkit/TableRenderer.java MODIFY /icefaces3/tags/icefaces-3.0.0/icefaces/compat/components/src/main/java/com/icesoft/faces/component/ext/HtmlDataTable.java MODIFY /icefaces3/tags/icefaces-3.0.0/icefaces/ace/component/src/org/icefaces/ace/component/datatable/DataTableRenderer.java |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #27512 | Mon Jan 30 14:52:09 MST 2012 | nils.lundquist | |
Files Changed | ||||
MODIFY
/icefaces3/trunk/icefaces/samples/showcase/showcase/src/main/webapp/resources/examples/ace/dataTable/dataTableFind.xhtml
MODIFY /icefaces3/trunk/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/ace/dataTable/DataTableFind.java MODIFY /icefaces3/trunk/icefaces/samples/showcase/showcase/src/main/webapp/resources/examples/compat/dataTable/dataTableFind.xhtml MODIFY /icefaces3/trunk/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/compat/dataTable/DataTableFind.java |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #27480 | Fri Jan 27 17:05:53 MST 2012 | nils.lundquist | |
Files Changed | ||||
MODIFY
/icefaces3/trunk/icefaces/compat/components/src/main/java/com/icesoft/faces/component/ext/HtmlDataTable.java
|
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #27479 | Fri Jan 27 16:25:33 MST 2012 | nils.lundquist | |
Files Changed | ||||
MODIFY
/icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/datatable/DataTable.java
|
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #27477 | Fri Jan 27 15:53:59 MST 2012 | nils.lundquist | |
Files Changed | ||||
MODIFY
/icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/datatable/DataTable.java
MODIFY /icefaces3/trunk/icefaces/compat/components/src/main/java/com/icesoft/faces/component/ext/renderkit/TableRenderer.java MODIFY /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/datatable/DataTableRenderer.java MODIFY /icefaces3/trunk/icefaces/compat/components/src/main/java/com/icesoft/faces/component/ext/HtmlDataTable.java |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #27337 | Tue Jan 24 11:19:07 MST 2012 | nils.lundquist | |
Files Changed | ||||
MODIFY
/icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/ext/renderkit/TableRenderer.java
MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/ext/HtmlDataTable.java |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #27328 | Mon Jan 23 16:52:18 MST 2012 | nils.lundquist | |
Files Changed | ||||
MODIFY
/icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/ext/HtmlDataTable.java
|