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

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: 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

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

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...

RE: @Asset problem

2006-11-27 Thread Thomas.Vaughan
We do something similar; you can have your @Border *always* pull in a single stylesheet that has a single line: @import (http://your.style.server/blah.css;) You host blah.css off Apache (or Tomcat, or whatever) outside of the context of your webapp and change at will. You can use nested

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

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. Can