[jboss-user] [JBoss Seam] - Re: resource bundle

2007-08-14 Thread urswag
Thanks but it does not change the effect. Simply pwdchange.screen.title is written on the screen. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4073830#4073830 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073830

[jboss-user] [JBoss Seam] - Re: resource bundle

2007-08-14 Thread nickarls
Does f:loadBundle see it? Does it work if you just put it in messages.properties? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4073832#4073832 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073832

[jboss-user] [JBoss Seam] - Re: resource bundle

2007-08-14 Thread urswag
Seam 2.0 Beta If I try this it works. The entry in the properties file for pwdchange.screen.title is printed out correctly. | f:loadBundle basename=messagesAfn var=messagesAfn / | h:outputText value=#{messagesAfn['pwdchange.screen.title']} / | Putting the entries in the properties file

[jboss-user] [JBoss Seam] - Re: resource bundle

2007-08-14 Thread urswag
If I use it in the context with pages.xml it works. | page view-id=/* bundle=messagesAfn | | /page | This works but I would to use it as a global resource. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4073878#4073878 Reply to the post

[jboss-user] [JBoss Seam] - Re: resource bundle

2007-08-14 Thread atao
What is you configuration in faces-config.xml? What is the current value of locale? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4073906#4073906 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073906

[jboss-user] [JBoss Seam] - Re: resource bundle

2007-08-14 Thread urswag
|application | message-bundlemessages/message-bundle | locale-config | default-localeen/default-locale | /locale-config | !-- Disabled when using Ajax4JSF -- | !-- |

[jboss-user] [JBoss Seam] - Re: resource bundle

2007-08-14 Thread atao
Try: - either to remove default-locale in locale-config - or to change the name of properties file from messagesAfn.properties to messagesAfn_en.properties View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4074002#4074002 Reply to the post :

[jboss-user] [JBoss Seam] - Re: resource bundle

2007-08-13 Thread atao
Only use messages to get the message map, i.e.: | h:outputText value=#{messages['pwdchange.screen.title']} / | even if you use different bundle names View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4073748#4073748 Reply to the post :

[jboss-user] [JBoss Seam] - Re: resource bundle problem

2007-01-17 Thread smartbinary
You may want to refer to the docs @ http://docs.jboss.com/seam/latest/reference/en/html/i18n.html Your need to inject the messages component. Regards, Todd View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4002803#4002803 Reply to the post :

[jboss-user] [JBoss Seam] - Re: resource bundle problem

2007-01-17 Thread yoav200
but all the idea is to inject countries and not message. with messages every thing works fine. how can i put more resources? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4002899#4002899 Reply to the post :

[jboss-user] [JBoss Seam] - Re: resource bundle problem

2007-01-17 Thread smartbinary
Not sure I follow you ... however, *if* you are just trying to have multiple resource bundles, that process is documented at http://docs.jboss.com/seam/latest/reference/en/html/i18n.html. Perhaps you are stating that you are not seeing the key-value pairs inside your

[jboss-user] [JBoss Seam] - Re: resource-bundle question

2007-01-16 Thread mikepkp17
try f:selectItems value=#{messages[some.key]}/ where some.key is some.key = some strange text in your countries.properties View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4002229#4002229 Reply to the post :

[jboss-user] [JBoss Seam] - Re: resource-bundle question

2007-01-16 Thread yoav200
but i want to go over all countries not only one View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4002236#4002236 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4002236 ___ jboss-user

[jboss-user] [JBoss Seam] - Re: resource-bundle question

2007-01-16 Thread yoav200
and another question how can I get a message value dynamically? for instance: String msgValue = 'someValue'; #{messages[ msgValue ] } is possible? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4002237#4002237 Reply to the post :

[jboss-user] [JBoss Seam] - Re: resource-bundle question

2007-01-16 Thread petemuir
You can't use a message bundle like that - it's for internationalisation of messages, not iteration. You'll need to use a Collection of some sort in a backing bean or specify them in the view descriptor itself (use f:selectItem). If, by your second question, you're asking how you get a message

[jboss-user] [JBoss Seam] - Re: resource-bundle question

2007-01-16 Thread yoav200
OK that work great, i used a bundleLoader that loads the messages but how can i print out useing h:outputText a specific country public void foo(String value) { ... String message = (String) messages.get( value ); ... } and for my first question, how can i load more resourses ? is it

[jboss-user] [JBoss Seam] - Re: resource-bundle question

2007-01-16 Thread petemuir
I'm not really following you here but, here goes h:outputText value=#{messages.china} / would work if you had a key called china in your message bundle (by default messages.properties). I'm not sure what you mean by 'load more resources', but, if you mean to split your message bundles into

[jboss-user] [JBoss Seam] - Re: resource-bundle question

2007-01-16 Thread yoav200
when i wrote 'bundleLoader' i mean a bean that loads the resource bundle and i use resources throw the bean. that way i can sort and do all kind of mnipulation on the data before i show it. i do not use f:loadBundle . What i want to do is this: | t:dataTable id=myTripsTable |

[jboss-user] [JBoss Seam] - Re: resource-bundle question

2007-01-16 Thread petemuir
Assuming you are using the Seam message bundle #{messages[aTrip.country]} will retrieve a resource that has #{aTrip.country} as the key. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4002342#4002342 Reply to the post :