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> | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996929#3996929 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996929 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user