Hi guys
I have a problem. I use ICEfaces with seam (hibernate) Validators in my beans, they work smoothly. They even get localized, everything ok.
BUT, I don't wanna display the name of the field in the validation message!!!! For example I get the following error message if a required input field is left empty:
sidebarPanel:decorateTinSingleDoc:selectTinInput : il valore è obbligatorio!
But I just wanna display this:
il valore è obbligatorio!
How can I configure it????
Here is my decorator around the input field:
<s:decorate id="decorateZA" template="../content/error.xhtml" >
My error.xhtml is quite standard anyway I post it:
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:s="http://jboss.com/products/seam/taglib">
<div class="entry">
<s:label styleClass="label #{invalid?'errors':''}">
<ui:insert name="label"/>
<s:span styleClass="required" rendered="#{required}">*</s:span>
</s:label>
<span class="input #{invalid?'errors':''}">
<s:validateAll>
<ui:insert/>
</s:validateAll>
</span>
<s:message showSummary="false" id="message" style="color: red"/>
</div>
</ui:composition>
Thanks!!!
Laura