Refresh design of java file stop working!

HiI’ve noticed that design refresh do not work anymore for a java file included in a application: the .java file modified in template, don’t update in the nsf with design refresh operation (also .class file don’t update).

Note that the file has been updated correctly until last monday.

Have you any clues?

Thanks in advance

Subject: Try clean up the refreshed database

I had the same problem.I was creating a Custom Converter and notice that the changes Ive made on template was not reflecting on the .nsf

So, I opened the nsf in designer, and click the “Project → Build All”.

Then, it starts to work again.

So, when you made changes in the java code, after you refresh the database, you had to build it as well.

Subject: No luck

Thanks Raphael for your response.I’ve tried to run build on the .nsf but don’t work.

Executing again refresh design, I’ve noticed that in the status bar no info about element refreshed is displayed.

Then opening java perspective of .nsf, the java file is not changed, so rebuild operation don’t run.

Subject: Create .java in WebContent\WEB-INF\src

Maybe you are creating your .java files in the wrong place.

Take a look at this article:

http://www-10.lotus.com/ldd/ddwiki.nsf/dx/Creating_a_Java_Control_in_an_NSF

Subject: I use ‘source’ folder

I’m saving .java files in a source folder named ‘source’ in WebContent/WEB-INF, and it has been added also to Java Build Path, in Project Properties.

This solution has worked well for about 4 months, until the last days.

I’ve noticed that adding a new .java file to the project, it is inherited correctly by the .nsf but the previous one not.

Edit: refresh design works for the new .java file just the first time!

Thanks for your help.