Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.8DR#2, 1.8RC2
-
Fix Version/s: 1.8
-
Component/s: None
-
Labels:None
-
Environment:All
Description
When there are two outputCharts in a panelGrid the actionListener methods for these charts is not called.
Sample Code:
<ice:panelGrid columns="2">
<ice:outputChart id="axisOutputChartOne"
rendered="true"
type="bar"
chartTitle="Bar Chart One"
yaxisTitle="Problems"
xaxisTitle="Years"
xaxisLabels="2000, 2001, 2002, 2003"
labels="One, Two"
colors="red, blue"
data="10, 30, 40, 33: 30, 20, 30, 40"
actionListener="#{testBean.chartActionOne}"/>
<ice:outputChart id="axisOutputChartTwo"
rendered="true"
type="bar"
chartTitle="Bar Chart Two"
yaxisTitle="Problems"
xaxisTitle="Years"
xaxisLabels="1999, 2099, 2199, 2299"
labels="One, Two"
colors="blue, yellow"
data="15, 45, 66, 99: 13, 23, 20, 40"
actionListener="#{testBean.chartActionTwo}"/>
</ice:panelGrid>
Sample Code:
<ice:panelGrid columns="2">
<ice:outputChart id="axisOutputChartOne"
rendered="true"
type="bar"
chartTitle="Bar Chart One"
yaxisTitle="Problems"
xaxisTitle="Years"
xaxisLabels="2000, 2001, 2002, 2003"
labels="One, Two"
colors="red, blue"
data="10, 30, 40, 33: 30, 20, 30, 40"
actionListener="#{testBean.chartActionOne}"/>
<ice:outputChart id="axisOutputChartTwo"
rendered="true"
type="bar"
chartTitle="Bar Chart Two"
yaxisTitle="Problems"
xaxisTitle="Years"
xaxisLabels="1999, 2099, 2199, 2299"
labels="One, Two"
colors="blue, yellow"
data="15, 45, 66, 99: 13, 23, 20, 40"
actionListener="#{testBean.chartActionTwo}"/>
</ice:panelGrid>
The provided solution would work as well, but instead we have added a unique hidden field that will be used by all instances of the outputChart component.
Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\outputchart\OutputChartRenderer.java
Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\outputchart\OutputChartRenderer.java
Completed: At revision: 18653