You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Shing Hing Man <ma...@yahoo.com> on 2007/08/11 13:14:07 UTC
T5.0.5 : How to specify a global meta key/value pair
In T4, I can use <meta> tag in .application to
specify a global meta key/value pair.
How can this be done in T5 ?
Thanks in advance for any assistance!
Shing
Home page : http://www.lombok.demon.co.uk/
___________________________________________________________
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5.0.5 : How to specify a global meta key/value pair
Posted by Allen Guo <el...@gmail.com>.
For Global value, can I use static variable ?
Shing Hing Man 写道:
> It works using symbol. Thanks!
> The following is what I have done.
>
> Add the following to AppModule.java :
>
> public static void contributeApplicationDefaults(
> MappedConfiguration<String, String>
> configuration)
> {
> configuration.add("tempDir",
> "/tmp/tapestry5/");
> }
>
>
> In a Tapestry page, to retrieve the value for
> 'tempDir' :
> @Inject
> private SymbolSource symbolSource;
>
> symbolSource.expandSymbols("${tempDir}");
>
>
> Shing
>
>
> --- Robert Zeigler <ro...@scazdl.org> wrote:
>
>
>> how about contributing your key/value pair to the
>> application
>> defaults, and resolving your meta information later
>> via symbols?
>>
>> Robert
>>
>> On Aug 11, 2007, at 6:14 AM, Shing Hing Man wrote:
>>
>>
>>> In T4, I can use <meta> tag in .application to
>>> specify a global meta key/value pair.
>>> How can this be done in T5 ?
>>>
>>> Thanks in advance for any assistance!
>>>
>>> Shing
>>>
>>> Home page : http://www.lombok.demon.co.uk/
>>>
>>>
>>>
>>>
>>>
> ___________________________________________________________
>
>>> Yahoo! Answers - Got a question? Someone out there
>>>
>> knows the
>>
>>> answer. Try it
>>> now.
>>> http://uk.answers.yahoo.com/
>>>
>>>
>>>
> ---------------------------------------------------------------------
>
>>> 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
>>
>>
>>
>
>
> Home page : http://www.lombok.demon.co.uk/
>
>
>
> ___________________________________________________________
> Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
> now.
> http://uk.answers.yahoo.com/
>
> ---------------------------------------------------------------------
> 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.0.5 : How to specify a global meta key/value pair
Posted by Shing Hing Man <ma...@yahoo.com>.
It works using symbol. Thanks!
The following is what I have done.
Add the following to AppModule.java :
public static void contributeApplicationDefaults(
MappedConfiguration<String, String>
configuration)
{
configuration.add("tempDir",
"/tmp/tapestry5/");
}
In a Tapestry page, to retrieve the value for
'tempDir' :
@Inject
private SymbolSource symbolSource;
symbolSource.expandSymbols("${tempDir}");
Shing
--- Robert Zeigler <ro...@scazdl.org> wrote:
> how about contributing your key/value pair to the
> application
> defaults, and resolving your meta information later
> via symbols?
>
> Robert
>
> On Aug 11, 2007, at 6:14 AM, Shing Hing Man wrote:
>
> > In T4, I can use <meta> tag in .application to
> > specify a global meta key/value pair.
> > How can this be done in T5 ?
> >
> > Thanks in advance for any assistance!
> >
> > Shing
> >
> > Home page : http://www.lombok.demon.co.uk/
> >
> >
> >
> >
>
___________________________________________________________
> > Yahoo! Answers - Got a question? Someone out there
> knows the
> > answer. Try it
> > now.
> > http://uk.answers.yahoo.com/
> >
> >
>
---------------------------------------------------------------------
> > 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
>
>
Home page : http://www.lombok.demon.co.uk/
___________________________________________________________
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5.0.5 : How to specify a global meta key/value pair
Posted by Robert Zeigler <ro...@scazdl.org>.
how about contributing your key/value pair to the application
defaults, and resolving your meta information later via symbols?
Robert
On Aug 11, 2007, at 6:14 AM, Shing Hing Man wrote:
> In T4, I can use <meta> tag in .application to
> specify a global meta key/value pair.
> How can this be done in T5 ?
>
> Thanks in advance for any assistance!
>
> Shing
>
> Home page : http://www.lombok.demon.co.uk/
>
>
>
> ___________________________________________________________
> Yahoo! Answers - Got a question? Someone out there knows the
> answer. Try it
> now.
> http://uk.answers.yahoo.com/
>
> ---------------------------------------------------------------------
> 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