[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=bb&op=viewtopic&p=4002342#4002342 Reply to the post : http://www.jboss.com/index.html?module=

[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: | | | | | |

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

2007-01-16 Thread petemuir
I'm not really following you here but, here goes 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 multiple files, then yes, put the xxx.pro

[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 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 enough to put

[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
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=bb&op=viewtopic&p=4002237#4002237 Reply to the post : http://www.jboss.com/ind

[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=bb&op=viewtopic&p=4002236#4002236 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002236 ___ jboss-

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

2007-01-16 Thread mikepkp17
try where some.key is some.key = some strange text in your countries.properties View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002229#4002229 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002229 _