Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: EE-4.1.0.GA, EE-3.3.0.GA_P04, 4.2.BETA
-
Fix Version/s: EE-4.2.0.GA, EE-3.3.0.GA_P05
-
Component/s: ACE-Components
-
Labels:None
-
Environment:All
-
Assignee Priority:P2
-
Support Case References:Support Case #14034 - https://icesoft.my.salesforce.com/5007000001hjPc5
Description
This is true unless the second tabPane has an ace:dataTable on the page. With the dataTable included, it is initializing the View scoped bean on load and is doing so before the bean for the first tabPane.
No changes to the cache attribute of the ace:tabPane have any effect on this behavior.
-
- welcomeICEfaces.xhtml
- 2 kB
- Arturo Zambrano
-
Hide
- Case14034Example.zip
- 21 kB
- Arran Mccullough
-
- Case14034Example/build.xml 3 kB
- Case14034Example/.../ant-deploy.xml 2 kB
- Case14034Example/.../build-impl.xml 80 kB
- Case14034Example/.../genfiles.properties 0.5 kB
- Case14034Example/.../private.properties 0.6 kB
- Case14034Example/.../project.properties 4 kB
- Case14034Example/nbproject/project.xml 0.9 kB
- Case14034Example/src/conf/MANIFEST.MF 0.0 kB
- Case14034Example/src/.../support/Item.java 0.6 kB
- Case14034Example/src/.../TabPaneOneBean.java 0.5 kB
- Case14034Example/src/.../TabPaneTwoBean.java 1.0 kB
- Case14034Example/web/index.xhtml 0.5 kB
- Case14034Example/web/.../context.xml 0.1 kB
- Case14034Example/web/WEB-INF/web.xml 2 kB
- Case14034Example/.../welcomeICEfaces.xhtml 2 kB
-
Hide
- Case14034Example.war
- 10.16 MB
- Arran Mccullough
-
- META-INF/MANIFEST.MF 0.1 kB
- META-INF/context.xml 0.1 kB
- WEB-INF/classes/com/.../support/Item.class 0.8 kB
- WEB-INF/classes/.../TabPaneOneBean.class 0.9 kB
- WEB-INF/classes/.../TabPaneTwoBean.class 1 kB
- WEB-INF/lib/icefaces-ace.jar 6.46 MB
- WEB-INF/lib/icefaces.jar 706 kB
- WEB-INF/lib/javax.faces-2.2.14.jar 3.00 MB
- WEB-INF/web.xml 2 kB
- index.xhtml 0.5 kB
- welcomeICEfaces.xhtml 2 kB
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Verified using attached test case and ICEfaces EE-3.3.0 maintenance branch r51455, Tomcat 8, MS edge, IE 11, 10, 9, 8, 7, FF 47, Chrome 57.
r51452: backported fix to the EE 3.3 maintenance branch.
Verified ICEfaces4 trunk r 51397 with attached case, on MsEdge38, IE11, FF49, Chrome56 and Tomcat7.
r51397: fix during visitTree to only regenerate the data model when it is necessary to visit rows, thus preventing initializing view-scoped beans bound to ace:dataTable components that haven't come into view yet
This fix doesn't break ICE-9585, as tested with attached welcomeICEfaces.xhtml modified version.
This behaviour where the dataTable's values are evaluated is caused by the fix for issue ICE-9585 . Reverting the fix solves this problem without visible regressions in data table's behaviour.
Something related to the tabpane's cache mode setting perhaps?
Attached test case.
Steps:
- Load welcomeICEfaces .jsf
- In the server logs it will show the following (incorrect):
TabPaneTwoBean Initialized!
TabPaneOneBean Initialized! - With the ace:dataTable commented out of the second tabPane the following is shown on page load (correct):
TabPaneOneBean Initialized!
Resolved.