Yes, there's some interface I'm not getting.

For all the variables for a graph there are, in this case, 12 values. I used 
strings like <xNameKey[]> to contain the 12 values.

All the months of the year on x axis, (n) tick values on y axis, and five 
different bars each with a separate value for each month, this is the value 
binding.

In the old java package I did a lot of iterating and parsing to generate the 
graph for the package.

I can't see how to fit the old into the new.

On Dec 29, 2009, at 6:38 PM, Pascal Robert wrote:

> 
> Le 09-12-29 à 21:31, Baiss Eric Magnusson a écrit :
> 
>> 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)

>> 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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to