Alguém já usou o code complete do projeto facelets Netbeans.
O code complete não funciona dentro de um arquivo xhtml.
Fiz o seguinte projeto:
templet.xhml
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:rich="http://richfaces.org/rich">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Facelets - Template Example</title>
<link href="./css/default.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>
<ui:insert name="title">Default Title</ui:insert>
</h1>
<p>
<ui:insert name="body">Default Body</ui:insert>
</p>
</body>
</html>
index.xhtml
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:rich="http://richfaces.org/rich"
template="/template.xhtml">
<ui:define name="title">
title
</ui:define>
<ui:define name="body">
<h:commandButton value="Teste"></h:commandButton>
</ui:define>
</ui:composition>
Mas o code complite não funciona dentro do arquivo index.xhtml.
Alguém sabe como resolver?
Sem code complite não dá!!!
PS: o JBoss tools ta melhor nisso!!