Results 1 to 3 of 3
  1. #1
    Senior Member
    Join Date
    Jul 2009

    2 ArrayList for two pages ?? (StockList example)

    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 ?

  2. #2
    Join Date
    Jul 2006
    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.

  3. #3
    Senior Member
    Join Date
    Jul 2009


    thank you !!



Similar Threads

  1. Stocklist JMS demo with WebSphere MQ
    By sharathbabuk in forum General
    Replies: 8
    Last Post: July 30th, 2010, 03:18 PM
  2. Replies: 8
    Last Post: May 22nd, 2008, 05:01 AM
  3. Replies: 8
    Last Post: May 7th, 2008, 09:53 AM
  4. Replies: 4
    Last Post: March 19th, 2008, 10:10 AM
  5. Replies: 5
    Last Post: February 22nd, 2008, 10:37 AM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
All times are GMT +1. The time now is 11:12 AM.