How to update PagingScrollTable?

2008-11-21 Thread DevUnion

Could anybody tell me how I can to update PagingScrollTable? From time
to time data on the server is changed. Si, I want to use Timer to keep
the table in actual state. I've tried something like this:

new Timer() {
public void run() {
scrollTable.reloadPage();
scrollTable.redraw();
}
}.scheduleRepeating(2);

But it doesn't work.

Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
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
-~--~~~~--~~--~--~---



Problem with SerializableResponse serialization

2008-11-12 Thread DevUnion

I'm using PagingScrollTable from GWT Incubator. And I've wrote small
service for data retrieving:

public SerializableResponse loadAllProjects(Request
request) {
List list = projectDao.loadAll();

return new SerializableResponse(
convert(list),
convertRowsData(list)
);
}

SerializableResponse class defined as:

  public static class SerializableResponse
extends
  Response implements IsSerializable {

private Collection> rows;
/ SKIPPED
  }

Response class also contains one field:

  public abstract static class Response {
private List rowValues;
  }


The problem is that on my client side I don't see row values which was
converted by convertRowsData(list) method. I've taken a look at GWT
RPC implementation and found the place where problem is.

com.google.gwt.user.server.rpc.impl.SerializabilityUtil, public static
Field[] applyFieldSerializationPolicy(Class clazz) method.

invocation of
  Field[] fields = clazz.getDeclaredFields();

returns only 'rows' field from SerializableResponse class. And skips
'rowValues' field from Response class.

This is the reason why rowValues data lost in serialization process.

So, how I can avoid this problem? Does it has sense to post the bug?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
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
-~--~~~~--~~--~--~---



How to create layout?

2008-11-05 Thread DevUnion

Hello All,

I've started GWT studying few days ago. And I have a lot of questions.
For example, I need to create next layout:

+
+
|  Logo Image Here  |   Empty
space|  Help |
+
+

I've tried next approach:

DockPanel header = new DockPanel();
header.add(clientImageBundle.firstmileLogo().createImage(),
DockPanel.WEST);
header.add(helpLink, DockPanel.EAST);

But it doesn't work.

Can anyone help me?

Thanks.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
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
-~--~~~~--~~--~--~---