1 Reply Latest reply on Nov 24, 2007 2:26 PM by Pete Muir

    html element id appearing on validation message

    Gerardo Segura Newbie

      Perhaps this is simple but I can not find how to stop the html element id from appearing in the validation message each time the validation ocurrs, that is, I have a template like this (taken from some seam example):

       <div class="prop">
       <s:label styleClass="name #{invalid?'errors':''}">
       <ui:insert name="label" />
       <s:span styleClass="required" rendered="#{required}">*</s:span>
       <span class="value #{invalid?'errors':''}">
       <ui:insert />
       <s:message styleClass="error errors"/>

      which I use as:
      <s:decorate id="decorateAddress" template="/layout/edit.xhtml">
       <ui:define name="label">Address:</ui:define>
       <h:inputText id="address" value="#{register.info.address}" required="true" >
       <a4j:support event="onblur" reRender="decorateAddress"/>

      when the validation message appears next to the control it always includes the html element id, something like this:

      registerForm:decorateAddress:address: Validation error: required value

      But I would like NOT to show the "registerForm:decorateAddress:address" part in the validation message, how to do so?
      thanks in advance for any help