This content has been marked as final.
Show 4 replies
-
1. Re: Security: How to override messages
pmuir Feb 26, 2008 10:40 AM (in response to newlukai)Well, it means the property file is correctly read by Seam.
File an issue in JIRA with a reproducible example so we can take a look.
-
2. Re: Security: How to override messages
newlukai Feb 29, 2008 9:53 AM (in response to newlukai)
Pete Muir wrote on Feb 26, 2008 10:40 AM:
File an issue in JIRA with a reproducible example so we can take a look.Done.
-
3. Re: Security: How to override messages
newlukai Mar 14, 2008 12:25 PM (in response to newlukai)OK. It's solved now. Shane Bryzak helped a lot on this:
Shane Bryzak
You don't have an entry in components.xml for your resource bundle. After adding the following entry your custom login message works:
<core:resource-loader> <core:bundle-names> <value>com.test.resources.test_messages</value> </core:bundle-names> </core:resource-loader>
This is documented in the internationalization chapter of the reference docs.Thanks.
-
4. Re: Security: How to override messages
newlukai Mar 14, 2008 1:34 PM (in response to newlukai)After I got this working, I noticed that the security message is displayed twice in a
<h:messages layout="table" showDetail="true" />
I thought I could get rid of this specifying a detailed message adding this line:
org.jboss.seam.loginSuccessful_detail=bla
to my ressource bundle. But this doesn't work as expected. I have inspected the code in Identity.login(), FacesSecurityEvents.addLoginSuccessfulMessage() and FacesMessages and think that _detail is completely irrelevant. Is that right?