Hey All,
I am using a function like this to return a list of objects
public List<Country> getCountries(String market_code)
throws Exception {
.....
....
...
return list;
}
Using a debugger I can clearly see that list contains a list
of Country.
County is created like this:
package admin;
import java.io.Serializable;
public class Country implements Serializable {
public static final long serialVersionUID =
103844514947365244L;
public String country_code="";
public String country_name="";
public Country( ) { }
public Country(String country_code, String country_name) {
this.country_code = country_code;
this.country_name = country_name;
}
}
I also have a County.as file that looks like this:
package admin
{
[Bindable]
[RemoteClass(alias="admin.Country")]
public class Country
{
public Country() {}
public country_code:String;
public country_name:String;
}
}
No the problem is that each time I get data back from the
java backedn I get a list of Objects, not a list of Country
objects.
Did I miss something obvious?
This was done with Blaze-DS but I get the same list using
WebORB.
Is it possible at all to get a list of Country, or do I need
to cast that myself using a for each loop??
Ries