4

When opening JSF page (JSF + Apache Trinidad + facelet) in Eclipse (Helios), Eclipse freezes for a few seconds before the page is opened.

Also when editing the page, code complete / syntax verification is slow - for example I type <tr: and again I have to wait a few seconds before I can continue typing or tr tags are display.

It is very annoying that I have to wait each time when typing opening tag and slows me down a lot.

I am also using custom facelet tags.

What to do to avoid Eclipse freezing / slowing down? Do I have to change any configuration to speed it up?

bakoyaro
  • 2,550
  • 3
  • 36
  • 63
padis
  • 2,314
  • 4
  • 24
  • 30

5 Answers5

5

I tried using the XHTML Editor instead of the JSF editor, and the freezing seems to have stopped.

I right clicked on my *.xhtml file and selected Open with->XHTML Designer

Also, you could change the way *.xhtml files are opened by going to Window->Preferences, then General->Editors->File Associations. Select the *.xhtml extension from the File types: pane, and then select XHTML Designer in the Associated editors: pane. To make the XHTML Editor the default editor for *.xhtml files, click the "Default" button next to the Associated editors: pane.

bakoyaro
  • 2,550
  • 3
  • 36
  • 63
  • 1
    I didn't found this option in RAD, do I need to install XHTML Designer from external source or it has to be built in? – Anatoly May 08 '14 at 10:23
  • @Anatoly are you succeeded in solving this issue? – Anton Jul 02 '15 at 11:55
  • Found the blog post with this solution: it's *XML* editor : http://blogger.ziesemer.com/2008/03/facelets-and-xsd-converted-tlds.html – Anton Jul 02 '15 at 12:38
  • @Anton, I used exactly what **bakoyaro** explained, and it worked well – Anatoly Jul 05 '15 at 06:33
2

Turn off hyperlinks in your editor by going to the following path

Go to Window -> Preferences -> General -> Editors -> Text Editors -> Hyperlinking preference,

uncheck the option Open Declaration

Manigandan Arjunan
  • 2,260
  • 1
  • 25
  • 42
1

Some profiling show that the slowness is due to

org/eclipse/jst/jsf/context/symbol/internal/impl/IJavaTypeDescriptor2Impl.class

enter image description here

Its related to org.eclipse.jst.jsf.common_1.2.2.v201101211220.jar of WebTool 1.2.2

The solution is to update to the last WebTool version WebTool 3.6.2 update page

using Update Webtool Luna link

Adding metadata-complete=true to WEB-INF/faces-config.xml is a good way to prevent WebTool packages classes scanning, but AnnotationConfigurator.createFacesConfig must be modified !

bakoyaro
  • 2,550
  • 3
  • 36
  • 63
Nassim MOUALEK
  • 4,702
  • 4
  • 25
  • 44
1

I had this problems for weeks, and I've found a solution:

  • Install JBoss Tools > JBoss Web and Java EE Development > Visual Page Editor (only this subpackage)

After you can edit XHTML files with:

  • Open with > JBoss Tools HTML Editor

It's faster and gives you a better page preview

jlebrijo
  • 521
  • 5
  • 7
-1

For eclipse

Windows -> Preferences -> Editor -> File associations

then select XHtml.

After the selection there will be three options in the bottom window select HTML editor and click default. This solved the problem for me.

Please make sure to close all the opened XHtml pages and restart the eclipse.

zx485
  • 28,498
  • 28
  • 50
  • 59
Mahendra
  • 177
  • 1
  • 6