JSF - Proglemas con las directivas taglib

 
Vista:

Proglemas con las directivas taglib

Publicado por Juan (1 intervención) el 15/09/2010 01:37:07
Buenas noches a tod@s,

Estoy realizando una aplicación con JSF 1.2, las páginas las defino como .xhtml y así se lo hago
saber al web.xml. Mi problema es que si pongo por ejemplo:


<h:outputLabel for="inputText" value="Enter text here: "/>

No me pinta nada, no da ningún error pero no escribe nada en la página...

¿Alguien tiene alguna idea?

La página completa sería (inicio.xhtml):

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!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:c="http://java.sun.com/jstl/core"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:t="http://myfaces.apache.org/tomahawk"
xmlns:a4j="https://ajax4jsf.dev.java.net/ajax">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Propietarios</title>
</head>
<body>
<f:view>
<h1>
<h:outputText value="Bienvenido a Java Server Faces"></h:outputText>
</h1>
<h2>Probemos la navegación en JSF!</h2>
<br />

<h:form>
<h:panelGrid columns="3">
<h:outputLabel for="inputText" value="Su nombre: "/>
<h:inputText id="nombre" value="#{inicioBean.nombre}" maxlength="35" required="true"></h:inputText>
<h:message for="nombre"></h:message>

<h:outputLabel for="inputText" value="Su edad "/>
<h:inputText id="edad" value="#{inicioBean.edad}" required="true">
<f:validateLongRange maximum="100"/>
</h:inputText>
<h:message for="edad"></h:message>
</h:panelGrid>

<h:commandButton action="ok" value="Siguiente"></h:commandButton>
</h:form>
</f:view>
</body>
</html>

y quedaría pintado:

Probemos la navegación en JSF!
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder