0 Replies Latest reply on Apr 23, 2010 11:14 AM by Laura V

    Seam validator messages: name of the field NOT wanted...

    Laura V Newbie

      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"

      <div class="entry">
      <s:label styleClass="label #{invalid?'errors':''}">
      <ui:insert name="label"/>
      <s:span styleClass="required" rendered="#{required}">*</s:span>
      <span class="input #{invalid?'errors':''}">
      <s:message showSummary="false" id="message" style="color: red"/>