• Post Reply Bookmark Topic Watch Topic
  • New Topic

Right syntax for messages with static and dynamic key parts

 
Oleg Varaksin
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have a quite simple question :-) How can I get messages if one part of key is static (fix) and the other one dynamic? For instance I have the following keys and messages in my property file
breadcrumb.overview=Overview
breadcrumb.step1=Step 1
breadcrumb.step2=Step 2
....

in a loop with ui:repeat I get variable "item" that has a property "name". If I try now

oror
nothing works. What is the right syntax?

Best regards.
Oleg.
 
Jason Porter
Author
Ranch Hand
Posts: 126
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would have thought the first option would work. Try putting it into an outputText and see what you're getting, then go from there.
 
Oleg Varaksin
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jason Porter wrote:I would have thought the first option would work. Try putting it into an outputText and see what you're getting, then go from there.


No, It doesn't wotk. I've tried all variants. Simply output of item.name works (item.name is a String).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!