Issue Details (XML | Word | Printable)

Type: Bug Bug
Status: Closed Closed
Resolution: Incomplete
Priority: Trivial Trivial
Assignee: Unassigned
Reporter: mansour
Votes: 0
Watchers: 2

If you were logged in you would be able to see more operations.

f:convertDateTime validation error message FR

Created: 01/Jun/11 03:43 AM   Updated: 07/Mar/13 11:23 PM   Resolved: 07/Mar/13 11:23 PM
Component/s: None
Affects Version/s: 2.0.4, 2.1.1
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. File JSF2MessageBug.war (2.19 MB) 01/Jun/11 03:43 AM - mansour


Mojarra (tested with versions 2.0.4 and 2.1.1), tomcat 6.0, windows

Issue Links:

Tags: jsf2 api message i18n
Participants: Manfred Riem and mansour

 Description  « Hide

Here is a simple example of date input text with <f:convertDateTime/> :

<h:inputText id="dateOfBirth" value="#{user.dateOfBirth}" 
    size="20" required="true" label="Date of Birth">
    <f:convertDateTime />
<h:message for="dateOfBirth" style="color:red" />

When we execute this with an error in date conversion (ex : xxxxx) in the inputText field, the error message displayed in <h:message> with locale FR contains the token '{1}' which means that a parameter is not interpreted :

Date of Birth : 'xxxxx' na pas pu être interprété en tant que date. Exemple : \{1\}

When we switch the locale in english, there is no problem the message is correctly displayed :

Date of Birth: 'xxxxx' could not be understood as a date. Example: Jun 1, 2011

Solution : in jsf-api.jar/ the character ' (quote) is not escaped in many messages, so try to put a double quote like this : ''

I've attached a sample web project that illustrates the problem

Manfred Riem added a comment - 11/Dec/12 07:22 PM

Can you verify if this is still an issue on the latest 2.1 release?

Manfred Riem added a comment - 10/Jan/13 02:15 PM

Lowering priority because of no response

Manfred Riem added a comment - 07/Feb/13 06:28 PM

Lowering priority because of no response

Manfred Riem added a comment - 07/Mar/13 11:23 PM

Closing because of inactivity