This content has been marked as final.
Show 6 replies
-
1. Re: international problem:'edit' 'add' in messages_XX.properties
nickarls May 9, 2009 3:43 PM (in response to hztiger)try not to nest EL
-
2. Re: international problem:'edit' 'add' in messages_XX.properties
hztiger May 10, 2009 12:23 AM (in response to hztiger)thanks for replying. Do you mean replace edit and add with UTF-8 in the in XXXXEdit.xhtml?
I had many pages. there ought be a decent way to solve such problem. Do any one had more suggesions? -
3. Re: international problem:'edit' 'add' in messages_XX.properties
nickarls May 10, 2009 6:22 AM (in response to hztiger)Nesting. Don't use {{}}, stop one expression before starting another. "#{foo} #{bar}" not "#{#{foo}bar}". It's an EL parse error
-
4. Re: international problem:'edit' 'add' in messages_XX.properties
hztiger May 12, 2009 2:18 AM (in response to hztiger)thanks for reminding it's a parse error. What I want is a simple way to solve this problem. I'm new to jsf and seam. I do not know how to solve this problem. I think I am not first one met this problem.
-
5. Re: international problem:'edit' 'add' in messages_XX.properties
luxspes May 12, 2009 2:53 AM (in response to hztiger)
tiger zhao wrote on May 09, 2009 14:41:
I used seam jboss tool to reverse generate the database,everything is ok. But when I try to change message of 'edit' and 'add' in XXXXEdit.xhtml, I do not know how to do. I've already added messages.edit and messages.add in the messages_XX.properties .
As Nicklas Karlsson wrote, please do not nest { }.
So, did you tried changing this:<f:facet name="header">#{tblAreaHome.managed ? #{messages.edit} : #{messages.add}} Tbl area</f:facet> <f:facet name="header">#{tblAreaHome.managed ? '#{messages.edit}' : '#{messages.add}'} Tbl area</f:facet>
in to this?:<f:facet name="header">#{tblAreaHome.managed ? messages.edit : messages.add} Tbl area</f:facet> <f:facet name="header">#{tblAreaHome.managed ? messages.edit : messages.add} Tbl area</f:facet>
please give me some clues. thanks all.
See the difference? all you need to do is to do as Nicklas said:Don't use {{}}, stop one expression before starting another.
-
6. Re: international problem:'edit' 'add' in messages_XX.properties
hztiger May 13, 2009 5:26 PM (in response to hztiger)bingle, It works! thanks Francisco Peredo for word to word explaination:)