The API is a bit fixed right now. You need to condense things down to
a single object, so if you wanted to combine Min and Max, you might
need a Range object to represent the upper and lower bounds. You
should provide Coercions to the TypeCoercer service to convert between
String and Range.
On the client side, you can use a JavaScript Object to represent the
range, i.e., { "min": 5, "max": 10 } or whatever you like.
On Wed, Sep 3, 2008 at 8:07 AM, Mohammad Shamsi <[EMAIL PROTECTED]> wrote:
> Hi,
>
> is there any way to write a new validator that accept more than one
> parameter ?
> exampe range (from, to)
> i know that i can do it with using 2 validator instead of one (min and max).
> but i want to write new validator with 2 or more parameter .
>
> :( :)
>
> --
> sincerely yours
> M. H. Shamsi
>
--
Howard M. Lewis Ship
Creator Apache Tapestry and Apache HiveMind
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]