This content has been marked as final.
Show 3 replies
-
1. Re: Validation Error Messages...
tony.herstell1 Dec 26, 2006 1:55 AM (in response to tony.herstell1)Anyone any ideas on this one?
-
2. Re: Validation Error Messages...
echnaton Dec 29, 2006 7:08 PM (in response to tony.herstell1)i have a similar problem. h:message shows the validation messages correctly but s:message just doesn't work.
i followed exactly this tutorial: http://docs.jboss.com/seam/1.1GA/reference/en/html/validation.html
but when the page reloads theres no text on the page. the console of the as shows this:sourceId=j_id7:passwort[severity=(ERROR 2), summary=(j_id7:passwort: Validierungs-Fehler: Wert wird benötigt.), detail=(j_id7:passwort: Validierungs-Fehler: Wert wird benötigt.)] sourceId=j_id7:benutzername[severity=(ERROR 2), summary=(j_id7:benutzername: Validierungs-Fehler: Wert wird benötigt.), detail=(j_id7:benutzername: Validierungs-Fehler: Wert wird benötigt.)];|WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.
my configuration is seam 1.1, jsf 1.2, facelets 1.1.1 on sun as 9.0
the template client which needs validation<!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:h="http://java.sun.com/jsf/html" xmlns:s="http://jboss.com/products/seam/taglib" xmlns:f="http://java.sun.com/jsf/core"> <body> <ui:composition template="maintemplate.xhtml"> <ui:define name="title"> Einloggen </ui:define> <ui:define name="body"> <div> <h:messages globalOnly="true"/> </div> <h:form> <f:facet name="afterInvalidField"> <s:messages/> </f:facet> <s:validateAll> Benutzername <s:decorate> <h:inputText id="benutzername" value="#{benutzer.benutzername}" required="true"/> </s:decorate> Passwort <s:decorate> <h:inputSecret id="passwort" value="#{benutzer.passwort}" required="true"/> </s:decorate> <h:commandButton type="submit" value="Einloggen" action="#{lokaleinloggen.einloggen}"/> </s:validateAll> </h:form> </ui:define> </ui:composition> </body> </html>
the template:<!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:s="http://jboss.com/products/seam/taglib" xmlns:f="http://java.sun.com/jsf/core"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Projektplaner/SVN-System</title> <link href="css/default.css" rel="stylesheet" type="text/css" /> </head> <body> <img src="pics/fhlogo.gif"/> <div class="title"> <span class="title"> Projektplaner </span> <span class="title2nd"> <ui:insert name="title"></ui:insert> </span> </div> <p> <ui:insert name="body"></ui:insert> </p> </body> </html>
-
3. Re: Validation Error Messages...
echnaton Jan 1, 2007 9:01 PM (in response to tony.herstell1)oh damn i forgot to include the seam-ui.jar in the war project