myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rafael Ribeiro <rafae...@gmail.com>
Subject [Trinidad] Chart drilldown listener problem
Date Thu, 07 Jan 2010 15:46:16 GMT
Has anyone ever been able to get the drilldown listener for Trinidad Chart
working?
I am trying as on the examples and also as on *** book but it gives me the
error below:

 Caused by: javax.el.PropertyNotFoundException: /graph.xhtml @26,5
chartDrillDownListener="#{chart.drillDown}": Property 'drillDown' not found
on type br.com.cpqd.web.bean.chart.Chart_$$_javassist_seam_2
        at
com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:73)
        at
org.apache.myfaces.trinidad.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:68)
        at
org.apache.myfaces.trinidad.component.UIXComponentBase.getProperty(UIXComponentBase.java:1151)
        at
org.apache.myfaces.trinidad.component.UIXChart.getChartDrillDownListener(UIXChart.java:151)

I also tried changing the expression to #{chart.drillDown()} as a way of
forcing it to interpret as a MethodExpression but in this case the method on
the bean is not found, by the way the backing bean is as follows:

package foo.bar;

import org.apache.myfaces.trinidad.event.ChartDrillDownEvent;
import org.apache.myfaces.trinidad.model.ChartModel;
import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;

@Name("chart")
@Scope(ScopeType.SESSION)
public class Chart {
    private ChartModel chartModel = new MyChartModel();

    public ChartModel getChartModel() {
        return this.chartModel;
    }

    public void setChartModel(ChartModel chartModel) {
        this.chartModel = chartModel;
    }

    public void drillDown(ChartDrillDownEvent event) {
        System.out.println("------------------------------------");
        System.out.println(event);
        System.out.println("------------------------------------");
    }
}


Another attempt was to specify the listener as #{chart.drillDown(this)} and
also as
#{chart.drillDown(org.apache.myfaces.trinidad.event.ChartDrillDownEvent.class)}
but both resulted in the event variable being null (also strangely enough
the method was called before the broadcastToMethodExpression method of
UIXChart was invoked, appearently it was being invoked during
getChartDrillDownListener().

 Does anyone has any tips/suggestions/whatsoever?

 best regards,
Rafael Ribeiro

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message