• Post Reply Bookmark Topic Watch Topic
  • New Topic

a4j:loadScript loads resource once during application work

 
Boris Romashov
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use a4j:loadScript tag in my application.
As my scripts are being changed frequently during development I want to be able to edit my js scripts without redeploying application.
But it seems that a4j:loadScript is executed only once on the first usage and then gives me old version.
Can I change this behaviour ?
 
Tim Holloway
Bartender
Posts: 18408
58
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In a lot of cases, a change to the WAR will cause the script file to be reloaded on the next page request that needs it. Sometimes that doesn't happen, however, though. I find I can usually force a reload by calling the script file's URL directly from the browser navigation toolbar. In extreme cases, I'll see that the displayed file is still out of date, but a refresh (F5 key) will often correct that.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!