Hi Bowie,
I use the code below. The PDF_HOST_URL variable is the url to my local
servlet. downloadFrame is a GWT Frame object.
pdfService.storeFormInSession(form, new AsyncCallback<EfPdfData>() {
public void onSuccess(EfPdfData arg0) {
RootPanel.get().remove(downloadFrame);
downloadFrame.setUrl(PDF_HOST_URL);
downloadFrame.setVisible(false);
RootPanel.get().add(downloadFrame);
downloadFrame.addLoadHandler(new LoadHandler() {
public void onLoad(LoadEvent arg0) {
waitDialog.hide();
}
});
new ReadyStateWatch(downloadFrame, waitDialog).addReadyStateChangeHandler(
new ValueChangeHandler<ReadyState>() {
public void onValueChange(ValueChangeEvent<ReadyState> event) {
}
});
}
public void onFailure(Throwable exception) {
new EfDialog(exception.getMessage()).show();
waitDialog.hide();
}
});
On 14 March 2012 10:22, dodo dard <[email protected]> wrote:
> Hi Appien
>>
>
> Ho do you call the servlet ?
>
> ====================
> http://www.html5bydemo.com/
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/WeXfqz5OpVgJ.
>
> 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.
>
--
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.