There are examples of how to do this provided by "isomorphic" (e.g.,
http://www.smartclient.com/smartgwtee/showcase/#simple_custom_ds), but
that requires that we install the "SmartGWT-EE". So far our project
has not done that, so, I would like to try to do the same thing
starting not from Isomorphic's BasicDataSource, but from GWT's
DataSource. Since my dynamic data are simple and will never be edited,
I think I only need the "fetch" function. However, I am not at all
clear on how to set up the basic HTML/ JS/ etc.

* I have added this element to the <body> element of the "bootstrap"
HTML file:
    <script src="sc/DataSourceLoader?
dataSource=myLittleCustomDataSource"></script>

* I have defined a simple "myLittleCustomDataSource.ds.xml" file in
the "/war/ds" directory, which points to the DataSource-subclass
defined (next).

* I have defined a subclass of DataSource that overrides the method
<code>public void fetchData(Criteria criteria, DSCallback callback,
DSRequest requestProperties)</code>, and so far does nothing but try
to System.err.println() the contents of the Criteria. NOTE: I am not
sure if that is the right method to override ...

* But <code>DataSource.get("myLittleCustomDataSource")</code> returns
null; and

* I get this warning, whose meaning I don't understand:
[WARN] 404 - GET /sc/DataSourceLoader?dataSource=
myLittleCustomDataSource (127.0.0.1) 1405 bytes
Request headers
Host: 127.0.0.1:54204
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-us)
AppleWebKit/531.21.11 (KHTML, like Gecko) Version/4.0.4 Safari/
531.21.10
Accept: */*
Accept-Language: en-us
Accept-Encoding: gzip, deflate
Cookie: groupBy=None
Connection: keep-alive
Referer: 
http://127.0.0.1:54204/MyLittleCustomWidget.html?gwt.codesvr=127.0.0.1:54
202
Response headers
Content-Type: text/html; charset=iso-8859-1
Content-Length: 1405

So -- how should I be doing this? Or is not possible?

thanks
Paul

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to