Compatibility is that specifications written using the 3.0 DTD work with the 4.0 code base with the two caveat's mentioned by Howard.
I would expect specifications written to the 4.0 DTD to follow different rules. This might not be everybody's definition, but I think it's a good one. Richard -----Original Message----- From: Konstantin Iignatyev [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 10, 2005 10:39 AM To: Tapestry users Subject: Re: 4.0: listeners I have impression that people reported that syntax: <component id="reportCriteriaForm" type="Form"> <binding name="listener" expression="listeners.onSubmit"/> </component> does NOT work in T4. If that is the case then T4 breaks compatibility. Did I miss something? Howard Lewis Ship wrote: >On 5/10/05, Konstantin Iignatyev <[EMAIL PROTECTED]> wrote: > > >>Then I would say that compatibility with 3.0 is unnecessary broken. It >>is very easy to put something like this inside of T4 >> >> > >No, backards compatibility is NOT broken. > >The syntax ognl:listeners.method is what a 3.0 app would use, and that >still works. > >For 4.0, there's the listener: prefix, so listener:method is equivalent. > >Since the listener parameter specifies "listener" as its default >prefix, you can just specify the method name, "method". Again, all of >the following are equivalent (for the Form's or DirectLink's listener >parameter): > >ognl:listeners.myMethod >listener:myMethod >myMethod > >I prefer the last version. The latter two are marginally more >efficient than the OGNL version (though invoking a listener method >does use some amount of reflection). > > > > -- Thanks, Konstantin Ignatyev http://www.kgionline.com PS: If this is a typical day on planet earth, humans will add fifteen million tons of carbon to the atmosphere, destroy 115 square miles of tropical rainforest, create seventy-two miles of desert, eliminate between forty to one hundred species, erode seventy-one million tons of topsoil, add 2.700 tons of CFCs to the stratosphere, and increase their population by 263.000 Bowers, C.A. The Culture of Denial: Why the Environmental Movement Needs a Strategy for Reforming Universities and Public Schools. New York: State University of New York Press, 1997: (4) (5) (p.206) --------------------------------------------------------------------- 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]
