myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julián Osorio Amaya <julian.oso...@gmail.com>
Subject Re: Any way to customize this validate number message?
Date Wed, 02 Dec 2009 17:24:12 GMT
Greetings!!!

You can use javascript to validate this field or you can build your own
validator

On Wed, Dec 2, 2009 at 12:10 PM, laredotornado <laredotornado@gmail.com>wrote:

>
> Hi,
>
> I'm using MyFaces 1.1.6.  I have this ...
>
>                <h:inputText id="domeTourNumber_of_Adults"
> value="#{domeTour.numAdults}"
>                                            required="false"
>                                            size="60"
>                                            maxlength="60"
>                                            styleClass="textFields
> numAdultsField">
>                <f:validator validatorId="TourRequiredIfCheckedValidator" />
>                <f:validator validatorId="TourTotalPeopleValidator" />
>                <f:validator validatorId="TourAdultChildRatioValidator" />
>               </h:inputText>
>
> in which the bean's set and get type is an int.  So if I enter a value like
> "aaa" into the field, I get a message like
>
> tourType:domeTourNumber_of_Adults: 'aaa' must be a number between
> -2147483648 and 2147483647 Example: 9346
>
> I would like to customize this message.  Anyone know how I can do that?
> Thanks, - Dave
> --
> View this message in context:
> http://old.nabble.com/Any-way-to-customize-this-validate-number-message--tp26612567p26612567.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>


-- 
Julián Osorio Amaya.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message