myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthias Wronka (JIRA)" <>
Subject [jira] [Created] (TOBAGO-1541) Use ResourceBundles should support parameters
Date Wed, 09 Mar 2016 15:19:40 GMT
Matthias Wronka created TOBAGO-1541:

             Summary: Use ResourceBundles should support parameters
                 Key: TOBAGO-1541
             Project: MyFaces Tobago
          Issue Type: New Feature
          Components: Core
            Reporter: Matthias Wronka

Working with resourceBundles for i18n in JSF-Views should support parameters for formatted
messages similar to <h:outputFormat> as described here:

The solution could look like this:
myStringWithParameters=Parameter 1 is {0}, parameter 2 {1}.

<tc:out value="#{bundle.myStringWithParameters" format="true>
  <f:param value="First value" />
  <f:param value="Second value" />

The output should be (surprise): "Parameter 1 is First value, parameter 2 Second value."

This message was sent by Atlassian JIRA

View raw message