Hey Isaac,
So far I've been using Mozilla to test my page. I had just tried in IE
6 and I see that when I hover over a row, the columns to the right of
the first one end up disappearing until I resize the column or the
window or something, then again disappear as soon as I hover into the
table. When I drag to resize the column onto the left, the second
column shows up. Has any such behaviour been encountered, any reason
or solution for it? Just checking to see if this was a common thing.

Thanks
Suri

On Nov 19, 10:07 am, Suri <[EMAIL PROTECTED]> wrote:
> Hi Isaac,
> I got a test page running :)
> I took some time out for a moment to draw a few class diagrams to
> understand what I needed to do and I followed through. I was able to
> get a test page that gets the data and displays it correctly to the
> page for now. Baby step, but a pretty confidence boosting one after
> all this time. I guess the questions would be a lot more intelligent
> from now on maybe. Thanks again for the patience.
>
> My next steps are:
> 1) Figure out how to obtain table data for a selected item and display
> it (I guess this would be adding a param to the request when making
> the service call and then using that to organize the correct set of
> records at the server side)
> 2) Be able to figure out how sort/paginate at the client-side only
>
> And then more to come. Phew. I'll ask more questions as I hit more
> walls. Thanks again.
>
> On Nov 18, 12:05 pm, Suri <[EMAIL PROTECTED]> wrote:
>
> > Thanks Isaac. I'm going to try this first and see how it goes.
> > Appreciate the help again. I was aware of the places its called. I
> > think I did the wrong thing by thinking the reference->hierarchy meant
> > its going to show overall calls in the project but for that i'd
> > probably have to choose references->project while hierarchy shows me
> > only for the current class. Thanks again.
>
> > On Nov 18, 12:02 pm, "Isaac Truett" <[EMAIL PROTECTED]> wrote:
>
> > > You wouldn't call requestRows(). Ever. PagingScrollTable requests rows
> > > from the TableModel to display the current page. You don't even need
> > > to set the current page yourself, because it defaults to page 1. So
> > > just create the table and add it to your page. If you've written your
> > > TableModel properly, you'll see the first page of data.
>
> > > As for where requestRows() gets called, Eclipse tells me it's called
> > > in 8 places in the Incubator code, including CachedTableModel:1068,
> > > PagingScrollTable:1187, and TableBulkRenderer:1192. You can set a
> > > breakpoint and trace through those if you're curious.
>
> > > On Tue, Nov 18, 2008 at 11:44 AM, Suri <[EMAIL PROTECTED]> wrote:
>
> > > > Right, and that's exactly what I thought. However, looking at the
> > > > code, I can't see anywhere where the requestRows belonging to the
> > > > DataSourceTableModel is called. I tried to do a reference hierarchy on
> > > > it in eclipse and didn't get any results. So that's really where my
> > > > question is I guess. So if I wanted to request data remotely, would I
> > > > be making a call like tableModel.requestRows(..) in the
> > > > PagingScrollTableDemo class? Is this something that basically was
> > > > there but was not being used in the current demo?
>
> > > > Thanks again. I've been feeling pretty dumb about this.
> > > > Suri
>
> > > > On Nov 18, 11:11 am, "Isaac Truett" <[EMAIL PROTECTED]> wrote:
> > > >> DataSourceTableModel lines 114-124 (starting with the "Send RPC
> > > >> request for data" comment) is where the request for data is sent. When
> > > >> that call returns successfully, the TableModel callback's
> > > >> onRowsReady() method is called.
>
> > > >> On Tue, Nov 18, 2008 at 11:02 AM, Suri <[EMAIL PROTECTED]> wrote:
>
> > > >> > Hi Isaac,
> > > >> > What I want to know is,
> > > >> > 1) Where and how does the data actually get loaded into the table.
> > > >> > Where is the call that does this? Looking through the 
> > > >> > PagingScrollDemo
> > > >> > code I can't seem to isolate that point from where the data is
> > > >> > retrieved remotely and loaded up into a table. i.e what call triggers
> > > >> > this action from the PagingScrollTableDemo to finally obtain the data
> > > >> > and which point in the whole process does it happen. In the case of
> > > >> > the ScrollTableDemo I see that the onModuleLoaded() method is called
> > > >> > which seems to be responsible for initializing the data. I was able 
> > > >> > to
> > > >> > get the same successfully compiled using my own example, but now when
> > > >> > trying to understand the PagingScrollTableDemo, I am getting lost as
> > > >> > to what call is specifically to begin the data retrieval and loading
> > > >> > into the table.
>
> > > >> > Thanks for the patience.
>
> > > >> > Suri
>
> > > >> > On Nov 18, 10:40 am, "Isaac Truett" <[EMAIL PROTECTED]> wrote:
> > > >> >> What do you want to know?
>
> > > >> >> The code you posted yesterday won't even compile, so I imagine you
> > > >> >> haven't actually implemented anything yet. Why don't you at least 
> > > >> >> get
> > > >> >> to the point where you have some compilable code and then post
> > > >> >> questions about that code if you can't get it to work the way you
> > > >> >> want?
>
> > > >> >> On Tue, Nov 18, 2008 at 10:28 AM, Suri <[EMAIL PROTECTED]> wrote:
>
> > > >> >> > Hey Isaac,
> > > >> >> > Or could you explain a little more about how to use the 
> > > >> >> > TableModel?
> > > >> >> > Thanks
> > > >> >> > Suri
>
> > > >> >> > On Nov 17, 1:25 pm, Suri <[EMAIL PROTECTED]> wrote:
> > > >> >> >> Hey Isaac,
> > > >> >> >> Thanks for that information. Based on that let me know what I 
> > > >> >> >> have
> > > >> >> >> below is correct
>
> > > >> >> >> public class TestTableModel extends TableModel<MyBean>
> > > >> >> >> {
> > > >> >> >>   // code to initialize  the RPC service - possibly in a 
> > > >> >> >> constructor?
>
> > > >> >> >>   public void onRequest()
> > > >> >> >>   {
> > > >> >> >>     // code to use the use the service and make a call
> > > >> >> >>     service.requestRows(request, new
> > > >> >> >> AsyncCallback<SerializableResponse<MyBean> result>>() {
> > > >> >> >>                      public void onFailure(Throwable caught)
> > > >> >> >>                         {
> > > >> >> >>                                 //do something
> > > >> >> >>                                 callback.onFailure(new 
> > > >> >> >> Exception....)
> > > >> >> >>                         }
> > > >> >> >>                        public void onSuccess
> > > >> >> >> (SerializableResponse<MyBean> result)
> > > >> >> >>                        {
> > > >> >> >>                              callback.onRowsReady(request, 
> > > >> >> >> result);
> > > >> >> >>                        }
> > > >> >> >>       });
> > > >> >> >>   }
>
> > > >> >> >> }
>
> > > >> >> >> public class MyTableDemo
> > > >> >> >> {
>
> > > >> >> >>   public TesttableModel myTableModel = null;
>
> > > >> >> >>   public void onModuleLoad()
> > > >> >> >>   {
> > > >> >> >>         // code to create/initialize tables
> > > >> >> >>          ....
> > > >> >> >>         scrollTable = createScrollTable(headerTable, dataTable,
> > > >> >> >> footerTable);
>
> > > >> >> >>       // to retrieve the data remotely and store in the table 
> > > >> >> >> created
> > > >> >> >>       scrollTable.getTableModel().onRequest();
> > > >> >> >>   }
>
> > > >> >> >>  public void createScrollTable(.....)
> > > >> >> >>  {
> > > >> >> >>     myTableModel = new TestTableModel();
> > > >> >> >>     TableDefinition<MyBean> myTableDef = createTableDefinition();
> > > >> >> >>     MyScrollingTable<MyBean> myScrollTable = new MyScrollingTabel
> > > >> >> >> (myTableModel, dataTable, headerTable, myTableDef);
> > > >> >> >>     myScrollTable.setFooterTable(footerTable);
>
> > > >> >> >>  }
>
> > > >> >> >>  // the other usual code continues
>
> > > >> >> >> }
>
> > > >> >> >> I thought it best to give some sort of example to see if what I'm
> > > >> >> >> thinking is right. Above you see that I created my own 
> > > >> >> >> TableModel from
> > > >> >> >> the existing one.
> > > >> >> >> Additionally, I showed the snippet of code where the table model 
> > > >> >> >> is
> > > >> >> >> added to the scroll table in the TableDemo class.
> > > >> >> >> And finally in the onModuleLoad method you can see the tableModel
> > > >> >> >> being accessed and being called to retrieve the data remotely. 
> > > >> >> >> Is that
> > > >> >> >> right?
>
> > > >> >> >> I'm guessing somewhere the onRowsReady method would need to be
> > > >> >> >> implemented by me? Where would that be? If it isn't expected to 
> > > >> >> >> be
> > > >> >> >> implemented by me, then
> > > >> >> >> how would I end up creating a table when my bean has other 
> > > >> >> >> objects in
> > > >> >> >> it as opposed to only primitive data.
>
> > > >> >> >> Hope that gives you an idea of where my confusion is, since its 
> > > >> >> >> at
> > > >> >> >> about 3 places i think :)
>
> > > >> >> >> Thanks again
>
> > > >> >> >> Suri
>
> > > >> >> >> On Nov 17, 10:09 am, "Isaac Truett" <[EMAIL PROTECTED]> wrote:
>
> > > >> >> >> > Suri,
>
> > > >> >> >> > PagingScrollTable gets data from a TableModel using a 
> > > >> >> >> > Request/Callback
> > > >> >> >> > mechanism similar to RPC. The simplest way to get that data 
> > > >> >> >> > from the
> > > >> >> >> > server would be to implement TableModel and have onRequest() 
> > > >> >> >> > invoke an
> > > >> >> >> > RPC service. The RPC AsyncCallback's onSuccess() would call 
> > > >> >> >> > the table
> > > >> >> >> > Callback's onRowsReady().
>
> > > >> >> >> > - Isaac
>
> > > >> >> >> > On Mon, Nov 17, 2008 at 9:50 AM, Suri <[EMAIL PROTECTED]> 
> > > >> >> >> > wrote:
>
> > > >> >> >> > > Hi Isaac,
> > > >> >> >> > > I understand quite a bit of the code now and how to use it. 
> > > >> >> >> > > I set up a
> > > >> >> >> > > simple example that uses the ScrollTableDemo like code 
> > > >> >> >> > > initially to
> > > >> >> >> > > understand what's going on. However, there is one aspect I'm 
> > > >> >> >> > > not able
> > > >> >> >> > > to understand clearly. Could you possibly help me understand 
> > > >> >> >> > > how the
> > > >> >> >> > > Data is retrieved remotely in the PagingScrollTable. I see a 
> > > >> >> >> > > reference
> > > >> >> >> > > to a DataSourceModel but I'm not sure how/when it gets 
> > > >> >> >> > > invoked and
> > > >> >> >> > > what exactly happens that causes the data to get loaded into 
> > > >> >> >> > > the
> > > >> >> >> > > table?
>
> > > >> >> >> > > Thanks
> > > >> >> >> > > Suri
>
> > > >> >> >> > > On Nov 11, 9:29 am, Suri <[EMAIL PROTECTED]> wrote:
> > > >> >> >> > >> Aha. I understand now. I guess I went too far in the linked 
> > > >> >> >> > >> README
> > > >> >> >> > >> document provided. It needed to be as far as the setting up 
> > > >> >> >> > >> the
> > > >> >> >> > >> eclipse section and ignoring the rest from
>
> ...
>
> read more »
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to