Announcement Announcement Module
Collapse
No announcement yet.
JSF expression with "()" and message resolving Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • JSF expression with "()" and message resolving

    I want to access a messageSource from a JSF view. I tried this
    Code:
    <h:outputText value="${requestContext.resolveMessage('my.key')}"/>
    and get that error:
    Code:
    com.sun.el.parser.ParseException: Encountered "(" at line 1, column 32.<|Was expecting one of:<|    "}" ...<|    ...
            at com.sun.el.parser.ELParser.generateParseException(ELParser.java:1664)
    Should I switch to UnifiedEL to get support for "()"? Is it possible to use the Spring EL for that? Or is their another way to access messages from JSF-views?

  • #2
    I found the solution. It works like that:
    Code:
    #{resourceBundle['my.key']}

    Comment

    Working...
    X