Re: Simplified paths for dynamic asset context

2009-11-30 Thread TNO
These are kind of static assets. They rarely change... and how do you get the context name ? Le 30/11/2009 12:55, Ulrich Stärk a écrit : Don't use assets in this case. Assets are for static content that rarely changes. Hence the version number and far future expire headers. Uli Am 30.11.200

Re: Simplified paths for dynamic asset context

2009-11-30 Thread Ulrich Stärk
Don't use assets in this case. Assets are for static content that rarely changes. Hence the version number and far future expire headers. Uli Am 30.11.2009 11:57 schrieb TNO: Hi, I migrate from T5.0.18 to T5.0.1.5 a couple of days ago. Ok works fine ! But I work on an application which users

Simplified paths for dynamic asset context

2009-11-30 Thread TNO
Hi, I migrate from T5.0.18 to T5.0.1.5 a couple of days ago. Ok works fine ! But I work on an application which users can upload document and image. So my link to these assets must not contains the application version in their path. They can be dependant of my application version which change

Re: T5: Dynamic asset path

2008-09-08 Thread Inge Solvoll
-2 wrote: > > > > > > > > Hi! > > > > > > > > I would like to do something like this, but this syntax obviously > > doesn't > > > > work. The ${bannerPath} seems

Re: T5: Dynamic asset path

2008-08-07 Thread Davor Hrg
; > Inge Solvoll-2 wrote: > > > > > > Hi! > > > > > > I would like to do something like this, but this syntax obviously > doesn't > > > work. The ${bannerPath} seems to be pointing to a "symbol", which > > > obviously > > &

Re: T5: Dynamic asset path

2008-08-06 Thread Inge Solvoll
> obviously > > isn't a page property. > > Is there a similar way to do this? > > > > @Inject > > @Path("${bannerPath}") > > private Asset banner; > > > > > > public St

Re: T5: Dynamic asset path

2008-08-06 Thread 9902468
String getBannerPath() { > return "context:/company/1/banner.gif"; > } > > -- View this message in context: http://www.nabble.com/T5%3A-Dynamic-asset-path-tp18851298p18851830.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

Re: T5: Dynamic asset path

2008-08-06 Thread Inge Solvoll
Also, I can't seem to find out how to reference this asset in the .tml. Tried a lot similar to this, nothing worked: Also tried annotating "private Asset banner" with @Property, no diffference. The only thing I got working is this: But this doesn't work for me, becuse I need to compute each c

T5: Dynamic asset path

2008-08-06 Thread Inge Solvoll
Hi! I would like to do something like this, but this syntax obviously doesn't work. The ${bannerPath} seems to be pointing to a "symbol", which obviously isn't a page property. Is there a similar way to do this? @Inject @Path("${bannerPath}") private Asset banner; public String getBanne

Re: Dynamic asset

2008-05-03 Thread Massimo Lusetti
On Sat, May 3, 2008 at 3:03 PM, Toby Hobson <[EMAIL PROTECTED]> wrote: > > Great! > > Thanks! For the records... does this belongs to wiki?! Isn't there already? -- Massimo http://meridio.blogspot.com - To unsubscribe, e-mail:

Re: Dynamic asset

2008-05-03 Thread Massimo Lusetti
On Sat, May 3, 2008 at 2:40 PM, Toby Hobson <[EMAIL PROTECTED]> wrote: > > Thanks Massimo, > > Could you give me an example of how to return a link to an event handler > from an expansion, or point me to some docs for this? > > Toby > On your teamplate you got something like... Then on your cl

Re: Dynamic asset

2008-05-03 Thread Massimo Lusetti
On Sat, May 3, 2008 at 1:22 PM, Toby Hobson <[EMAIL PROTECTED]> wrote: > The url should be a static file on the server, alternatively I could point > it to a servlet or tapestry page which will retrieve the image from the file > system and stream it to the user There's already a solution for t

Re: Dynamic asset

2008-05-03 Thread Toby Hobson
Sorry ... To: Tapestry users ; Toby Hobson <[EMAIL PROTECTED]> Sent: Saturday, 3 May, 2008 1:05:52 AM Subject: Re: Dynamic asset I don't know what is. How are you getting the url? what is it supposed to point to? A page? an action? a static file on the server? Josh On Fri, May 2

Re: Dynamic asset

2008-05-02 Thread Josh Canfield
really > need is something like > > Toby > > > - Original Message > From: Josh Canfield <[EMAIL PROTECTED]> > To: Tapestry users ; Toby Hobson <[EMAIL > PROTECTED]> > Sent: Friday, 2 May, 2008 11:34:48 PM > Subject: Re: Dynamic asset > >

Re: Dynamic asset

2008-05-02 Thread Toby Hobson
Tried that but no luck because it misses the context root ... what i really need is something like Toby - Original Message From: Josh Canfield <[EMAIL PROTECTED]> To: Tapestry users ; Toby Hobson <[EMAIL PROTECTED]> Sent: Friday, 2 May, 2008 11:34:48 PM Subject: Re: D

Re: Dynamic asset

2008-05-02 Thread Josh Canfield
> but this causes the onActivate(Long) method to fall > over. How are you generating the url? It sounds like it's relative to the current page, and it should not be. Does do what you want? Josh On Fri, May 2, 2008 at 2:04 PM, Toby Hobson <[EMAIL PROTECTED]> wrote: > I am developing a photo sh

Dynamic asset

2008-05-02 Thread Toby Hobson
I am developing a photo sharing application and i would like to display a photo whose url is retrieved dynamically. I have a property "photo" on my ViewPhoto page and my ViewPhoto.tml is: but this causes the onActivate(Long) method to fall over. I've also tried but this doesn't work because