mohamida
Is it possible to have 2 ArrayLists ("stockGenerators1" (with name as "exp1", "exp2", "exp3")... and "stockGenerators2" (with names as "item1", "item2", "item3"...)) in the same Feed Simulator class (the first one is going to be used for page1, and the other for page2), or we have to make 2 Feed simulators and 2 pages ?
And is it possible to show the two tables in the same page ?
Dario Crivelli
The FeedSimulator class is only for demonstration purpose and it is not part of the Data Adapter interface specifications.
Moreover, it was included in the demo adapter just as a placeholder for a real feed.
In general, you can show multiple tables in your page, by subscribing to the same or different items.
All the involved items may be supplied by the same Data Adapter.
In this case, the Data Adapter does not know how (e.g. in which tables) the various client pages use these items.
The Data Adapter only distinguishes the items based on the external channel by which it can get their values. There may be one or multiple such channels.
If you want to simulate getting data from multiple channels, then you may want to take advantage of the the FeedSimulator class and reuse it to create 2 FeedSimulators.
On the other hand, you may, for your convenience, reuse one FeedSimulator. In that case, you can extend it internally in whichever way.
I think that you might just extend the included stockGenerators list.