detect StreamResponse in client

2009-11-21 Thread Alfonso Quiroga
Hi! I have a simple page where the user can download files... I did a mixin that if server doesn't answer in 2 seconds, it appears a "Loading" modal box. That was working perfectly until I get the StreamResponse from the server... Firefox shows me the download dialog (that is perfect) but the "Load

Re: injecting services outside default packages

2009-11-21 Thread Thiago H. de Paula Figueiredo
Em Sat, 21 Nov 2009 14:18:20 -0200, Alfonso Quiroga escreveu: I think that's the problem, my bean is here /pages /components /myPackage/MyBean.java ..and the problem is that I instanciate ( new MyBean() ). When you instantiate some object directly, Tapestry-IoC cannot do any injections o

Re: injecting services outside default packages

2009-11-21 Thread Alfonso Quiroga
I think that's the problem, my bean is here /pages /components /myPackage/MyBean.java ..and the problem is that I instanciate ( new MyBean() ). MyBean.java is a class I want to have in the session... how can I instanciate it with T5IoC? thanks in advance On Sat, Nov 21, 2009 at 12:24 PM, Thiago H

Re: Is AjaxFormLoop example working for you?

2009-11-21 Thread Dariusz
I was going through Tapestry JumpStart:Demo. I've accessed both ajaxFormLoop pages and they were working fine. Then I've found this discussion. Clicked the first link from Geoff's post: http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/tables/ajaxformloop1 http://jumpstart.doublenega

Re: T5.1: Request forwarding breaks page/actionlinks

2009-11-21 Thread Thiago H. de Paula Figueiredo
Em Sat, 21 Nov 2009 13:23:35 -0200, Kalle Korhonen escreveu: Ah great, there's such a symbol! Nevertheless, you don't think that the components should use PageRenderLinkSource for creating links? Yes. Their sources should be updated, as PageRenderLinkSource was introduced in T5.1. -- Th

Re: injecting services outside default packages

2009-11-21 Thread Thiago H. de Paula Figueiredo
Em Sat, 21 Nov 2009 12:56:02 -0200, Alfonso Quiroga escreveu: Hi! I want to insert some service like this: @Inject private MyService myService; If I do it in default packages (base, pages, components) it just works... but I have a class outside this packages and TapIOC does nothing (myService

Re: T5.1: Request forwarding breaks page/actionlinks

2009-11-21 Thread Kalle Korhonen
On Sat, Nov 21, 2009 at 3:31 AM, Thiago H. de Paula Figueiredo wrote: > Em Fri, 20 Nov 2009 19:41:46 -0200, Kalle Korhonen > escreveu: >> Hmm... browsing the javadocs and source, I can see that *if* all of >> the components would be using PageRenderLinkSource instead of the now >> deprecated Comp

injecting services outside default packages

2009-11-21 Thread Alfonso Quiroga
Hi! I want to insert some service like this: @Inject private MyService myService; If I do it in default packages (base, pages, components) it just works... but I have a class outside this packages and TapIOC does nothing (myService is null). Some way to solution? thanks!! -

Re: Multiple calls of method OnActivate()???

2009-11-21 Thread Thiago H. de Paula Figueiredo
Em Sat, 21 Nov 2009 12:23:19 -0200, EasyStrutser escreveu: You are totally right, i added some css directly in the .tml file using "css/app.css" instead of ${context:css/app.css}, that's the problem. after correction, the application work perfectly, thx for your tips, it seems that you have

Re: Multiple calls of method OnActivate()???

2009-11-21 Thread EasyStrutser
You are totally right, i added some css directly in the .tml file using "css/app.css" instead of ${context:css/app.css}, that's the problem. after correction, the application work perfectly, thx for your tips, it seems that you have met the problem before?! :D. I think T5 should be more robust to

Re: Multiple calls of method OnActivate()???

2009-11-21 Thread cordenier christophe
2009/11/21 Thiago H. de Paula Figueiredo > Em Sat, 21 Nov 2009 09:32:32 -0200, cordenier christophe < > christophe.corden...@gmail.com> escreveu: > > Hi >> > > Hi! > > OnActivate is called once to activate the page. >> > > Right, but when a form is submitted or an ActionLink or EventLink is use

Re: Multiple calls of method OnActivate()???

2009-11-21 Thread Thiago H. de Paula Figueiredo
Em Sat, 21 Nov 2009 09:32:32 -0200, cordenier christophe escreveu: Hi Hi! OnActivate is called once to activate the page. Right, but when a form is submitted or an ActionLink or EventLink is used, onActivate() is invoked twice: one for the action request, one for the render request.

Re: Multiple calls of method OnActivate()???

2009-11-21 Thread Thiago H. de Paula Figueiredo
Em Sat, 21 Nov 2009 00:36:41 -0200, EasyStrutser escreveu: Is it a bug or something? I guess you have some resource (CSS, JavaScript, image) that is included using a relative URL. ;) Use ${context:/path/image.jpg} instead of path/image.jpg. It must solve your problem. -- Thiago H. de

Re: Multiple calls of method OnActivate()???

2009-11-21 Thread cordenier christophe
Hi OnActivate is called once to activate the page. OnPassivate is called each time a link is created to allow you to persist datas between request. I had the same problem, but it was firebug that send the second request. Regards Christophe. 2009/11/21 EasyStrutser > > I'm trying to pass param

Re: T5.1: Request forwarding breaks page/actionlinks

2009-11-21 Thread Thiago H. de Paula Figueiredo
Em Fri, 20 Nov 2009 19:41:46 -0200, Kalle Korhonen escreveu: Hmm... browsing the javadocs and source, I can see that *if* all of the components would be using PageRenderLinkSource instead of the now deprecated ComponentResources.createPageLink() it seems it would be possible to override PageR