Hello,
first of all ill explain what i want to do and then let me ask if its possible with seam
look at the following code, it displays an error message for an input field
Code:
<h:inputText id="myInput" required="true" value="#{TestBean.value}" errorStyle="color:red" /> <h:message for="myInput" />
This will produce the following output:
'myInput
:Value required'
the problem is that we can't personnalise this message to have more details, because it's unified from all fields.
Thanks;
the required msg comes from jsf, tune the resource bundle and play around with showSummary and showDetail on h:message.
For seam related validation, check the manual (chapter 9, s:validateAll, s:decorate etc)