You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Jozef Dropco <jo...@gmail.com> on 2010/04/22 11:50:20 UTC
[Trinidad]ChartDrillDownListener
I have following problem that I cant solve. I get strange exception.
Caused by: javax.el.PropertyNotFoundException: /manager/overview.xhtml
@197,147 chartDrillDownListener="#{facilityOverview.drillDown}":
Property 'drillDown' not found on type beans.overview.FacilityOverviewBean
but in facilityOverviewBean I have it.
faces-config.xml
<managed-bean>
<managed-bean-name>facilityOverview</managed-bean-name>
<managed-bean-class>beans.overview.FacilityOverviewBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
facilityoverviewBean
public class facilityoverviewBean implements Serializable{
...
public void drillDown(ChartDrillDownEvent event) {
System.out.println(event.getSource());
}
...
}
configuration: trinidad 1.2.13, JSF1.2, tomcat
Whats wrong? Please help.
Jozef
RE: [Trinidad]ChartDrillDownListener
Posted by GOVAERS Erik <Er...@welzijn.provant.be>.
Hi Jozef,
Have a look at this
http://www.mail-archive.com/users@myfaces.apache.org/msg54570.html
Erik
Erik Govaers
Boomgaardstraat 22 | 2600 Antwerpen
Tel.: 03 240 56 72
erik.govaers@welzijn.provant.be
-----Oorspronkelijk bericht-----
Van: Jozef Dropco [mailto:jozef.dropco@gmail.com]
Verzonden: donderdag 22 april 2010 12:21
Aan: MyFaces Discussion
Onderwerp: Re: [Trinidad]ChartDrillDownListener
Sorry Erik, my fault I didnt copy/paste code but write it instead. this is exactly code which I have
public class FacilityOverviewBean implements Serializable{
public FacilityOverviewBean() {
}
public ChartModel getHistory() {
List<String> group = new ArrayList<String>();
List<String> series = new ArrayList<String>();
ArrayList<List<Double>> values = new ArrayList<List<Double>>();
series.add("Prices");
for (Pricepolicy policy : facility.getPricepolicies()) {
group.add(policy.getName());
values.add(Arrays.asList(policy.getPrice().getPrice()));
}
ChartModel chart = new ChartModel();
try {
chart.prepareChart(group, series, null, values);
} catch (ISException ex) {
Logger.getLogger(FacilityOverviewBean.class.getName()).log(Level.SEVERE,
null, ex);
return null;
}
return chart;
}
public void drillDown(ChartDrillDownEvent event) {
System.out.println("kua");
System.out.println(event.getSource());
}
}
webpage contains this
<tr:chart type="line" value="#{facilityOverview.history}"
chartDrillDownListener="#{facilityOverview.drillDown}"/>
The chart displays correctly but the listener does not work :(
On 22.4.2010 12:11, GOVAERS Erik wrote:
> Hi Jozef,
>
> Does the name of your managed bean class begin with capital 'F' (cf. FacilityOverviewBean in config)?
>
> Erik
>
>
>
> Erik Govaers
> Boomgaardstraat 22 | 2600 Antwerpen
> Tel.: 03 240 56 72
> erik.govaers@welzijn.provant.be
>
>
>
>
>
> -----Oorspronkelijk bericht-----
> Van: Jozef Dropco [mailto:jozef.dropco@gmail.com]
> Verzonden: donderdag 22 april 2010 11:50
> Aan: MyFaces Discussion
> Onderwerp: [Trinidad]ChartDrillDownListener
>
> I have following problem that I cant solve. I get strange exception.
>
> Caused by: javax.el.PropertyNotFoundException: /manager/overview.xhtml
> @197,147 chartDrillDownListener="#{facilityOverview.drillDown}":
> Property 'drillDown' not found on type
> beans.overview.FacilityOverviewBean
>
> but in facilityOverviewBean I have it.
>
> faces-config.xml
> <managed-bean>
> <managed-bean-name>facilityOverview</managed-bean-name>
> <managed-bean-class>beans.overview.FacilityOverviewBean</managed-bean-
> class> <managed-bean-scope>session</managed-bean-scope>
> </managed-bean>
>
> facilityoverviewBean
> public class facilityoverviewBean implements Serializable{ ...
> public void drillDown(ChartDrillDownEvent event) {
> System.out.println(event.getSource());
> }
> ...
> }
>
> configuration: trinidad 1.2.13, JSF1.2, tomcat
>
> Whats wrong? Please help.
> Jozef
>
> Disclaimer: Op deze e-mail is de wet van 13 juni 2005 over het vertrouwelijke karakter van elektronische communicatie van toepassing. De tekst van het betrokken artikel kun je op onze website consulteren.
> http://www.provant.be/provant_disclaimer.jsp
>
>
>
Disclaimer: Op deze e-mail is de wet van 13 juni 2005 over het vertrouwelijke karakter van elektronische communicatie van toepassing. De tekst van het betrokken artikel kun je op onze website consulteren.
http://www.provant.be/provant_disclaimer.jsp
Re: [Trinidad]ChartDrillDownListener
Posted by Jozef Dropco <jo...@gmail.com>.
Sorry Erik, my fault I didnt copy/paste code but write it instead. this
is exactly code which I have
public class FacilityOverviewBean implements Serializable{
public FacilityOverviewBean() {
}
public ChartModel getHistory() {
List<String> group = new ArrayList<String>();
List<String> series = new ArrayList<String>();
ArrayList<List<Double>> values = new ArrayList<List<Double>>();
series.add("Prices");
for (Pricepolicy policy : facility.getPricepolicies()) {
group.add(policy.getName());
values.add(Arrays.asList(policy.getPrice().getPrice()));
}
ChartModel chart = new ChartModel();
try {
chart.prepareChart(group, series, null, values);
} catch (ISException ex) {
Logger.getLogger(FacilityOverviewBean.class.getName()).log(Level.SEVERE,
null, ex);
return null;
}
return chart;
}
public void drillDown(ChartDrillDownEvent event) {
System.out.println("kua");
System.out.println(event.getSource());
}
}
webpage contains this
<tr:chart type="line" value="#{facilityOverview.history}"
chartDrillDownListener="#{facilityOverview.drillDown}"/>
The chart displays correctly but the listener does not work :(
On 22.4.2010 12:11, GOVAERS Erik wrote:
> Hi Jozef,
>
> Does the name of your managed bean class begin with capital 'F' (cf. FacilityOverviewBean in config)?
>
> Erik
>
>
>
> Erik Govaers
> Boomgaardstraat 22 | 2600 Antwerpen
> Tel.: 03 240 56 72
> erik.govaers@welzijn.provant.be
>
>
>
>
>
> -----Oorspronkelijk bericht-----
> Van: Jozef Dropco [mailto:jozef.dropco@gmail.com]
> Verzonden: donderdag 22 april 2010 11:50
> Aan: MyFaces Discussion
> Onderwerp: [Trinidad]ChartDrillDownListener
>
> I have following problem that I cant solve. I get strange exception.
>
> Caused by: javax.el.PropertyNotFoundException: /manager/overview.xhtml
> @197,147 chartDrillDownListener="#{facilityOverview.drillDown}":
> Property 'drillDown' not found on type beans.overview.FacilityOverviewBean
>
> but in facilityOverviewBean I have it.
>
> faces-config.xml
> <managed-bean>
> <managed-bean-name>facilityOverview</managed-bean-name>
> <managed-bean-class>beans.overview.FacilityOverviewBean</managed-bean-class>
> <managed-bean-scope>session</managed-bean-scope>
> </managed-bean>
>
> facilityoverviewBean
> public class facilityoverviewBean implements Serializable{ ...
> public void drillDown(ChartDrillDownEvent event) {
> System.out.println(event.getSource());
> }
> ...
> }
>
> configuration: trinidad 1.2.13, JSF1.2, tomcat
>
> Whats wrong? Please help.
> Jozef
>
> Disclaimer: Op deze e-mail is de wet van 13 juni 2005 over het vertrouwelijke karakter van elektronische communicatie van toepassing. De tekst van het betrokken artikel kun je op onze website consulteren.
> http://www.provant.be/provant_disclaimer.jsp
>
>
>
RE: [Trinidad]ChartDrillDownListener
Posted by GOVAERS Erik <Er...@welzijn.provant.be>.
Hi Jozef,
Does the name of your managed bean class begin with capital 'F' (cf. FacilityOverviewBean in config)?
Erik
Erik Govaers
Boomgaardstraat 22 | 2600 Antwerpen
Tel.: 03 240 56 72
erik.govaers@welzijn.provant.be
-----Oorspronkelijk bericht-----
Van: Jozef Dropco [mailto:jozef.dropco@gmail.com]
Verzonden: donderdag 22 april 2010 11:50
Aan: MyFaces Discussion
Onderwerp: [Trinidad]ChartDrillDownListener
I have following problem that I cant solve. I get strange exception.
Caused by: javax.el.PropertyNotFoundException: /manager/overview.xhtml
@197,147 chartDrillDownListener="#{facilityOverview.drillDown}":
Property 'drillDown' not found on type beans.overview.FacilityOverviewBean
but in facilityOverviewBean I have it.
faces-config.xml
<managed-bean>
<managed-bean-name>facilityOverview</managed-bean-name>
<managed-bean-class>beans.overview.FacilityOverviewBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
facilityoverviewBean
public class facilityoverviewBean implements Serializable{ ...
public void drillDown(ChartDrillDownEvent event) {
System.out.println(event.getSource());
}
...
}
configuration: trinidad 1.2.13, JSF1.2, tomcat
Whats wrong? Please help.
Jozef
Disclaimer: Op deze e-mail is de wet van 13 juni 2005 over het vertrouwelijke karakter van elektronische communicatie van toepassing. De tekst van het betrokken artikel kun je op onze website consulteren.
http://www.provant.be/provant_disclaimer.jsp