Thanks DH,
but the problem is still there.
if you look at html code generated for a page in browser it will be
something like this :
<html>
...
<body>
.....
<form>
*<script .... /> :: Tapestry add link to Tapestry.js here.*
</form>
*<script type="text/javascript">
..... :: Tapestry registers validations to form inputs here
</script>*
.....
</body>
</html>
if i add the code like in wiki pages on top of my page before form :
Tapestry.Validator.int = function(field, message)
i will get the javascript error that Tapestry object undefined because the
link to Tapestry.js is after this code.
if i add the code after form object. i will get the error during Tapestry
Validation Registration. because it is not able to find my new validation
method yet. :(
On Thu, Oct 30, 2008 at 11:35 AM, dhning <[EMAIL PROTECTED]> wrote:
> http://wiki.apache.org/tapestry/Tapestry5HowToAddValidators
>
> The js code segment is outdated, please refer to latest tapestry.js.
>
> Thanks!
>
> DH
>
>
> ----- Original Message -----
> From: "Mohammad Shamsi" <[EMAIL PROTECTED]>
> To: "Tapestry users" <[email protected]>
> Sent: Saturday, October 25, 2008 2:23 AM
> Subject: Re: T5 - new clien side validator, again
>
>
> > no idea ?
> >
> > i don't know how add my javascript validator in Tapestry validators list.
> >
> > any expeirence ?
> >
> > thanks all
> >
> > On Wed, Oct 22, 2008 at 11:27 PM, Mohammad Shamsi <[EMAIL PROTECTED]
> >wrote:
> >
> >> hi,
> >>
> >> im trying to add new validator to my project. but i have problem to add
> >> javascript for clienside validation.
> >>
> >> any idea ?
> >>
> >> --
> >> sincerely yours
> >> M. H. Shamsi
> >>
> >
> >
> >
> > --
> > sincerely yours
> > M. H. Shamsi
> >
>
--
sincerely yours
M. H. Shamsi