O.k. good to know!

I'll have a look at what is there, and since it will save us the time  of writing  custom validators/convertors for each custom message I think we can put some time in extending the tomahowk and sandbox convertors; and submit them back to the community...

-P

On 12/16/05, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
Peter,

I don't this is possible without writing your own custom validator yet.

It might be addressed in the final version of JSF 1.2 via
requiredMessage and validatorMessage per-component attributes, or it
may have to wait until JSF 2.0.

However, for tomahawk and sandbox validators and converters, we're
interested in supporting a "message" attribute which allows end-users
to manually override a specific converter instance.   It's already
there for the sandbox compareTo validator, but someone needs to take
the initiative and create similar attributes for our other validators
and converters.

Please feel free to open a JIRA issue and submit patches to move this
process along.

-Mike

On 12/16/05, Peter Maas <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> maybe I'm missing the obvious, but... is it possible to specify WHICH
> errormessage to show if a specific valitor fails?
>
> say I have:
>
>                     <t:inputText id="postcodeField" value="#{
> searchAddressBean.postcode}" required="true">
>                         <t:validateRegExpr pattern='\d{4}[a-zA-Z]{2}' />
>                     </t:inputText>
>                     <t:message id="postcodeFieldError" for=""
> styleClass="error" />
>
>
> What I don't want to do is override the default errormessage used by the
> RegExpr validator, this would change its' behaviour througout the entire
> application, I just want to say: if this specific validation fails, display
> THIS message...
>
> is it possible?
>
> -P
>

Reply via email to