• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Wonder's ERPCategoryChart usage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Wonder's ERPCategoryChart usage


  • Subject: Wonder's ERPCategoryChart usage
  • From: Baiss Eric Magnusson <email@hidden>
  • Date: Tue, 29 Dec 2009 18:31:23 -0800

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      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Wonder's ERPCategoryChart usage
      • From: Pascal Robert <email@hidden>
References: 
 >JFreeChart/Wonder liftoff (From: Baiss Eric Magnusson <email@hidden>)
 >Re: JFreeChart/Wonder liftoff (From: Michael Sharp <email@hidden>)
 >Re: JFreeChart/Wonder liftoff success (From: Baiss Eric Magnusson <email@hidden>)
 >Re: JFreeChart/Wonder liftoff success (From: Michael Sharp <email@hidden>)

  • Prev by Date: Re: Refactor java files (Prev: OT: Refactor files into packages (Eclipse))
  • Next by Date: Re: Wonder's ERPCategoryChart usage
  • Previous by thread: Re: JFreeChart/Wonder liftoff success
  • Next by thread: Re: Wonder's ERPCategoryChart usage
  • Index(es):
    • Date
    • Thread