Results 1 to 2 of 2

Thread: JSF expression with "()" and message resolving

  1. #1
    Join Date
    Feb 2009
    Posts
    13

    Default 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. #2
    Join Date
    Feb 2009
    Posts
    13

    Default

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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •