Probleme avec tiles et Validator
Bonjour,
j'ai un probleme assez bizarre : j'ai un formulaire de login classique dans une page JSP. Quand j'ajoute un <f:validator....> j'obtiens un resultat étrange :
1 - Sans Validator :
Affichage OK :
Pièce jointe 34187
Code login.jsp :
Code:
1 2 3 4 5 6 7 8 9 10 11
| <h:form>
<h:panelGroup id="idRegister">
<h:panelGrid columns="3">
<h:outputLabel value="#{msg.name}"></h:outputLabel>
<h:inputText id="inputName" value="#{coursController.part.nom}"
required="true">
</h:inputText>
<h:message for="inputName" ></h:message>
</h:panelGrid>
</h:panelGroup>
</h:form> |
2 - Avec Validator (j'ai l'impression qu'il inclut la ligne horizontale du footer dans le body)
Pièce jointe 34188
Code login.jsp
Code:
1 2 3 4 5 6 7 8 9 10 11 12
| <h:form>
<h:panelGroup id="idRegister">
<h:panelGrid columns="3">
<h:outputLabel value="#{msg.name}"></h:outputLabel>
<h:inputText id="inputName" value="#{coursController.part.nom}"
required="true">
<f:validator validatorId="com.validation.ValidateName"/>
</h:inputText>
<h:message for="inputName" ></h:message>
</h:panelGrid>
</h:panelGroup>
</h:form> |
Mon template de Tiles :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
| <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
<html>
<head>
<f:loadBundle basename="com.util.messages" var="msg"/>
<link rel='stylesheet'
media='screen'
type='text/css'
title='Design'
href='<%=request.getContextPath()%>/css/main.css' />
</head>
<body>
<f:view>
<h:panelGrid border="0" columns="3"
id="mainLayout" cellpadding="0" cellspacing="0"
columnClasses="cmenu,cline,ccontext">
<f:facet name="header">
<f:subview id="header">
<tiles:insert definition="page.header" flush="false" />
</f:subview>
</f:facet>
<h:panelGroup id="leftMenu">
<tiles:insert definition="page.leftMenu" flush="false"/>
</h:panelGroup>
<h:panelGroup id="verticalLine">
<h:graphicImage value="/images/strutsstudio.gif" width="1" height="1"/>
</h:panelGroup>
<h:panelGroup id="pageContext">
<tiles:insert attribute="body" flush="false"/>
</h:panelGroup>
<f:facet name="footer">
<f:subview id="footer">
<tiles:insert definition="page.footer" flush="false"/>
</f:subview>
</f:facet>
</h:panelGrid>
</f:view>
</body>
</html> |
Si vous comprenez où est l'erreur vous m'aideriez beaucoup!
Merci.