java - Using external library classes in client side :GWT -


i want use solrj library in gwt application. made gwt server class communicate solrj client. client code gets collection<facetfield> server class , builds ui.

my problem gwt complains missing source code:

no source code available type org.apache.solr.client.solrj.response.facetfield; did forget inherit required module? 

i can create additional module solrj , gwt compile js. compile lot of other classes, might never use on client.

another way write wrappers of solr classes , pass them client. i'm not sure, because these wrappers import solr classes , might have same problem again.

what best way solve this?

write datalorry(dummy object)

server|| facetfield obj==>datalorry obj==> client. 

flush required data in datalorry object.

that saves lot of data traffic between client , server even, since passing required data on wire.

make sure object serializable , in shared package.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -

php - Accessing static methods using newly created $obj or using class Name -