--- On Tue, 5/11/10, Mossman, Paul (Paul) <[email protected]> wrote:
>
> I like the following validation messages:
>
> 4 --> "Proxy Keepalive Time cannot be
> less than 5."
>
> 2000001 --> "Proxy Keepalive Time
> cannot be greater than 2000000."
>
> 2010fun --> "Proxy Keepalive Time must
> be numeric. (5 to 2000000)"
>
> Can you use these?
>
Well, this looks better :) however, right now I cannot see how we could use
specific messages with the general integer translator. Integer translator is
the first one that is getting called in this validation chain and it will throw
it's own validation error. If there is no issue with translating the given
value to an int then the filed validators will be applied.
So right now we are displaying messages like:
4 --> "Proxy Keepalive Time cannot be less than 5." -> field validation
2000001 --> "Proxy Keepalive Time cannot be greater than 2000000." -> field
validation
2010fun or 200000000000 --> "Proxy Keepalive Time must be numeric." -> this
one is thrown by integer validation
George
_______________________________________________
sipx-dev mailing list [email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev
sipXecs IP PBX -- http://www.sipfoundry.org/