[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-1366) SeamApplicationMessageBundle breaks default JSF component messages

Gavin King (JIRA) jira-events at lists.jboss.org
Wed May 30 16:40:18 EDT 2007

    [ http://jira.jboss.com/jira/browse/JBSEAM-1366?page=comments#action_12363608 ] 
Gavin King commented on JBSEAM-1366:

Agreed that this needs fixing. Some of the Seam examples now display garbage validation messages.

> SeamApplicationMessageBundle breaks default JSF component messages
> ------------------------------------------------------------------
>                 Key: JBSEAM-1366
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1366
>             Project: JBoss Seam
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.3.0.ALPHA
>            Reporter: Michael Youngstrom
>             Fix For: 1.3.0.ALPHA
> SeamApplicationMessageBundle is backed by the Messages component.  This is fine except if a key that does not exist is specified then Messages will return the key as the value.  This works great for Messages but it can cause problems for SeamApplicationMessageBundle.  Many existing JSF components have an algorithm similar to the following to display messages and other component text:
> 1. Get faces-config specified MessageBundle
> 2. Try to get a value from the resource bundle specified as the MessageBundle
> 3. Catch MissingResourceException if not found
> 4. Try component built in resource bundle for default message.
> Since SeamApplication returns "org.jboss.seam.jsf.SeamApplicationMessageBundle" by default if there is no user specified message-bundle in the faces-config this could cause some problems since a component's default message will never be shown under the scenario above.
> This possible problem could be solved if SeamApplicationMessageBundle were to throw a MissingResourceException if the key is not found in Messages.
> Mike

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the seam-issues mailing list