hape[] getShapes(String databaseName) throws ShapeException,
DbException;

It can't throw whatever exception, as far as javascript code can only
handle certain type of exceptions

On 26 ago, 11:34, hezjing <[EMAIL PROTECTED]> wrote:
> Hi
>
> The GWT 1.5.1's Javadoc for the interface AsyncCallback<T> described
> this example,
>
> If the service interface defines a method called getShapes as follows:
> Shape[] getShapes(String databaseName) throws ShapeException, DbException;
>
> Its asynchronous counterpart method be declared as:
> void getShapes(String databaseName, AsyncCallback callback)
>
> I think with Java 5, the asynchronous method should be declared as
> void getShapes(String databaseName, AsyncCallback<Shape[]> callback) ?
>
> Another question is how do we declare the asynchronous method if the
> service method is a void method?
>
> I believe it is very helpful to describe this in the Javadoc too :-)
>
> --
>
> Hez
--~--~---------~--~----~------------~-------~--~----~
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