Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse JSF content assist not working

I am trying to work with an (existing) JSF Project in the current Eclipse (Kepler SR 1). Sadly Eclipse is ignoring the links between JSF/JSP pages and ManagedBeans (via faces-config.xml). I cannot CTRL-Click on a #{myBean.someValue} (inside a tag attribute) and I dont get any autocompletion assist when i hit CTRL-Space inside #{}.

The project is using somewhat ancient library versions - maybe that is a problem?

  • JavaEE 5
  • Dynamic Web Module version 2.4
  • JSF 1.1
  • BEA WebLogic 10.0 as target runtime

I tried all the guides on stackoverflow and created a dummy project as described in the JSF Tooling User Guide but none helped. Any help appretiated!

like image 911
SebastianH Avatar asked Jan 27 '14 09:01

SebastianH


People also ask

How do I fix Content Assist in Eclipse?

Go to Window -> Preferences -> Editor -> Content Assist -> Advanced and enable Parsing-based Proposals. Click Apply. Content assist should start working immediately. No restart of Eclipse required.

Why my Ctrl space is not working?

Make sure (Ctrl + Space) combination key is not hijacked by other application. For examples, My desktop computer (Ctrl + Space) combination key is hijacked by my Windows text input feature.

How do I enable suggestions in Eclipse?

In Eclipse click Windows Drop-Down > Click Preferences > Navigate to Java > Editor > Content Assist In order to Make the Auto suggestion/completion to work you have to set trigger that invoke the Auto Completion.

Why control space is not working in Eclipse?

Go to Windows --> Preferences --> Java --> Editor --> Content Assist --> Advanced --> select all Java & Java Type Proposals. Click on Apply and close it. Restart the eclipse.


1 Answers

I had the same problem with Kepler and solved the problem by

  1. installing JBoss Tools
  2. Right clicking the project > Configure -> Add JSF capabilities

Hope that helps others, too.

like image 197
chrisF Avatar answered Sep 25 '22 07:09

chrisF