Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

web ui not picking up javascript changes unless ?debug=true

Working with the Hello World example on Team Concert v.20070711-2021 I have run into a problem where changes made to the HelloWorldPageView.js file (such as changing the button text) does not show up when restarting the JETTY server under the normal mode (http://localhost:9080/jazz/web/projects/Eclipse%20Project). However, if I specify the URL with the debug option (http://localhost:9080/jazz/web/projects/Eclipse%20Project?debug=true) I see the changes correctly. This happens even if I create a new launch config from the "Open run dialog ..." in the OSGi framework section.

0 votes



2 answers

Permanent link
You will need to clean your browser cache to see your changes. When run
normally the javascript code is optimized using version id on the urls
(In fact multiple files are downloaded in bulk. If the version id not
not change the browser cache version is used. The version id will not
change when running in the Jetty development environment. When you turn
on debug the javascript files are downloaded individually without
version identifiers.

Richard

clawton wrote:
Working with the Hello World example on Team Concert v.20070711-2021 I
have run into a problem where changes made to the
HelloWorldPageView.js file (such as changing the button text) does
not show up when restarting the JETTY server under the normal mode
(http://localhost:9080/jazz/web/projects/Eclipse%20Project). However,
if I specify the URL with the debug option
(http://localhost:9080/jazz/web/projects/Eclipse%20Project?debug=true)
I see the changes correctly. This happens even if I create a new
launch config from the "Open run dialog ..." in the OSGi
framework section.

0 votes


Permanent link
Craig, here's what I do when coding:

- Turn off Firefox's cache via the "Disable Cache" feature of the Web Development Toolbar extension (https://addons.mozilla.org/en-US/firefox/addon/60)
- Run with the ?debug=true query param option set

In this mode you get your code changes every time.

PS - Don't forget to re-enable caching after you're done coding, or you'll quickly discover how important it is to web responsiveness and scalability :-)

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938

Question asked: Jul 25 '07, 2:09 p.m.

Question was seen: 9,643 times

Last updated: Jul 25 '07, 2:09 p.m.

Confirmation Cancel Confirm