incubator-adffaces-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Lessard (JIRA)" <adffaces-iss...@incubator.apache.org>
Subject [jira] Commented: (ADFFACES-46) Client side validation message does not escape the ' character
Date Fri, 07 Jul 2006 21:07:30 GMT
    [ http://issues.apache.org/jira/browse/ADFFACES-46?page=comments#action_12419779 ] 

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
bundle?

> Client side validation message does not escape the ' character
> --------------------------------------------------------------
>
>          Key: ADFFACES-46
>          URL: http://issues.apache.org/jira/browse/ADFFACES-46
>      Project: MyFaces ADF-Faces
>         Type: Bug

>     Reporter: Simon Lessard

>
> Copied from http://forums.oracle.com/forums/thread.jspa?messageID=1223575&#1223575
> 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:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message