0

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?

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
Ketan Bhavsar
  • 5,338
  • 9
  • 38
  • 69

1 Answers1

2

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"
Community
  • 1
  • 1
BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555