Re: T5 Tapestry.Initializer's function

2011-08-12 Thread dick_hu
Thanks I know -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-Tapestry-Initializer-s-function-tp4691890p4693526.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e

Re: T5 Tapestry.Initializer's function

2011-08-11 Thread Taha Hafeez
It is defined as local to the initializer.Rocker1 function and can't be accessed outside it. if the function is generic enough just put it in a separate js and include that in both mixins. On Fri, Aug 12, 2011 at 9:42 AM, dick_hu wrote: > I use the two mixins in a page > so the two js are already

Re: T5 Tapestry.Initializer's function

2011-08-11 Thread dick_hu
I use the two mixins in a page so the two js are already imported, I try to use one mixins's js funtion in another mixins's js eg: Tapestry.Initializer.Rocker1 = fucntion(){ var f1 = function(){ } } Tapestry.Initializer.Rocker2 = fucntion(){ // I want use the Rocker1's f1 } Howc

Re: T5 Tapestry.Initializer's function

2011-08-11 Thread Taha Hafeez
Just import the same js file using @Import and then use javaScriptSupport.addInitializerCall("Rocker", params_if_any) On Fri, Aug 12, 2011 at 8:23 AM, dick_hu wrote: > I create a mixins "A" with the js Tapestry.Initializer.Rocker > Now I create another mixins "B",How can I use the > Tapestry.Init

T5 Tapestry.Initializer's function

2011-08-11 Thread dick_hu
I create a mixins "A" with the js Tapestry.Initializer.Rocker Now I create another mixins "B",How can I use the Tapestry.Initializer.Rocker in B's js AnyOne can help me Thanks a lot -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-Tapestry-Initializer-s-function-tp46918