> sounds good! But I would need a minimal example to implement this 
> solution. Do you have some piece of code at hand?
>
> In addition: What do you mean by "dynamic host page"? My host page is 
> minimalistic and without content. When tie application starts I create a 
> DockiLayoutPanel and place it as the root panel.
>

It means that you do not use a static index.html as host page but an 
index.jsp or a 
servlet: http://www.gwtproject.org/articles/dynamic_host_page.html

The most basic implementation on how to inject additional JSON encoded data 
into the host page is already covered by the link above. If you want more 
structured data then you can use JSO's or AutoBeans instead of GWT's 
Dictionary class (which only supports key value constructs)

To add a custom header to each GWT-RPC request you need to implement a 
custom RpcRequestBuilder by extending it and overriding 
doFinish(RequestBuilder). You can configure your GWT-RPC service to use the 
custom RpcRequestBuilder by casting the service into ServiceDefTarget and 
call the appropriate setter. You have to do this for all your services.

You can also handle the HTTP Response code in your custom RpcRequestBuilder 
by wrapping the provided RequestCallback with a customized RequestCallback. 
This can be done by overriding doSetCallback(RequestBuilder, 
RequestCallback). For example your custom RequestCallback could fire an 
OutdatedAppEvent() on the event bus so that some other class can provide 
user feedback and finally reload the app.

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to