Details
-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.8.2-EE-GA
-
Fix Version/s: 1.8.2-EE-GA_P01, 1.8.3
-
Component/s: ICE-Components
-
Labels:None
-
Environment:-
-
ICEsoft Forum Reference:
Description
Issue description from forum post:
----------------------------------------------
There's a bug in RenderKit's OutputMessageRenderer (the renderer for ice:outputFormat): the used message formatter will not use the ViewRoot's locale (session locale), instead Locale.getDefault() will be used.
-> So I've a problem if I want to show a RessourceBundle message like "{0} darf nicht früher sein als {1,date}" in the user's language and default (date) formats (e.g. for german: dd.MM.yyyy).
I've fixed this by overwriting the OutputMessageRenderer:
Code:
...
// uiComponentValue = MessageFormat.format(uiComponentValue, parameters);
MessageFormat mf = new MessageFormat(uiComponentValue, facesContext.getViewRoot().getLocale());
uiComponentValue = mf.format(parameters);
...
----------------------------------------------
There's a bug in RenderKit's OutputMessageRenderer (the renderer for ice:outputFormat): the used message formatter will not use the ViewRoot's locale (session locale), instead Locale.getDefault() will be used.
-> So I've a problem if I want to show a RessourceBundle message like "{0} darf nicht früher sein als {1,date}" in the user's language and default (date) formats (e.g. for german: dd.MM.yyyy).
I've fixed this by overwriting the OutputMessageRenderer:
Code:
...
// uiComponentValue = MessageFormat.format(uiComponentValue, parameters);
MessageFormat mf = new MessageFormat(uiComponentValue, facesContext.getViewRoot().getLocale());
uiComponentValue = mf.format(parameters);
...
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #20974 | Tue Mar 16 14:20:51 MDT 2010 | mark.collette | |
Files Changed | ||||
MODIFY
/icefaces/trunk/icefaces/core/src/com/icesoft/faces/renderkit/dom_html_basic/OutputMessageRenderer.java
|