Hi,
I’m still having problems with this and I’d really appreciate some assistance. I am getting errors in the javascript console of the form:
Unexpected SyntaxError: Unexpected Token: ILLEGAL :8080/VFU/APP/PUBLISHED/arrow_audio.PNG
It turns out that these errors originate with the annotation on my AbstractJavaScriptComponent, which looks like this:
@JavaScript({"http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js",
"http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js",
"jquery.jsPlumb-1.5.2.js",
"VisualProgrammingCanvas.js", "mylibrary.js", "arrow_audio.png", "arrow_branch.png",
"arrow_collect.png", "arrow_information.png", "arrow_multi_multi.png", "arrow_multi_one.png",
"arrow_picture.png", "arrow_text.png", "arrow_slider.png"})
@StyleSheet({"http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css","mystyle.css"})
public class VisualProgrammingCanvas extends AbstractJavaScriptComponent implements ControlWrapperForQuestion {
That is, I get the error if this annotation is in place, even if I have removed all reference to the images from my html, js, and css. Evidently the annotation is mangling the image file name into something which javascript doesn’t like, and also generating some javascript which creates the actual error.
Although I listed only one error above, there is one for each of the arrow*.png files listed in the annotation.
I am developing with Eclipse under Linux, and the “Unexpected SyntaxError…” appears in the javascript console of the Chromium browser. With Firefox, the text “Connecting…” appears in the tab where the URL should be, and the images don’t load, but I don’t see any errors in Firebug’s error console.
Strangely, it mostly worked in a smaller Vaadin program that I was using to develop my Javascript component, but now that I am integrating the component into the project for which it was intended, it doesn’t work at all.
I’d really appreciate some help with this – I’m completely stuck.
TIA,
Matthew Fleming