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>
       </s:label>
       <span class="value #{invalid?'errors':''}">
       <s:validateAll>
       <ui:insert />
       </s:validateAll>
       </span>
       <s:message styleClass="error errors"/>
       </div>
      

      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"/>
       </h:inputText>
      </s:decorate>
      


      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