As the binding to <valueKey> to a Wonder ERPCategoryChart widget I had a
NSMutableArray<Integer> and the following error ensued:

- com.webobjects.foundation.NSMutableArray cannot be cast to java.lang.Number
java.lang.ClassCastException: com.webobjects.foundation.NSMutableArray cannot 
be cast to java.lang.Number
        at er.plot.ERPCategoryChart.createDataset(ERPCategoryChart.java:129)
        at er.plot.ERPChart.dataset(ERPChart.java:185)
        at er.plot.ERPCategoryChart.createChart(ERPCategoryChart.java:111)
        at er.plot.ERPChart.chart(ERPChart.java:200)
        at er.plot.ERPChart.imageData(ERPChart.java:217)
        at er.plot.ERPChart.imageMap(ERPChart.java:263)
        at er.plot.ERPChart.otherTagString(ERPChart.java:268)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

I then added the line for the <valueKey> (but got error)

Integer[] xint = new Integer[]{0,1,2,3,4,5,6,7,8,9,10,11};

- [Ljava.lang.Integer; cannot be cast to java.lang.Number

java.lang.ClassCastException: [Ljava.lang.Integer; cannot be cast to 
java.lang.Number
        at er.plot.ERPCategoryChart.createDataset(ERPCategoryChart.java:129)
...
What does <Ljava] imply?

Am I missing something in the binding, my <item> array is a NSArray of inner 
class objects:

        public class BarChartItem  {            // inner class
                public String[]         xNameKey;
                public String[]         yNameKey;
                public String           nameKey;
                public Number[] valueKey;
                
                BarChartItem( String[] xNameKey, String[] yNameKey, String 
nameKey, Number[] valueKey )  {      
                        this.xNameKey = xNameKey;
                        this.yNameKey = yNameKey;
                        this.nameKey = nameKey;
                        this.valueKey = valueKey;
                }
        }
Bonus question: what does the <categoryKey> do?
----
Baiss Eric Magnusson
http://www.CascadeWebDesign.com



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to