Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsBind <h:message> to inputText
https://www.eclipse.org/forums/index.php/mv/msg/189282/600334/#msg_600334
Originally posted by: crapulence.gmx.de
Hello there,
i am trying to bind an error message (required tag) to an inputText of my
form:
<h:form>
name: <h:inputText value="#{Visitor.firstname}" /><br>
surname: <h:inputText value="#{Visitor.lastname}"
></h:inputText><br>
date_of_birth: <h:inputText value="#{Visitor.birth}"
maxlength="10" size="10" required="true">
<f:convertDateTime dateStyle="short"
type="date"/>
</h:inputText>
<br><br>
<h:commandButton action="success" value="Submit" />
<h:message for "#{Visitor.birth}"/>
</h:form>
But thats not right. How to reference the field "date_of_birth" in
h:message?