Yes reserved params cannot be used as informal params. The thing is I was not talking particularly about "form" component. I am talking about the concept of formal and informal params in general. Ok be happy . Keep smiling.
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: Johan Maasing [mailto:[EMAIL PROTECTED] Sent: 23 October 2005 12:31 To: Tapestry users Subject: Re: One fundamental question Muralidhar Y. wrote: > Hi Mr.ron, > I could not understand what u mean to say. You might be > misunderstanding what I said. Pls carefully read the message before u > answer. I am talking about the nature in tapestry3.0.3 but I hope it > is also the same in tape4. > > <span jwcid="@Any" tag="div" class="ognl:myClass"/> in this tag "Any" > component allows informal params. That’s the reason you are able to > write informal params. If the component specification says that > informal params are not allowed , you cannot write them. They will not > be dynamically determined. If component specification allows informal > params then you can write informal and u can write ognl expressions to > informal params. If informal params allowed then whether the informal > params are ognl expressions or not will be dynamically determined by tapestry. > > > Pls read message carefully before you say some one is wrong........... Ron said that Form reserves the onSubmit parameter. So even if the compoment allows informal parameters, that particular parameter (onSubmit), can not be used. > > 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: news [mailto:[EMAIL PROTECTED] On Behalf Of Ron Piterman > Sent: 22 October 2005 19:59 > To: [email protected] > Subject: Re: One fundamental question > > 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] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
