[Andromda-user] [Newbie corner] [Image doesn't get refreshed.]

View: New views
1 Messages — Rating Filter:   Alert me  

Parent Message unknown [Andromda-user] [Newbie corner] [Image doesn't get refreshed.]

by "WalterIM" (AndroMDA Forum) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Could you please try a change in the FileDownloadServlet ?
change a generated FileDownloadServlet.java, so the following code:                if (prompt && fileName != null && fileName.trim().length() > 0)
                {
                    httpResponse.addHeader(
                        "Content-disposition",
                        "attachment; filename="" + fileName + '"');
                }
changes to:                if (prompt && fileName != null && fileName.trim().length() > 0)
                {
                    httpResponse.addHeader(
                        "Content-disposition",
                        "attachment; filename="" + fileName + '"');
                    httpResponse.setHeader("Cache-Control", "no-cache");
                }
note the new line:httpResponse.setHeader("Cache-Control", "no-cache");
compile just the web subproject (mvn -f web/pom.xml), try and let me know if the image refreshs. If it works I add the change to the JSF2 cartridge.
--
Walter MourĂ£o
http://waltermourao.com.br
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=26195#26195
Posting to http://forum.andromda.org/ is preferred over posting to the mailing list!


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
LightInTheBox - Buy quality products at wholesale price