Re: How to display special characters in tml page
...then something is misspelled. your project name doesn't matter - it must be the page name that has to be equal to the properties (and .tml) name. I created projectname.properties file in the thought that it would support all the tml pages but it din't? If I have 40 pages in my project and I want to use a single common property throughtout the application pages - then I have to create 40 .properties file ah? here what would be the best way or am I doing anything wrong? -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-display-special-characters-in-tml-page-tp5527308p5537479.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: How to display special characters in tml page
If your application module is AppModule then you can put your common properties in /WEB-INF/app.properties. Sent from my iPhone On Mar 5, 2012, at 6:35 PM, karthi rathinasamy@snovabits.net wrote: ...then something is misspelled. your project name doesn't matter - it must be the page name that has to be equal to the properties (and .tml) name. I created projectname.properties file in the thought that it would support all the tml pages but it din't? If I have 40 pages in my project and I want to use a single common property throughtout the application pages - then I have to create 40 .properties file ah? here what would be the best way or am I doing anything wrong? -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-display-special-characters-in-tml-page-tp5527308p5537479.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: How to display special characters in tml page
Thank your reply... -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-display-special-characters-in-tml-page-tp5527308p5537546.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: How to display special characters in tml page
One solution is to use the outputraw component. In .properties file : erdos=Erdouml In .tml : t:outputraw value=message:erdos/ Shing From: karthi rathinasamy@snovabits.net To: users@tapestry.apache.org Sent: Thursday, March 1, 2012 8:56 AM Subject: How to display special characters in tml page How to show the special characters in tml page, html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_3.xsd;; xmlns:p=tapestry:parameter head title Test /title /head body p B*ö*rse /p /body /html When I hit this page in browser is throws the error message because of this character ö Invalid byte 2 of 4-byte UTF-8 sequence. How to resolve this? -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-display-special-characters-in-tml-page-tp5527308p5527308.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: How to display special characters in tml page
or like this... .properties: market=Börse .tml ${message:market} Am 01.03.2012 um 11:04 schrieb Shing Hing Man: One solution is to use the outputraw component. In .properties file : erdos=Erdouml In .tml : t:outputraw value=message:erdos/ Shing From: karthi rathinasamy@snovabits.net To: users@tapestry.apache.org Sent: Thursday, March 1, 2012 8:56 AM Subject: How to display special characters in tml page How to show the special characters in tml page, html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_3.xsd;; xmlns:p=tapestry:parameter head title Test /title /head body p B*ö*rse /p /body /html When I hit this page in browser is throws the error message because of this character ö Invalid byte 2 of 4-byte UTF-8 sequence. How to resolve this? -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-display-special-characters-in-tml-page-tp5527308p5527308.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: How to display special characters in tml page
I tried that in properties file but it says missing key -- [[missing key: stock]] My project name is Registration, in that under resources - pages package created one Registration.properties file and in that added that key and value In test.tml file when I called like this p ${message:stock} /p it throws the above error -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-display-special-characters-in-tml-page-tp5527308p5527609.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: How to display special characters in tml page
Please check your web.xml. In mine : filter filter-nameapp/filter-name filter-classorg.apache.tapestry5.TapestryFilter/filter-class /filter My global properties file is called app.properties (from filter name) , and it is in the same folder as web.xml. Also note that each page/component could have its own properties file. The values in the page/component properties file takes precedence over it containers properties file. Shing - Original Message - From: karthi rathinasamy@snovabits.net To: users@tapestry.apache.org Cc: Sent: Thursday, March 1, 2012 11:07 AM Subject: Re: How to display special characters in tml page I tried that in properties file but it says missing key -- [[missing key: stock]] My project name is Registration, in that under resources - pages package created one Registration.properties file and in that added that key and value In test.tml file when I called like this p ${message:stock} /p it throws the above error -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-display-special-characters-in-tml-page-tp5527308p5527609.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: How to display special characters in tml page
...then something is misspelled. your project name doesn't matter - it must be the page name that has to be equal to the properties (and .tml) name. don't forget to check out the user guide: http://tapestry.apache.org/user-guide.html http://tapestry.apache.org/localization.html Am 01.03.2012 um 12:07 schrieb karthi: I tried that in properties file but it says missing key -- [[missing key: stock]] My project name is Registration, in that under resources - pages package created one Registration.properties file and in that added that key and value In test.tml file when I called like this p ${message:stock} /p it throws the above error -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-display-special-characters-in-tml-page-tp5527308p5527609.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org