Results 1 to 3 of 3
  1. #1
    Senior Member
    Join Date
    Jul 2009
    Location
    not
    Posts
    41

    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
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,090
    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
    Location
    not
    Posts
    41

    Talking

    thank you !!

 

 

Similar Threads

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

Bookmarks

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 05:21 PM.