eclipse not giving any help on CTRL + Space [duplicate]

我的梦境 提交于 2020-01-03 05:23:16

问题


When I was using .jsp file in eclipse was giving me help for tags...

Where I was adding taglibs...

<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>

Now I converted .jsp to .xhtml in which I can't add above taglibs instead I have to use

<html xmlns="http://www.w3c.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.prime.com.tr/ui">

In this case eclipse doesn't give me any help on CTRL + Space. Is there any way to start those help?


回答1:


Eclipse doesn't have buitin Facelets tooling (yet). So far only the Glassfish Server plugin and the JBoss Tools plugin comes with Facelets tooling.

Based on your previous question you're using Tomcat, so JBoss Tools should do (and it is actually more feature rich than the Glassfish Server plugin). Go in Eclipse to Help > Install New Software. Assuming that you're using the current Eclipse Indigo SR2 version, enter the following URL in there:

http://download.jboss.org/jbosstools/updates/indigo/SR2/

Wait until the list of options loads and finally pick and install the "JBoss Web and Java EE Development" option.


Unrelated to the concrete problem, based on your previous question you've installed PrimeFaces 3.2. But yet you're using the old PrimeFaces 2.x XML namespace URI. Fix it as well:

xmlns:p="http://primefaces.org/ui"


来源:https://stackoverflow.com/questions/10807291/eclipse-not-giving-any-help-on-ctrl-space

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!