Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: EE-3.3.0.GA_P01, EE-3.3.0.GA_P02
-
Fix Version/s: 4.0, EE-3.3.0.GA_P03
-
Component/s: ACE-Components
-
Labels:None
-
Environment:All
-
Assignee Priority:P2
-
Support Case References:Support Case #12854 - https://icesoft.my.salesforce.com/5007000000cbw7S
-
Workaround Exists:Yes
-
Workaround Description:Use a View or Window Scope for the managed bean instead of the Request scope.
Description
An ace:dataTable uses lazy loading. The managed bean for the for the list is a request scoped bean. This is working well when displaying the data in the table.
The issue is seen when trying to send a check box selection to another bean. This other bean is a session scoped bean. If the selectBooleanCheckbox uses an f:ajax tag or the icecore:singleSubmit tag is used, the selection is lost (clicking a checkbox will immediately uncheck it). The response returned is clearing out the checkbox.
If lazy loading is set to false and the full set of data is used, this is not an issue using the same request/session scoped bean combination.
The issue is seen when trying to send a check box selection to another bean. This other bean is a session scoped bean. If the selectBooleanCheckbox uses an f:ajax tag or the icecore:singleSubmit tag is used, the selection is lost (clicking a checkbox will immediately uncheck it). The response returned is clearing out the checkbox.
If lazy loading is set to false and the full set of data is used, this is not an issue using the same request/session scoped bean combination.
Attached test case source code and war file. Note, to run the war file the icefaces ace and icefaces core jar files need to be added back in.
Steps:
" on the ace:dataTable component in welcomeICEfaces.xhtml