Sorry murahlidar, you are wrong there.
Both formal and informal parameters can be evaluated dynamically.
so you can do <span jwcid="@Any" tag="div" class="ognl:myClass"/>
class is a informal parameter to the Any, but will be evaluated by ognl.

The problem here is that Form has a *reserved* onSubmit parameter. Look at the docu of form at the bottom of the page...

The reason is that Tapestry uses it for client-side validation (if enabled).

A possible hack is to use Dojo or Prototype JS libraries to add additional event listeners.

Hope that helps,
Ron



ציטוט Muralidhar Y.:
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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to