views:

11

answers:

0

I'm working on some javascript files in a Maven project web application in RAD 7.5.

My files use libraries, and refer to each other. I'm having trouble working out how to set RAD up so that I get error-checking and code completion. Right now, all my scripts show errors wherever I use an external library.

I've set up my folders and scripts as follows:

  • libraries (read-only) in src/main/webapp/js/lib
  • scripts (read/write) in src/main/webapp/js/scripts

I've then set up my javascript properties (Right-click on project -> Properties -> JavaScript -> JavaScript Libraries) so that js/lib is defined as a library in the Libraries tab, and js/scripts is defined as a source folder in the Source tab.

It's obviously not working, or I wouldn't be asking. My files in js/scripts are still showing errors wherever I use functionality introduced by my libraries. Defining the script folder as a library resolves all the errors, but I then can't edit the files.

What am I doing wrong?