Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.1.6
-
None
-
None
-
Sun RI 1.2_04
JBoss 4.2.0
Description
When using the Sun RI implementation with Tomahawk, the validation message for the inputDate component is "org.apache.myfaces.Date.INVALID". I imagine this occurs because the message is defined in the JSF message bundle supplied with MyFaces; when using the Sun RI, there is no entry for org.apache.myfaces.Date.INVALID in the bundle.
A workaround would appear to be to use a custom JSF message bundle and add the message for org.apache.myfaces.Date.INVALID.
As for the fix, I would suggest bundling the messages with Tomahawk under a different resource bundle. First check the configurable JSF message bundle for the message; if it appears, use that one. Otherwise fall back to the hardcoded Tomahawk message bundle. This will allow developers to easily override the supplied messages without additional configuration while providing for the messages in the case where the developer has not overridden the default set. It also covers the case when the main message bundle is overridden but Tomahawk specific messages were omitted.