Re: Dynamic Assets

2012-10-28 Thread Dragan Sahpaski
e.getExpandedAsset("context:/img/icon/star/starScore00.png").toClientURL(); > > thx > > > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Dynamic-Assets-tp5717354p5717361.html > Sent from

Re: Dynamic Assets

2012-10-28 Thread sommeralex
works now with @Inject private AssetSource assetSource; assetSource.getExpandedAsset("context:/img/icon/star/starScore00.png").toClientURL(); thx -- View this message in context: http://tapestry.1045711.n5.nabble.com/Dynamic-Assets-tp5717354p5717361.html Sen

Re: Dynamic Assets

2012-10-28 Thread sommeralex
apidocs/org/apache/tapestry5/services/AssetSource.html > > Cheers, > Dragan Sahpaski > > > On Sun, Oct 28, 2012 at 8:55 PM, sommeralex <[hidden > email]<http://user/SendEmail.jtp?type=node&node=5717359&i=0>> > wrote: > > > Hello, > > > &g

Dynamic Assets

2012-10-28 Thread sommeralex
Hello, Which is the best way for using dynamic assets? In one of my classes, i have too much asset declarations now.. @Inject @Path("context:/img/icon/star/starScore20.png") private Asset star20Asset; What i would prefer is a method which directly is gene

Re: Dynamic Assets

2009-02-05 Thread Sid Ferreira
For now we'll try to replace Cayenne, but, I'll report all jars: cayenne.jar chenillekit-core-1.0.0.jar chenillekit-tapestry-1.0.0.jar commons-codec-1.3.jar javassist-3.8.0.GA.jar log4j-1.2.14.jar postgresql-8.2-508.jdbc3.jar slf4j-api-1.5.6.jar slf4j-log4j12-1.5.6.jar tapestry-core-5.0.18.jar tape

Re: Dynamic Assets

2009-02-05 Thread Massimo Lusetti
On Thu, Feb 5, 2009 at 10:52 AM, Massimo Lusetti wrote: > On Thu, Feb 5, 2009 at 10:32 AM, Sid Ferreira wrote: > >> Well, I got a long time with deploy errors when using CK (Core+Tapestry) and >> Cayenne. Just adding CK jars in my project was enough to fail the deploy > > I'm sorry about that, so

Re: Dynamic Assets

2009-02-05 Thread Massimo Lusetti
On Thu, Feb 5, 2009 at 10:32 AM, Sid Ferreira wrote: > Well, I got a long time with deploy errors when using CK (Core+Tapestry) and > Cayenne. Just adding CK jars in my project was enough to fail the deploy I'm sorry about that, so i can see two way to solve the issue: provide an useful feedback

Re: Dynamic Assets

2009-02-05 Thread Sid Ferreira
Well, I got a long time with deploy errors when using CK (Core+Tapestry) and Cayenne. Just adding CK jars in my project was enough to fail the deploy On Thu, Feb 5, 2009 at 06:16, Massimo Lusetti wrote: > On Wed, Feb 4, 2009 at 5:24 PM, Sid Ferreira wrote: > > > Well, the first tries with CK we

Re: Dynamic Assets

2009-02-05 Thread Massimo Lusetti
On Wed, Feb 4, 2009 at 5:24 PM, Sid Ferreira wrote: > Well, the first tries with CK were epic failures, but I'll try once more... > seem that CK and Cayenne have a small problem to work together, gotta test > it It depends on what modules you brought into your dependencies but the URIAssetFactor

Re: Dynamic Assets

2009-02-04 Thread Sid Ferreira
Well, the first tries with CK were epic failures, but I'll try once more... seem that CK and Cayenne have a small problem to work together, gotta test it On Wed, Feb 4, 2009 at 12:12, Massimo Lusetti wrote: > On Wed, Feb 4, 2009 at 1:58 PM, Sid Ferreira wrote: > > > This part of prefix and symb

Re: Dynamic Assets

2009-02-04 Thread Massimo Lusetti
On Wed, Feb 4, 2009 at 1:58 PM, Sid Ferreira wrote: > This part of prefix and symbols I know, I wanted to mean about custom > assets, in special file system that may be the most common asset type.Based > on dispatcher wiki pages Im wondering if it's needed some filter or > something... still look

Re: Dynamic Assets

2009-02-04 Thread Jonathan O'Connor
Sid, I think you will have to create a new binding prefix like "myAsset:", and hook it in to a dispatcher that returns a StreamResponse. That way you can decide how to read the images, e.g. from DB, or from directory on your server. Your myAsset binding prefix will probably convert the value i

Re: Dynamic Assets

2009-02-04 Thread Sid Ferreira
example in a _dynamic_ folder shared between some projects. On Wed, Feb 4, 2009 at 11:17, Sid Ferreira wrote: > No they are outside the webapp, I mean a custom asset wich is anywhere in > my server. For example in a folder shared between some projects. > > > On Wed, Feb 4, 2009 at 11:15, Thiago

Re: Dynamic Assets

2009-02-04 Thread Sid Ferreira
No they are outside the webapp, I mean a custom asset wich is anywhere in my server. For example in a folder shared between some projects. On Wed, Feb 4, 2009 at 11:15, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Wed, Feb 4, 2009 at 10:58 AM, Sid Ferreira wrote: > > This part

Re: Dynamic Assets

2009-02-04 Thread Thiago H. de Paula Figueiredo
On Wed, Feb 4, 2009 at 10:58 AM, Sid Ferreira wrote: > This part of prefix and symbols I know, I wanted to mean about custom > assets, Where are the assests? Are they inside the webapp context? If yes, then Tapestry already does what you need. What do you mean about custom assets? -- Thiago --

Re: Dynamic Assets

2009-02-04 Thread Sid Ferreira
This part of prefix and symbols I know, I wanted to mean about custom assets, in special file system that may be the most common asset type.Based on dispatcher wiki pages Im wondering if it's needed some filter or something... still looking for it and trying Chenille Kit's URIAsset On Wed, Feb 4

Re: Dynamic Assets

2009-02-04 Thread Thiago H. de Paula Figueiredo
On Wed, Feb 4, 2009 at 10:43 AM, Sid Ferreira wrote: > Strange that there's almost no docs regarding Assets in wiki... But the documentation has a page on it: http://tapestry.apache.org/tapestry5/guide/assets.html. I guess the context prefix is the one you're looking for. -- Thiago ---

Re: Dynamic Assets

2009-02-04 Thread Sid Ferreira
'cliente:' is actually an AssetFactory... changed to this way you said and still unsuccessful.This abstraction to access files it's a bit confusing to me and didn't found in the docs how exactly it work. I need a "FileSystem" asset factory, wich I tried to make and seem that some times it even find

Re: Dynamic Assets

2009-02-03 Thread Howard Lewis Ship
@Inject calculates the injected value once, when the page instance is first loaded. To get the behavior you want, change this to inject the AssetSource service and provide a getLogoWeb() method that obtains the asset via AssetSource.getAsset(null, "cliente:logoWeb.gif", locale); On Tue, Feb 3, 200

Dynamic Assets

2009-02-03 Thread Sid Ferreira
Hi guys! Im working on a small component that has an image asset that is based on the url.Unfortunelly, after created by the first time, the asset is cached and then the component doesn't get updated. How to make a dynamic asset that is updated at each request? My current declaration is: @Suppress

Dynamic Assets

2009-01-19 Thread Sid Ferreira
I was reading http://tapestry.apache.org/tapestry5/guide/assets.html(including checking out the AssetFactory docs) but didn't found how to generate a dynamic asset. I need, for instance, that based on my client a different image is loaded, but the name will always be the same. Any tip about how to