incubator-adffaces-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Lessard (JIRA)" <>
Subject [jira] Commented: (ADFFACES-46) Client side validation message does not escape the ' character
Date Fri, 07 Jul 2006 21:07:30 GMT
    [ ] 

Simon Lessard commented on ADFFACES-46:

This issue is not a Java bug, it's a resource bundle one. It occurs because FastMessageFormat
use single quotes as an escape character, requiring 2 consecutive single quotes to print one.

So the requiredMessageDetail need to follow that rule as well.

As for the resource bundle bug, all of them will have to be checked to make sure they use
two consecutive single quotes which is not the case currently. For example, with French locale,
the following messages does not get rendered properly:

"La valeur "{0}" n'est pas un nombre." is transformed into "La valeur "{0}" nest pas un nombre."

The same thing happens with selectInputDate's French messages. 

TODO: Maybe document the requiredMessageDetail attribute's description in the .tld and .xml
in order to specify the single quote issue and maybe also in general documentation about message

> Client side validation message does not escape the ' character
> --------------------------------------------------------------
>          Key: ADFFACES-46
>          URL:
>      Project: MyFaces ADF-Faces
>         Type: Bug

>     Reporter: Simon Lessard

> Copied from
> Here's a small bug with validation message when client-side validation is enabled. If
the error message (or field label) contain the character ', ADF Faces won't escape it and
will thus break the printing with some nasty characters. A really poor workaround is to set
the messages with the ' escaped, but then it will fail when it's the label that contains it
or when you disable client-side validation (then the printed message in the page will contains
both of the apostrophes).

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message