Bom dia, estou na página 114 da fj21 tentando utilizar Jquery com JSP e ao posicionar o cursor dentro do campo data, deveria abrir um datetimepicker e isso não está acontecendo. debugando o código, a chamada da tag personalizada está ok. Fontes:
<!DOCTYPE html>
<%@ taglib uri="." prefix="c" %>
<%@taglib tagdir="/WEB-INF/tags" prefix="caelum" %>
<html>
<head>
<meta charset="ISO-8859-1">
<link href="css/jquery-ui.css" rel="stylesheet">
<script src="js/jquery.js"></script>
<script src="js/jquery-ui.js"></script>
</head>
<body>
<c:import url="cabecalho.jsp"></c:import>
<h1>Adiciona contatos</h1>
<hr />
<form action="adicionaContato" method="POST">
Nome: <input type="text" name="nome" /><br/>
E-mail:<input type="text" name="email" /><br />
Endereço:<input type="text" name="endereco"/><br/>
Data Nascimento: <caelum:campoData id="dataNascimento" /><br />
<input type="submit" value="Gravar" />
</form>
<c:import url="rodape.jsp"></c:import>
</body>
</html>
<%@ tag language="java" pageEncoding="ISO-8859-1"%>
<%@ attribute name="id" required="true" %>
<input id="${id}" name="${id}" />
<script>
$("#${id}").datepicker({dateFormat: 'dd/mm/yy'});
</script>
<!DOCTYPE html>
<%@ taglib uri="." prefix="c" %>
<%@taglib tagdir="/WEB-INF/tags" prefix="caelum" %>
<html>
<head>
<meta charset="ISO-8859-1">
<link href="css/jquery-ui.css" rel="stylesheet">
<script src="js/jquery.js"></script>
<script src="js/jquery-ui.js"></script>
</head>
<body>
<c:import url="cabecalho.jsp"></c:import>
<h1>Adiciona contatos</h1>
<hr />
<form action="adicionaContato" method="POST">
Nome: <input type="text" name="nome" /><br/>
E-mail:<input type="text" name="email" /><br />
Endereço:<input type="text" name="endereco"/><br/>
Data Nascimento: <caelum:campoData id="dataNascimento" /><br />
<input type="submit" value="Gravar" />
</form>
<c:import url="rodape.jsp"></c:import>
</body>
</html>
<%@ tag language="java" pageEncoding="ISO-8859-1"%>
<%@ attribute name="id" required="true" %>
<input id="${id}" name="${id}" />
<script>
$("#${id}").datepicker({dateFormat: 'dd/mm/yy'});
</script>