-
1. Re: Security: How to override messages
pmuir Jan 23, 2008 11:37 AM (in response to newlukai)Did you read the docs (I think not...)?
-
2. Re: Security: How to override messages
newlukai Jan 24, 2008 4:21 PM (in response to newlukai)"pete.muir@jboss.org" wrote:
Did you read the docs (I think not...)?
Oh, come on. Of course I read the docs. That was the first I've done. I added a line "org.jboss.seam.security.loginSuccessful=Message" to my property file. But it didn't worked. That's why I'm asking. Perhaps I have to add a blank line to the end of the file (the message is the last line)??? -
3. Re: Security: How to override messages
nickarls Jan 24, 2008 4:29 PM (in response to newlukai)Am I mistaken or does the manual mention "org.jboss.seam.security.loginSuccessful" but seam-gen messages_en.properties has a "org.jboss.seam.loginSuccessful". Tried that one?
-
4. Re: Security: How to override messages
pmuir Jan 24, 2008 4:44 PM (in response to newlukai)My apologies, you are correct.
nickarls is correct, we have the key wrong somewhere.
Please report this in JIRA and we'll get it fixed for the GA.
Thanks! -
5. Re: Security: How to override messages
nickarls Jan 24, 2008 5:07 PM (in response to newlukai)Filed as http://jira.jboss.com/jira/browse/JBSEAM-2533
BTW, do you have some jira guidelines somewhere as to what the reporter is supposed to fill in (e.g regarding Fix Version/s)?
And a meta-bug, you call it "2.01.GA" and not "2.0.1.GA" in the jira ;-) -
6. Re: Security: How to override messages
pmuir Jan 24, 2008 5:24 PM (in response to newlukai)Nothing. If you note, it says "COMMITTERS ONLY" on that field ; So, we fill it in normally.
I've told Norman about that, he should be able to fix it. -
7. Re: Security: How to override messages
pmuir Jan 24, 2008 5:25 PM (in response to newlukai)Oops, there was supposed to be a ;) in there.
-
8. Re: Security: How to override messages
newlukai Jan 25, 2008 1:24 AM (in response to newlukai)Never mind. So normally it's enough to define an own "org ... loginSuccessful" property in the locale?
-
-
10. Re: Security: How to override messages
newlukai Feb 8, 2008 5:12 AM (in response to newlukai)And what to do if this doesn't work as expected? I have two locales, english and german. Both with a line:
BundleNameHere.properties wrote:
org.jboss.seam.loginSuccessful=Nusseis
After I logged in, the h:messages-Tag shows:h:messages wrote:
Welcome, jeweWelcome, jewe
where jewe is my user id. -
11. Re: Security: How to override messages
pmuir Feb 11, 2008 5:41 PM (in response to newlukai)What happens if you try to output that message to a page? Which does it show?
-
12. Re: Security: How to override messages
newlukai Feb 15, 2008 2:24 AM (in response to newlukai)Tomcat shows this error:
javax.el.PropertyNotFoundException: /template.xhtml @20,77 value="#{messages.org.jboss.seam.loginSuccessful}"
This is my template.xhtml:<f:loadBundle basename="com.idsscheer.ares.resources.messages" var="messages" /> ... <h:outputText value="#{messages.org.jboss.seam.loginSuccessful}" />
And this is the messages.properties:org.jboss.seam.loginSuccessful=Nusseis
Exactly what I expected since the special meaning of the dot in EL. -
13. Re: Security: How to override messages
pmuir Feb 17, 2008 3:11 PM (in response to newlukai)RTFM
#{messages['org.jboss.seam.loginSuccessful']}