myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Udo Schnurpfeil (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Resolved] (TOBAGO-1541) Use of ResourceBundles should support parameters
Date Thu, 17 Mar 2016 08:37:33 GMT

     [ https://issues.apache.org/jira/browse/TOBAGO-1541?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Udo Schnurpfeil resolved TOBAGO-1541.
-------------------------------------
       Resolution: Fixed
    Fix Version/s: 3.0.0
                   3.0.0-alpha-3

> Use of ResourceBundles should support parameters
> ------------------------------------------------
>
>                 Key: TOBAGO-1541
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-1541
>             Project: MyFaces Tobago
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Matthias Wronka
>            Assignee: Udo Schnurpfeil
>             Fix For: 3.0.0-alpha-3, 3.0.0
>
>
> Working with resourceBundles for i18n in JSF-Views should support parameters for formatted
messages similar to <h:outputFormat> as described here: http://www.mkyong.com/jsf2/jsf-2-0-and-resource-bundles-example/
> The solution could look like this:
> bundle.properties:
> 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" />
> </tc:out>
> The output should be (surprise): "Parameter 1 is First value, parameter 2 Second value."



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message