You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by (株)ジインズ 岸野 <ki...@jins.co.jp> on 2007/10/04 04:04:06 UTC

T5: How can I use Application Message Catalog

Hi,

I want to use Application Message Catalog to define
common labels.


http://tapestry.apache.org/tapestry5/tapestry-core/guide/localization.html

In URL above, it says "WEB-INF/AppName.properties" is the
Application Message Catalog and says AppName is the name
of filter in "web.xml".

My web.xml is:

<filter>
    <filter-name>app</filter-name>
    <filter-class>org.apache.tapestry.TapestryFilter</filter-class>
</filter>

so, I made a file named "WEB-INF/app.properties", but it
seems to be ignored.

app.properties is:

name-label=Your Name
address-label=Your Address
email-label=Your E-Mail


What is my fault?

--
Ken : kishino@jins.co.jp


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5: How can I use Application Message Catalog

Posted by "???? ?? (?)" <ki...@jins.co.jp>.
I tried on 5.0.5, then it works!

Thank you so much.

-- 
Ken: kishino@jins.co.jp


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5: How can I use Application Message Catalog

Posted by "???? ?? (?)" <ki...@jins.co.jp>.
Nick Westgate wrote:
> That's a bit old now. ;-)

Oh, I see...
Anyway thanks a lot.

-- 
Ken: kishino@jins.co.jp


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5: How can I use Application Message Catalog

Posted by Nick Westgate <ni...@key-planning.co.jp>.
That's a bit old now. ;-)

See how you go with 5.0.5 first. If that works ok, start reading
the posts in the list about the changes to upgrade to 5.0.6.

Cheers,
Nick.


(?)???? ?? wrote:
>> You restarted the container, right? Tomcat or Jetty?
>> Either way, it should have worked.
> 
> I restarted Jetty but doesn't work.
> 
>> Tapestry 5.0.5 or 5.0.6?
> 
> My Tapestry is 5.0.4.
> Is this wrong?
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5: How can I use Application Message Catalog

Posted by "???? ?? (?)" <ki...@jins.co.jp>.
> You restarted the container, right? Tomcat or Jetty?
> Either way, it should have worked.

I restarted Jetty but doesn't work.

> Tapestry 5.0.5 or 5.0.6?

My Tapestry is 5.0.4.
Is this wrong?

-- 
Ken: kishino@jins.co.jp


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5: How can I use Application Message Catalog

Posted by Nick Westgate <ni...@key-planning.co.jp>.
> But I rename it to "app.properties" and move to WEB-INF,
> It did not work.

You restarted the container, right? Tomcat or Jetty?
Either way, it should have worked.
Tapestry 5.0.5 or 5.0.6?

Cheers,
Nick.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5: How can I use Application Message Catalog

Posted by (株)ジインズ 岸野 <ki...@jins.co.jp>.
Angelo Chen wrote:
> then in your template, you do:
>  <p>${message:name-label}</p>
> 
> ?

A string "[[missing key: name-label]] " was displayed.


Nick Westgate wrote:
 > How are you using the messages?

I use BeanEditForm.
I made a Bean "MyBean" like:

public class MyBean {
	private int _id;
	private String _name;
	private String _address;
	private String _email;

	@NonVisual
	public int getId() {
		return _id;
	}

	public void setId(int id) {
		this._id = id;
	}

	@Validate("required")
	@Order(1)
	public String getName() {
		return _name;
	}

	...
}

and made a page "MyPage" just copy/paste from:
http://tapestry.apache.org/tapestry5/tapestry-core/guide/beaneditform.html
chapter "Providing the BeanModel".

When I made "MyPage.properties" in same directory with
MyPage, It works.

But I rename it to "app.properties" and move to WEB-INF,
It did not work.


Am I enough?
Do I have to show more codes or something?


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5: How can I use Application Message Catalog

Posted by Angelo Chen <an...@yahoo.com.hk>.
then in your template, you do:
 <p>${message:name-label}</p>

?


(株)ジインズ 岸野 wrote:
> 
> Sorry.
> 
> I made "app.properties" under "WEB-INF".
> But ignored.
> 
>> file name should be app.properties and put it under WEB-INF directory.
>> 
>> 
>> (株)ジインズ 岸野 wrote:
>> 
>>>Hi,
>>>
>>>I want to use Application Message Catalog to define
>>>common labels.
>>>
>>>
>>>http://tapestry.apache.org/tapestry5/tapestry-core/guide/localization.html
>>>
>>>In URL above, it says "WEB-INF/AppName.properties" is the
>>>Application Message Catalog and says AppName is the name
>>>of filter in "web.xml".
>>>
>>>My web.xml is:
>>>
>>><filter>
>>>    <filter-name>app</filter-name>
>>>    <filter-class>org.apache.tapestry.TapestryFilter</filter-class>
>>></filter>
>>>
>>>so, I made a file named "WEB-INF/app.properties", but it
>>>seems to be ignored.
>>>
>>>app.properties is:
>>>
>>>name-label=Your Name
>>>address-label=Your Address
>>>email-label=Your E-Mail
>>>
>>>
>>>What is my fault?
>>>
>>>--
>>>Ken : kishino@jins.co.jp
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>>>
>>>
>> 
>> 
> 
> -- 
> Ken: kishino@jins.co.jp
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/T5%3A-How-can-I-use-Application-Message-Catalog-tf4565419.html#a13031696
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: How can I use Application Message Catalog

Posted by Nick Westgate <ni...@key-planning.co.jp>.
How are you using the messages?

Cheers,
Nick.


(株)ジインズ 岸野 wrote:
> Sorry.
> 
> I made "app.properties" under "WEB-INF".
> But ignored.
> 
>> file name should be app.properties and put it under WEB-INF directory.
>>
>>
>> (株)ジインズ 岸野 wrote:
>>
>>> Hi,
>>>
>>> I want to use Application Message Catalog to define
>>> common labels.
>>>
>>>
>>> http://tapestry.apache.org/tapestry5/tapestry-core/guide/localization.html 
>>>
>>>
>>> In URL above, it says "WEB-INF/AppName.properties" is the
>>> Application Message Catalog and says AppName is the name
>>> of filter in "web.xml".
>>>
>>> My web.xml is:
>>>
>>> <filter>
>>>    <filter-name>app</filter-name>
>>>    <filter-class>org.apache.tapestry.TapestryFilter</filter-class>
>>> </filter>
>>>
>>> so, I made a file named "WEB-INF/app.properties", but it
>>> seems to be ignored.
>>>
>>> app.properties is:
>>>
>>> name-label=Your Name
>>> address-label=Your Address
>>> email-label=Your E-Mail
>>>
>>>
>>> What is my fault?
>>>
>>> -- 
>>> Ken : kishino@jins.co.jp
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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: How can I use Application Message Catalog

Posted by (株)ジインズ 岸野 <ki...@jins.co.jp>.
Sorry.

I made "app.properties" under "WEB-INF".
But ignored.

> file name should be app.properties and put it under WEB-INF directory.
> 
> 
> (株)ジインズ 岸野 wrote:
> 
>>Hi,
>>
>>I want to use Application Message Catalog to define
>>common labels.
>>
>>
>>http://tapestry.apache.org/tapestry5/tapestry-core/guide/localization.html
>>
>>In URL above, it says "WEB-INF/AppName.properties" is the
>>Application Message Catalog and says AppName is the name
>>of filter in "web.xml".
>>
>>My web.xml is:
>>
>><filter>
>>    <filter-name>app</filter-name>
>>    <filter-class>org.apache.tapestry.TapestryFilter</filter-class>
>></filter>
>>
>>so, I made a file named "WEB-INF/app.properties", but it
>>seems to be ignored.
>>
>>app.properties is:
>>
>>name-label=Your Name
>>address-label=Your Address
>>email-label=Your E-Mail
>>
>>
>>What is my fault?
>>
>>--
>>Ken : kishino@jins.co.jp
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>>
> 
> 

-- 
Ken: kishino@jins.co.jp


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5: How can I use Application Message Catalog

Posted by Angelo Chen <an...@yahoo.com.hk>.
file name should be app.properties and put it under WEB-INF directory.


(株)ジインズ 岸野 wrote:
> 
> Hi,
> 
> I want to use Application Message Catalog to define
> common labels.
> 
> 
> http://tapestry.apache.org/tapestry5/tapestry-core/guide/localization.html
> 
> In URL above, it says "WEB-INF/AppName.properties" is the
> Application Message Catalog and says AppName is the name
> of filter in "web.xml".
> 
> My web.xml is:
> 
> <filter>
>     <filter-name>app</filter-name>
>     <filter-class>org.apache.tapestry.TapestryFilter</filter-class>
> </filter>
> 
> so, I made a file named "WEB-INF/app.properties", but it
> seems to be ignored.
> 
> app.properties is:
> 
> name-label=Your Name
> address-label=Your Address
> email-label=Your E-Mail
> 
> 
> What is my fault?
> 
> --
> Ken : kishino@jins.co.jp
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/T5%3A-How-can-I-use-Application-Message-Catalog-tf4565419.html#a13031429
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