Hi Thomas,
I have deleted the file you suggested: Local\XSP\Test5......java
I went back to my XPage, clicked "Preview in Notes", it generated a new Java file BUT: I still get my old alert(...) boxes showing up even if there is no "alert" code at all in the current xps file. It's still cached somewhere but I don't understand where :-)
Thanks for the suggestion anyway,
Adam