Re: T5.1 - Embedded JavaScript inside Zone

2010-02-04 Thread Benny Law
Yes, I'm pretty sure. In fact, I even tried moving the

Re: T5.1 - Embedded JavaScript inside Zone

2010-02-04 Thread Thiago H. de Paula Figueiredo
On Thu, 04 Feb 2010 21:37:26 -0200, Benny Law wrote: I am still wondering why Tapestry strips away all

Re: T5.1 - Embedded JavaScript inside Zone

2010-02-04 Thread Benny Law
Thanks Thiago. Norman's solution is working fine for me, so I will leave it like that. (I like keeping my JavaScript to the .tml file as much as possible to maintain a cleaner separation between the page template and the page class.) But thanks again for your suggestion. Your approach may come in h

Re: T5.1 - Embedded JavaScript inside Zone

2010-02-04 Thread Thiago H. de Paula Figueiredo
On Thu, 04 Feb 2010 21:01:39 -0200, Benny Law wrote: Thiago, I don't see your comments (except your friendly "Hi"). Could you respond again please? Thanks. Hi! :D I tripped over my keyboard and accidentally sent the message before finishing it. :P from the zone when it renders. I als

Re: T5.1 - Embedded JavaScript inside Zone

2010-02-04 Thread Benny Law
Thanks Norman, I'll try your suggestion. Thiago, I don't see your comments (except your friendly "Hi"). Could you respond again please? Thanks. Regards, Benny On Thu, Feb 4, 2010 at 5:50 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Thu, 04 Feb 2010 20:46:53 -0200, Benny La

Re: T5.1 - Embedded JavaScript inside Zone

2010-02-04 Thread Thiago H. de Paula Figueiredo
On Thu, 04 Feb 2010 20:46:53 -0200, Benny Law wrote: Hi everyone, Hi! from the zone when it renders. I also tried to use RenderSupport.addScript() in the action link event handler that updates the zone, but got the error "No object of type org.apache.tapestry5.RenderSupport is available

Re: T5.1 - Embedded JavaScript inside Zone

2010-02-04 Thread Norman Franke
I have the zone render a block (using t:delegate), which contains a script block. This works for me, at least. I use it to re-initialize a drag & drop sortable list. Norman Franke Answering Service for Directors, Inc. www.myasd.com On Feb 4, 2010, at 5:46 PM, Benny Law wrote: Hi everyone

T5.1 - Embedded JavaScript inside Zone

2010-02-04 Thread Benny Law
Hi everyone, I have a zone that contains some *dynamic* JavaScript that sets a global JavaScript object. However, Tapestry seems to be dropping the