Re: T5: Newbie question - using a variable and replace it with a property

2007-10-01 Thread jblier

Thanks for your quick answer.

I changed the "App.properties" file name to "app.properties" and it works.
It looks like to be case sensitive.


Chris Lewis-5 wrote:
> 
> Whatever your app/context name is (by default its App as created by the 
> quickstart), create an App.properties file in WEB-INF. Assuming you've 
> done that and you have your "applicationTitle" message, access it in 
> templates using the "message" binding prefix:
> 

-- 
View this message in context: 
http://www.nabble.com/T5%3A-Newbie-question---using-a-variable-and-replace-it-with-a-property-tf4549496.html#a12983180
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5: Newbie question - using a variable and replace it with a property

2007-10-01 Thread Chris Lewis
Whatever your app/context name is (by default its App as created by the 
quickstart), create an App.properties file in WEB-INF. Assuming you've 
done that and you have your "applicationTitle" message, access it in 
templates using the "message" binding prefix:



${message:applicationTitle}


When you use expansions (${}) Tapestry uses a binding prefix to know 
what it is and where to find it. The default prefix used in templates is 
"prop", which instructs Tapestry to look for a property in the 
associated page class.


jblier wrote:

Newbie question:

I would like to replace the content of the  tag with a value read
from a .properties file.

How do I set the  tag?

${applicationTitle}

How do I set a .properties files that would contain:

applicationTitle=Application Title version 1

Currently I get the error:

Class org.example.myapp.pages.Start does not contain a property named
'applicationTitle' (within property expression 'applicationTitle').
Available properties: class, componentResources, currentTime.

  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



T5: Newbie question - using a variable and replace it with a property

2007-10-01 Thread jblier

Newbie question:

I would like to replace the content of the  tag with a value read
from a .properties file.

How do I set the  tag?

${applicationTitle}

How do I set a .properties files that would contain:

applicationTitle=Application Title version 1

Currently I get the error:

Class org.example.myapp.pages.Start does not contain a property named
'applicationTitle' (within property expression 'applicationTitle').
Available properties: class, componentResources, currentTime.

-- 
View this message in context: 
http://www.nabble.com/T5%3A-Newbie-question---using-a-variable-and-replace-it-with-a-property-tf4549496.html#a12982886
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]