It is so simple anjali. There is a concept called formal and informal
params. Formal params in the sense, all the params listed in component doc.
Other than those params what ever the attributes you write in html tag are
called informal params. If the comp doc says that the component allows
informal params you can write informal params. If it says no you cannot
write informal params. Even though you write they will get discarded. So
when informal params are allowed you can write any attribute and any value
to that.

In your example you had written  onSubmit="check();     . So if informal
parameter has a method signature it considers as java script function. 

Only formal params can be mapped to your java class methods and I hope you
know how to map them.




Muralidhar Y
Software Engineer,
Adastrum technologies-Nikai groups,
EmiratesGroup-I.T Division,
Dubai, UAE.
Mobile : 00971-50-2256149.
http://www.adastrumtech.com
http://www.mercator.aero  
(Keep Smiling. Be happy All The Time.)

-----Original Message-----
From: Anjali Abraham [mailto:[EMAIL PROTECTED] 
Sent: 22 October 2005 16:04
To: [email protected]
Subject: One fundamental question

Hi All,
            I have in my html page the code like this:
<form jwcid="XXXX" name="YYY" onSubmit="check();">
 
When I had run this page and seen the "view source" of the page, I havnt
found the onSubmit="javascript:check(); method in my form tag. Why??????
 
I got this doubt since I had given only an alert in that javascript but that
method itself didn't get called. Don't know why???
 
Please can anybody explain me why tapestry ignores this??????
Please respond,
Thanks in advance,
 
Regards,
Anjali
 

Reply via email to