You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Borut Bolčina <bo...@gmail.com> on 2008/10/03 12:58:33 UTC
Re: [T5] loading tapestry configuration from properties file?
Hi,
will this PropertiesFileSymbolProvider make into the framework?
Cheers,
Borut
2008/9/18 Ulrich Stärk <ul...@spielviel.de>
> Here you go:
> http://wiki.apache.org/tapestry/Tapestry5HowToReadSymbolsFromPropertiesFile
>
> Cheers,
>
> Uli
>
> Peter Stavrinides schrieb:
>
> Thats great thanks for sharing!
>>
>> ----- Original Message -----
>> From: "Ulrich Stärk" <ul...@spielviel.de>
>> To: "Tapestry users" <us...@tapestry.apache.org>
>> Sent: Thursday, 18 September, 2008 11:44:30 AM GMT +02:00 Athens, Beirut,
>> Bucharest, Istanbul
>> Subject: Re: [T5] loading tapestry configuration from properties file?
>>
>> I wrote a SymbolProvider that reads a properties file either from
>> classpath or a filesystem location. I'm going to write a wiki howto about it
>> today.
>>
>> Uli
>>
>> Neeme Praks schrieb:
>>
>>> Hi,
>>>
>>> I know Tapestry5 really pushes the convention-over-configuration
>>> approach, but lets face it - in every non-trivial application you
>>> eventually need to configure stuff. If not directly tapestry-related
>>> properties, then at least your application.
>>>
>>> By default, Tapestry seems to suggest that everybody should start using
>>> web.xml for all such configuration purposes. At least that's the
>>> impression that I get when looking at
>>> http://tapestry.apache.org/tapestry5/guide/conf.html.
>>>
>>> However, I don't particularly like the overly-verbose web.xml style of
>>> configuring plain-simple properties - I'd rather use (the much more
>>> concise) properties file syntax for that.
>>>
>>> Is it possible to tell to Tapestry: "please load all properties from
>>> WEB-INF/myapp.properties"?
>>>
>>> If not, can someone give some pointers on how to implement it?
>>> (it would also be a welcome "out-of-the-box" addition to Tapestry5)
>>>
>>> Rgds,
>>> Neeme
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
RE: [T5] loading tapestry configuration from properties file?
Posted by taffit <ta...@gmail.com>.
Just wanted to give a big "Thank you" Ulrich for your wiki entry. It was
extremely helpful for me and just the thing I needed.
Thanks again, David
--
View this message in context: http://tapestry.1045711.n5.nabble.com/T5-loading-tapestry-configuration-from-properties-file-tp2426845p5481846.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
RE: [T5] loading tapestry configuration from properties file?
Posted by Algirdas <al...@gmail.com>.
I had some problems with deploying my project and reading properties with
this example (developed on Jetty - OK!, but deployed on Tomcat, and reading
properties failed).
Solution was in Tapestry source code:
InputStream in =
Thread.currentThread().getContextClassLoader().getResourceAsStream(resourceName);
reads resource from classpath :)
--
View this message in context: http://n2.nabble.com/-T5--loading-tapestry-configuration-from-properties-file--tp1097577p2177581.html
Sent from the Tapestry Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
RE: [T5] loading tapestry configuration from properties file?
Posted by Russell Brown <Ru...@ioko.com>.
+1 for having it I the framework since virtually *everyone* seems to end up writing one or wanting one.
Cheers
Russell
-----Original Message-----
From: Borut Bolčina [mailto:borut.bolcina@gmail.com]
Sent: 03 October 2008 11:59
To: Tapestry users
Subject: Re: [T5] loading tapestry configuration from properties file?
Hi,
will this PropertiesFileSymbolProvider make into the framework?
Cheers,
Borut
2008/9/18 Ulrich Stärk <ul...@spielviel.de>
> Here you go:
> http://wiki.apache.org/tapestry/Tapestry5HowToReadSymbolsFromPropertiesFile
>
> Cheers,
>
> Uli
>
> Peter Stavrinides schrieb:
>
> Thats great thanks for sharing!
>>
>> ----- Original Message -----
>> From: "Ulrich Stärk" <ul...@spielviel.de>
>> To: "Tapestry users" <us...@tapestry.apache.org>
>> Sent: Thursday, 18 September, 2008 11:44:30 AM GMT +02:00 Athens, Beirut,
>> Bucharest, Istanbul
>> Subject: Re: [T5] loading tapestry configuration from properties file?
>>
>> I wrote a SymbolProvider that reads a properties file either from
>> classpath or a filesystem location. I'm going to write a wiki howto about it
>> today.
>>
>> Uli
>>
>> Neeme Praks schrieb:
>>
>>> Hi,
>>>
>>> I know Tapestry5 really pushes the convention-over-configuration
>>> approach, but lets face it - in every non-trivial application you
>>> eventually need to configure stuff. If not directly tapestry-related
>>> properties, then at least your application.
>>>
>>> By default, Tapestry seems to suggest that everybody should start using
>>> web.xml for all such configuration purposes. At least that's the
>>> impression that I get when looking at
>>> http://tapestry.apache.org/tapestry5/guide/conf.html.
>>>
>>> However, I don't particularly like the overly-verbose web.xml style of
>>> configuring plain-simple properties - I'd rather use (the much more
>>> concise) properties file syntax for that.
>>>
>>> Is it possible to tell to Tapestry: "please load all properties from
>>> WEB-INF/myapp.properties"?
>>>
>>> If not, can someone give some pointers on how to implement it?
>>> (it would also be a welcome "out-of-the-box" addition to Tapestry5)
>>>
>>> Rgds,
>>> Neeme
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>