This content has been marked as final.
Show 3 replies
-
1. Re: Bug Excel Exporter with DataModel
philippeaubertin Feb 10, 2011 7:50 AM (in response to philippeaubertin)Please...
-
2. Re: Bug Excel Exporter with DataModel
felixknecht Feb 11, 2011 4:38 AM (in response to philippeaubertin)It's only have the truth. First part of the if clause is 'instanceof Iterable':
@SuppressWarnings("unchecked") public static Iterator unwrapIterator(Object value) { if (value instanceof Iterable) { return ((Iterable) value).iterator(); } else if (value instanceof DataModel && ((DataModel) value).getWrappedData() instanceof Iterable)
So all you should need to do is to have your model implementing 'Iterable', e.g.
public abstract class MyDataModel<T> extends ExtendedDataModel implements Iterable<T> { ... @Override public Iterator<T> iterator() { return myFullResultList.iterator(); } ...
-
3. Re: Bug Excel Exporter with DataModel
philippeaubertin Feb 11, 2011 9:15 AM (in response to philippeaubertin)It's work fine,
I should have think about it on my own.Thank you so much for your help.