[jbossseam-issues] [JBoss JIRA] Updated: (JBSEAM-3774) Interpolator does not support # in choice/MessageFormat does

Guy Di Fulvio (JIRA) jira-events at lists.jboss.org
Tue Jan 13 03:01:04 EST 2009


     [ https://jira.jboss.org/jira/browse/JBSEAM-3774?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guy Di Fulvio updated JBSEAM-3774:
----------------------------------


In this exemple #{mylistsize} is the number of elements in a list. Depending on the list size the message is différent.

.xhtml
<h:outputFormat value="&#62;&#62; #{messages['foundMsg']}" >
   <f:param value="#{mylistsize}"/>
</h:outputFormat>

.properties
foundMsg = {0,choice,0#nothing found|1#1 element found|1<{0} elements found}


> Interpolator does not support # in choice/MessageFormat does
> ------------------------------------------------------------
>
>                 Key: JBSEAM-3774
>                 URL: https://jira.jboss.org/jira/browse/JBSEAM-3774
>             Project: Seam
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.3.CR1, 2.1.0.CR1
>            Reporter: Guy Di Fulvio
>            Assignee: Norman Richards
>            Priority: Minor
>             Fix For: 2.1.2.CR1
>
>
> In my properties file:
> my.choice.message = {0,choice,0#No choice|1# 1 choice|1< {0,number,integer} choices}
> This is working with MessageFormat but Interpolator returns only  {0} and my choices are lost. 
> After checking the code the problem is coming from the #.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       




More information about the seam-issues mailing list