You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by seng kim khong <kh...@gmail.com> on 2006/04/27 12:20:33 UTC
Message Properties
Hi All,
I would like to ask that is it possible we can put the message properties
file in a centric place?
Because it will quite troublesome if we just can refer to the message
properties file with the same name of the file page if we got few page need
to using same property.
For example, I got a few page will use
<span jwcid="@Insert" value="message:name"/>
But I hope that I no need to put this name to few property file.
Any one have experience on this?
Thank you in advance!!
Regards,
Khong Seng Kin
Re: Message Properties
Posted by Andreas Bulling <sp...@phoenix.hadiko.de>.
| First of all, I would like to say thank you for the prompt reply from
| Andreas and Hugo.
You're welcome ;)
| From the above statement tapestry seem will load propertes with name
| myapp.properties, and etc. However, I just can success load those properties
| from myapp.properties only but tapestry will ignore
| anyOtherFileName.properties under WEB-INF folder. So, is it got any thing I
| need to set to ask tapestry to pick up those properties file?
Please have a look at chapter "Component Message Catalogs"
on the same page...
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Message Properties
Posted by seng kim khong <kh...@gmail.com>.
Hi,
First of all, I would like to say thank you for the prompt reply from
Andreas and Hugo.
I still got some thing need to be clarify.....
According to the tapestry documetation as provided by Hugo,
"The specification may also have a message catalog; for instance, for
WEB-INF/myapp.application, the files would be named WEB-INF/myapp.properties,
etc. Again, the name of the file is based on the servlet name ("myapp")."
>From the above statement tapestry seem will load propertes with name
myapp.properties, and etc. However, I just can success load those properties
from myapp.properties only but tapestry will ignore
anyOtherFileName.properties under WEB-INF folder. So, is it got any thing I
need to set to ask tapestry to pick up those properties file?
Cheers!
Thank You!
Re: Message Properties
Posted by Hugo Palma <hu...@gmail.com>.
More information on this can be found here
http://jakarta.apache.org/tapestry/UsersGuide/localization.html
On 27/04/06, Andreas Bulling <sp...@phoenix.hadiko.de> wrote:
>
> Hi,
>
> you know about the
>
> name_of_your_application.properties
>
> file below WEB-INF?
>
> Andreas
>
> On 27. Apr 2006 - 18:20:33, seng kim khong wrote:
> | Hi All,
> |
> |
> | I would like to ask that is it possible we can put the message
> properties
> | file in a centric place?
> | Because it will quite troublesome if we just can refer to the message
> | properties file with the same name of the file page if we got few page
> need
> | to using same property.
> |
> | For example, I got a few page will use
> | <span jwcid="@Insert" value="message:name"/>
> |
> | But I hope that I no need to put this name to few property file.
> |
> | Any one have experience on this?
> |
> | Thank you in advance!!
> |
> | Regards,
> | Khong Seng Kin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
Re: Message Properties
Posted by Andreas Bulling <sp...@phoenix.hadiko.de>.
Hi,
you know about the
name_of_your_application.properties
file below WEB-INF?
Andreas
On 27. Apr 2006 - 18:20:33, seng kim khong wrote:
| Hi All,
|
|
| I would like to ask that is it possible we can put the message properties
| file in a centric place?
| Because it will quite troublesome if we just can refer to the message
| properties file with the same name of the file page if we got few page need
| to using same property.
|
| For example, I got a few page will use
| <span jwcid="@Insert" value="message:name"/>
|
| But I hope that I no need to put this name to few property file.
|
| Any one have experience on this?
|
| Thank you in advance!!
|
| Regards,
| Khong Seng Kin
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org