If I understand you correctly, you have the following setup ...

class BaseClass{
}

class DerivedClass extends BaseClass {
}

public BaseClass someRPCMethod(String param1, String param2);

.. and only want to download the JS code for *DerivedClass* only when the
RPC call is made.

If that's what you are looking for - then I am afraid its not possible. GWT
will look at all classes that inherit from BaseClass and package them in the
js bundle corresponding to the code that actually uses the RPC service.
There isn't a way to escape it.

--Sri


2009/12/30 inder sharma <[email protected]>

> Hi all!
>
> I am developing an application in GWT 2.0 and using the code splitting
> feature of GWT2.0. I want to load js of some particular classes at run
> time on client side through code splitting(instead of loading complete
> js at once).These classes implements some interfaces and we uses these
> classes through interfaces at client side.
>
> The Objects of the classes are made at the server (as a reponse of RPC
> request from client)and I want to load the js of these classes when
> their Objects are transfered from server to client (at the time of
> deserialization of response Object on client).
>
> In normal scenario (without using code splitting) all the compiled js
> has been downloaded on client at once , but in our case I want that
> only that part of js (client code), which is essentially required to
> deserialize the response Object obtained via RPC call should be
> downloaded on client along with the response Object.
>
> Can any one give me some idea how I can acheive this requirement.
>
> --
>
> 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]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>

--

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