RE: T5: Progress indicator and AJAX example?

2010-12-14 Thread Newham, Cameron
Thanks Taha. Now it all makes sense. I don't know why I didn't see the alert() - duh! c. -Original Message- From: Taha Hafeez [mailto:tawus.tapes...@gmail.com] Sent: 14 December 2010 17:31 To: Tapestry users Subject: Re: T5: Progress indicator and AJAX example? Hi, The reason that i

Re: Referencing and displaying image asset from Webapp

2010-12-14 Thread ael
Is this application to img? # Say Hello Instead a link you will use img then plus context image name? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Referencing-and-displaying-image-asset-from-Webapp-tp3303788p3305703.html Sent from the Tapestry - User mailing

Re: T5: Progress indicator and AJAX example?

2010-12-14 Thread Taha Hafeez
That is exactly what i meant..! regards Taha On Tue, Dec 14, 2010 at 5:55 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Tue, 14 Dec 2010 07:35:22 -0200, Newham, Cameron > wrote: > > Thanks Taha for going to the trouble of providing source. >> >> It is very simple. >>> >

Re: Referencing and displaying image asset from Webapp

2010-12-14 Thread Rich M
Thanks for the response, I hope I am over-complicating things for sure. The images are static resources at this point. The db names are dynamic as a halfway step towards the eventual goal of allowing uploads by the user (as you mention in the latter half of your e-mail). At this point our rel

Re: Referencing and displaying image asset from Webapp

2010-12-14 Thread Kalle Korhonen
You are way over-complicating things. If these are static resources (your webapp/ implies that but storing the names in the db implies the opposite), you can just refer to them by /layout/images/product/ (possibly add a context path). If they are not static resources, e.g. users of your application

Re: Referencing and displaying image asset from Webapp

2010-12-14 Thread Rich M
To follow up, while the link/change I mentioned that got images to display using the app/assets/ctx/1.0/<...> was working using mvn jetty:run on my development machine, deploying as a WAR seems to break these links in a production environment. So I'm back to square one it seems, is there no

Re: Referencing and displaying image asset from Webapp

2010-12-14 Thread LLTYK
I don't think there's a tml shorthand. You'd use ContextAssetFactory in your java code: http://tapestry-users.832.n2.nabble.com/T5-How-to-load-image-Asset-from-filesystem-td2454924.html#a2455270 But that would generate the same /app/assets links, just not hardcoded. This filter issue remains a my

Re: T5: Progress indicator and AJAX example?

2010-12-14 Thread Taha Hafeez
Hi, The reason that it did not work is because you have to handle the event onUpdate in your page otherwise it throws a NPE. I have modified that and indicated that in bold. The alert that you saw was a debug alert...(Oops!!). Java import org.apache.tapestry5.BindingConstants; import org.apache

The Apache Software Foundation Launches "Apache Extras" to Accelerate Innovation

2010-12-14 Thread Thiago H. de Paula Figueiredo
Hi!This is a tip for everyone creating open source projects in Tapestry.Google-hosted site provides a “home-away-from-home” for code associated with Apache projects Forest Hill, MD – 14 December 2010 – The Apache Software Foundation (ASF) today announced apache-extras.org, the Google-hosted s

Re: Referencing and displaying image asset from Webapp

2010-12-14 Thread Rich M
Hi, Yea, I wasn't expecting TML shorthand, rather some way to load the proper information in the page class. I couldn't really see how the ContextAssetFactory would be useful. I was under the impression internal services shouldn't be used, in fact trying to Inject it gives an error. In te

Re: T5: Progress indicator and AJAX example?

2010-12-14 Thread Thiago H. de Paula Figueiredo
On Tue, 14 Dec 2010 07:35:22 -0200, Newham, Cameron wrote: Thanks Taha for going to the trouble of providing source. It is very simple. LOL. When people say this it usually isn't! And I'm afraid my knowledge of AJAX and Javascript make your code fairly impenetrable to me. Let's rephra

Re: Referencing and displaying image asset from Webapp

2010-12-14 Thread LLTYK
I don't think there's a tml shorthand. You'd use ContextAssetFactory in your java code: http://tapestry-users.832.n2.nabble.com/T5-How-to-load-image-Asset-from-filesystem-td2454924.html#a2455270 But that would generate the same /app/assets links, just not hardcoded. This filter issue remains a my

RE: T5: Progress indicator and AJAX example?

2010-12-14 Thread Newham, Cameron
Further to this. The part I think I am not understanding that is critical to the operation of this is: resources.triggerEvent("update", new Object[]{value}, callback); value = callback.getResult(); getResult() is always null. So I'm failing to understand how you are getting value set (it trigg

RE: T5: Progress indicator and AJAX example?

2010-12-14 Thread Newham, Cameron
Thanks Taha for going to the trouble of providing source. > It is very simple. LOL. When people say this it usually isn't! And I'm afraid my knowledge of AJAX and Javascript make your code fairly impenetrable to me. When I use your code I just get a dialogue box tell me that the page says {} wa