Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 2.1-Beta
-
Component/s: ACE-Components
-
Labels:None
-
Environment:Tomcat 7.0.12
-
Assignee Priority:P1
Description
In the poc we have el expressions bound to the 'rows' attribute and the 'paginator' attribute. Above the ace:dataTable is an h:selectBooleanCheckbox that determines whether or not the user wants to use pagination. When they select no pagination, the rows attribute is set to the number of rows in the List bound to the datatable. When pagination is selected, the number of rows is set to the default in the bean.
If you run the poc and remove pagination, you will see the total number of rows as expected. However, when you paginate and then remove pagination, you will not see the rows updated to the total number of rows in the List, it remains at the default and will not change the number of rows upon further interaction.
If you run the poc and remove pagination, you will see the total number of rows as expected. However, when you paginate and then remove pagination, you will not see the rows updated to the total number of rows in the List, it remains at the default and will not change the number of rows upon further interaction.
Activity
Brad Kroeger
created issue -
Brad Kroeger
made changes -
Field | Original Value | New Value |
---|---|---|
Assignee | Ken Fyten [ ken.fyten ] |
Ken Fyten
made changes -
Salesforce Case | [] | |
Assignee Priority | P1 | |
Assignee | Ken Fyten [ ken.fyten ] | Nils Lundquist [ nils.lundquist ] |
Nils Lundquist
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Brad Kroeger
made changes -
Resolution | Fixed [ 1 ] | |
Status | Resolved [ 5 ] | Reopened [ 4 ] |
Nils Lundquist
made changes -
Status | Reopened [ 4 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Fix Version/s | 2.1-Beta2 [ 10294 ] |
Ken Fyten
made changes -
Security | Private [ 10001 ] |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
From my debugging this is likely a state saving / generator behaviour problem.
getRows(), which should always return the bean value, initially returns the value correctly.
Following a pagination event or row count change, the component calls setRows() with input from the client.
After setRows() has been called, calls to getRows() sometimes returns the value from the bean, and other times return the value that the component passed into setRows(), even during the same lifecycle phase.
The table rendering the old number of rows when they attempt to set bound value of the row count following pagination removal is a product of this.