Re: Re: Re: @Asset problem

2006-11-29 Thread Srinivas Yermal
Thank you all... Will try them all out. Srini. On 11/28/06, Sam Gendler <[EMAIL PROTECTED]> wrote: Incidentally, in our case, we have a mechanism within spring that will detect the existence of a context file in a location outside the war file and use that to override bean definitions in the co

Re: Re: Re: @Asset problem

2006-11-28 Thread Sam Gendler
Incidentally, in our case, we have a mechanism within spring that will detect the existence of a context file in a location outside the war file and use that to override bean definitions in the context file(s) inside the war file. I don't konw that such a mechanism is possible within hivemind (bu

Re: Re: @Asset problem

2006-11-28 Thread Sam Gendler
OK, here's a bit of a convoluted solution, but it works. In my case, I'm using spring, but you could do the exact same thing within hivemind. I've got an object that has some string properties that I want to configure at run time. Let's call is CssOverrides. It can be populated with a list of

Re: @Asset problem

2006-11-27 Thread andyhot
Srinivas Yermal wrote: > Thanks guys! > I think I will just go with the "putting it in html" solution. The only > problem with this is that it creates two head elements, since I use > @Shell. http://wiki.apache.org/tapestry/CustomTagsInShell > > BTW, I couldnt find import component or annotation.

Re: @Asset problem

2006-11-27 Thread Srinivas Yermal
Thanks guys! I think I will just go with the "putting it in html" solution. The only problem with this is that it creates two head elements, since I use @Shell. BTW, I couldnt find import component or annotation. Can you please point me to any documentation that you have. Thanks, Srini. On 11/2

RE: @Asset problem

2006-11-27 Thread Thomas.Vaughan
use nested @imports (e.g., blah.css is maybe just a collection of @imports as well). HTH, Tom -Original Message- From: Srinivas Yermal [mailto:[EMAIL PROTECTED] Sent: Monday, November 27, 2006 8:57 AM To: Tapestry users Subject: @Asset problem Hi, I am now a big fan of tapestry annotat

Re: @Asset problem

2006-11-27 Thread Ron Piterman
You are mixing between creating assets and defining them. The annotation is defining an asset, and what you probably want is create a new one on the fly.- To do so, you need to inject one of the AssetFactory services from here, and use it to create one on the fly... http://tapestry.apache.o

Re: @Asset problem

2006-11-27 Thread andyhot
You could implement http://tapestry.apache.org/tapestry4/tapestry/apidocs/org/apache/tapestry/IAsset.html esp. the buildURL method and make it work the way you like You could also spare creating assets for css, and include them in your Border the html way... If you're on 4.1.x versions, this comp

@Asset problem

2006-11-27 Thread Srinivas Yermal
Hi, I am now a big fan of tapestry annotations since everything stays neatly in one place, except in one area which still bothers me. I want to specify assets like stylesheets and such in a Border component that can be used by the rest of the pages and the whole app looks uniform and so on and so