That's exactly what I'm doing now. Asset Factory uses the Asset Alias Manager
to parse the request params out.
The problem is in my implementation of Resource.
- Original Message
From: manuel aldana
To: Tapestry users
Sent: Sunday, February 8, 2009 8:13:58 PM
Subject: Re: Dynamic
I see,
so I guess this environment-info somehow is encoded inside the URL (e.g.
test.company.org resources should go to different server as
company.org). Then maybe it is worth to introduce kind of a environment
service which parses URL and sets environment properties. You could
reuse this ap
Unless I misunderstand things completely, I don't think this is possible.
Because the values for those variables are determined from request
params/attributes.
- Original Message
From: manuel aldana
To: Tapestry users
Sent: Sunday, February 8, 2009 7:45:32 PM
Subject: Re: Dynamic V
Instead of passing ${server_host}${css_root} to the asset annotations
you could use plain old properties which are then loaded to the
environment and passed to the AssetFactory.
@Inject
@Path("cdn:path/aboveRoot")
private Asset asset;
Dave Greggory schrieb:
I figured out most of it.
I had t
I figured out most of it.
I had to implement an Asset Factory, an Asset Alias Manager, an Asset Resource
and an Asset Provider annotation (pretty similar to URI Asset Factory in
chenille kit). No bindings were necessary. Instead of injecting an Asset, I
look it up.
asset = assetSource.getAsse
You need to define an interface for the service; only services with
interfaces can be proxied, and only proxied interfaces can have
non-default scope.
On Sun, Feb 8, 2009 at 4:48 AM, Jack Nuzbit wrote:
> I'm trying to use the tapestry IoC to inject a per thread service into my
> other services.
>
Hi,
google is your friend:
http://www.google.fi/search?q=css+input+submit
Three first articles all fullfill your needs.
- Ville
kace wrote:
>
> Hi fellas,
>
> this isnt a T5 question but hoping someone can help out.
>
> I am looking to style buttons
>
> - how would i got about styli
So, tell me whether I have this straight.
In order to create Asset instances based on URL (actual asset CSS files
residing on a completely different web server = CDN) like below:
@Inject
@Path("paramasset:${server_host}${css_root}/commons.css")
private Asset myCommonAsset;
server_host varies f
I'm trying to use the tapestry IoC to inject a per thread service into my
other services.
@Scope(ScopeConstants.PERTHREAD)
public class PerThreadService {
private MyObject myObject;
public PerThreadService(Cookies cookies) {
myObject = new MyObject(cookies.readCookieValue("userData
Hi Many thanks for your reply. First option worked for me.
I tried to implement the second option with a script. But suprisingly, it's
executing the script code first which sets the focus to a textfield and then
again the defaut code which is getting added to the end of rendered html
code and it'
10 matches
Mail list logo