i am using 5.0.15. On Mon, Nov 3, 2008 at 10:49 AM, dhning <[EMAIL PROTECTED]> wrote:
> Why places of tapestry.js are different between us? I am using > 5.0.16-snapshot, and all js related code is before </body>. > > > Thanks > > DH > > > ----- Original Message ----- > From: "Mohammad Shamsi" <[EMAIL PROTECTED]> > To: "Tapestry users" <users@tapestry.apache.org> > Sent: Monday, November 03, 2008 10:35 AM > Subject: Re: T5 - new clien side validator, again > > > > On Mon, Nov 3, 2008 at 10:30 AM, dhning <[EMAIL PROTECTED]> wrote: > > > >> Why not new a js file to hold your js code and include it in your page > >> class?:) > >> > >> That will solve your problem. Our .js is always after tapestry.js. > > > > > > the problem is right here, my .js file is not after Tapestry.js. its > before > > it. > > > > Tapestry adds link to Tapestry.js during Form component rendering. > > if you look at the generated HTML code in your browser, you will see > > something like this : > > > > <html> > > .... > > *<form>* > > *<script .... /> :: Tapestry add link to Tapestry.js here.* > > ...... > > > > > > > > > > > >> > >> > >> Thanks, > >> > >> DH > >> > >> > >> ----- Original Message ----- > >> From: "Mohammad Shamsi" <[EMAIL PROTECTED]> > >> To: "Tapestry users" <users@tapestry.apache.org> > >> Sent: Thursday, October 30, 2008 4:29 PM > >> Subject: Re: T5 - new clien side validator, again > >> > >> > >> > 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" <users@tapestry.apache.org> > >> >> 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 > >> > > >> > > > > > > > > -- > > sincerely yours > > M. H. Shamsi > > > -- sincerely yours M. H. Shamsi