Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.6DR#5
-
Component/s: Sample Apps
-
Labels:None
-
Environment:WinXP SP2, Firefox 1.5.0.11, JBoss 4.0.4 GA
-
Affects:Sample App./Tutorial
-
Workaround Exists:Yes
-
Workaround Description:Use the JSP component-showcase.
Description
Build the Facelets version of component showcase. Go to the Components/Charts/Combining Charts section. Notice how the chart shows up fine. Click on the navigation tree to see some other display, and then click on Combining Charts again. This second view will not work properly, the chart image won't display.
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
The JSP version of component-showcase uses static includes, and the Facelets version uses dynamic includes, which means that the JSP version has on monolithic long-lived component tree, whereas the Facelets version's chart component gets remade each time you visit it, which the associated bean did not account for.
While I was investigating the issue, I found that OutputChart did not implement the saveState and restoreState functionality, so I added that, plus some random tweaks.
Subversion 14007
icefaces\samples\component-showcase\src\com\icesoft\icefaces\samples\showcase\components\charts\CombinedChartBean.java
icefaces\component\src\com\icesoft\faces\component\outputchart\OutputChart.java
icefaces\component\src\com\icesoft\faces\component\outputchart\OutputChartRenderer.java