Details
-
Type: Improvement
-
Status: Closed
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 1.7.2 SP1
-
Component/s: ICE-Components
-
Labels:None
-
Environment:All
-
Affects:Sample App./Tutorial
-
Workaround Exists:Yes
-
Workaround Description:In your bean, instead of returning a List for your data model, return a javax.faces.model.DataModel. Then you can always add a property getter to access your DataModel's getRowIndex() method, thus accessing the panelSeries' current row index.
Description
Feature Request: The JSTL tag c:forEach has a varStatus which can be used to return a row index. Having this sort of an attribute for the ice:panelSeries component would be useful.
Activity
Arran Mccullough
created issue -
Arran Mccullough
made changes -
Field | Original Value | New Value |
---|---|---|
Salesforce Case | [50070000007DbOo] | |
Priority | Major [ 3 ] | Minor [ 4 ] |
Mark Collette
made changes -
Workaround Description | In your bean, instead of returning a List for your data model, return a javax.faces.model.DataModel. Then you can always add a property getter to access your DataModel's getRowIndex() method, thus accessing the panelSeries' current row index. | |
Workaround Exists | [Yes] |
Ken Fyten
made changes -
Fix Version/s | 1.8DR#3 [ 10143 ] | |
Assignee Priority | P1 | |
Assignee | Mark Collette [ mark.collette ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #18179 | Fri Jan 16 12:31:22 MST 2009 | mark.collette | |
Files Changed | ||||
MODIFY
/icefaces/trunk/icefaces/component-metadata/src/main/resources/conf/extended-faces-config.xml
|
Mark Collette
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Affects | [Sample App./Tutorial] | |
Resolution | Fixed [ 1 ] |
Joanne Bai
made changes -
Attachment | screenshot-1.jpg [ 11486 ] |
Mark Collette
made changes -
Resolution | Fixed [ 1 ] | |
Status | Resolved [ 5 ] | Reopened [ 4 ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #18313 | Mon Feb 09 15:57:18 MST 2009 | mark.collette | |
Files Changed | ||||
MODIFY
/icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/panelseries/UISeries.java
|
Mark Collette
made changes -
Status | Reopened [ 4 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Fix Version/s | 1.8 [ 10161 ] | |
Assignee Priority | P1 |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
Assignee | Mark Collette [ mark.collette ] |
The Facelets c:forEach varStatus docs:
Variable to bind an Object that describes the current indexed state. The Object has the following properties: first[boolean], last[boolean], begin[int], end[int], index[int], step[int].
Since PanelSeries is a UIData, it has "first", "rows", and "rowIndex", with no concept of stepping. One complication is that, while we theoretically can calculate what the last row will be, from the "first" and "rows" values, isRowAvailable() may return false in any intervening row, ending the iteration. So, accurate values for "end" and "last" is not something that can be guaranteed, without scanning ahead, which isn't really an option with the limitations of paged data models and UIData iteration overhead. Still, in typical cases, we could provide those.