Re: confused using tapestry page to return json data

2012-08-30 Thread Lance Java
After re-reading your code, I see that you have two onActivate() methods with different parameter counts. Perhaps you are witnessing the behaviour mentioned here http://tapestry.1045711.n5.nabble.com/multiple-onActivate-methods-in-page-handler-td2434569.html Whenever I need to handle a variable nu

Re: confused using tapestry page to return json data

2012-08-29 Thread jqzone
Yes ,I do think pages / components don't need a template,I'm using tapestry 5.3.4 On Wed, Aug 29, 2012 at 4:49 PM, Lance Java wrote: > Pages / components don't need a template. If your page always returns a > StreamResponse from onActivate() then it should not have a template. > > I'm not sure

Re: confused using tapestry page to return json data

2012-08-29 Thread Lance Java
Pages / components don't need a template. If your page always returns a StreamResponse from onActivate() then it should not have a template. I'm not sure why you're seeing this strange behaviour though? I would have assumed that tapestry would ignore the TML. -- View this message in context: