In my web app, I need to return some String. So I am using
StringRequestTarget, instead of WebPage.
The string is dynamic, so, I would like to disable browser cache.
I know WebPage can override setHeaders to set no-cache.
Is there a way to do the same thing when using  StringRequestTarget?

the following is my code snippet.
Thanks for any help.

mount(new URIRequestTargetUrlCodingStrategy("/ExportList") {
        
                        @Override
                        public IRequestTarget decode(RequestParameters 
requestParameters) {
                                
                                final ValueMap requestParams = 
decodeParameters(requestParameters);
                        
                                int listId = requestParams.getInt("id");
                                String listString = myService.getList(listId);

                                return new StringRequestTarget(listString);
                        }
                });

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to