This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

a4j:loadScript loads resource once during application work  RSS feed

 
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: 18709
71
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!