Reputation: 2584
The validation of my JSF .xhtml files in Eclipse lasts several minutes!
I don't know what the problem is.. It's always the same .xhtml file that requires so much time..
I know that I can disable all the Validators in Eclipse, but that's not what I want!
Does anybody has some tipps, which Validators to enable in Preferences > Validation
and which ones to disable?
And can I somehow find out which validator is currently running? So that I can disable the one that lasts so long...
Thanks for your answers!
Upvotes: 14
Views: 11424
Reputation: 2106
Additional answer to the following question: "can I somehow find out which validator is currently running?"
You can open the "Progress" view and if the Facelet HTML Validator is running you'll see a message "Facelet HTML Validator starting to validate: name-of-file.xhtml".
In my case it takes more than a dozen minutes to validate all files. Disabling only the "Facelet HTML Validator" (and none of the other validators, see the answer of Neil Griffin) helped in my case and reduced the build time extremely. I just have to remember to enable it or run automatically if I'll need it.
Upvotes: 0
Reputation: 822
There are three Preferences in Eclipse Juno that you would need to uncheck/disable:
Upvotes: 16
Reputation: 17525
Usually the reason for the long delay is, that Eclipse tries to download all XML-Schemas and DTDs it does not have in its own cache. Since many of them are not directly downloadable (e.g. internal ones), Eclipse has to wait for a network timeout.
Normally, I simply disable the entire validation stuff. For JSP/JSF it gets confused too easily anyway.
Upvotes: 1