[jboss-user] [JBoss Seam] - Re: problem in login.seam

2007-11-25 Thread whafrog
You'd think the pages.xml setting would take precendence, ie, if I define this: | | Please log in | | The message should be changed to "Please log in". Otherwise, what's the point of defining the message in pages.xml? View the original post : http://www.jboss.

[jboss-user] [JBoss Seam] - Re: problem in login.seam

2007-10-11 Thread panky_p
No clues?? :-( View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094074#4094074 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094074 ___ jboss-user mailing list jboss-user@lis

[jboss-user] [JBoss Seam] - Re: problem in login.seam

2007-10-10 Thread panky_p
What will be the problem with Why it is showing that message "Please log in first" View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093532#4093532 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093532 ___

[jboss-user] [JBoss Seam] - Re: problem in login.seam

2007-10-10 Thread panky_p
Hi, I am trying it now with little different way, I am making use of faces and my login page is not using any java code to render login page after delivering the page it will make use of authentication only on login button action but it still shows the same message as soon as page is delivered o

[jboss-user] [JBoss Seam] - Re: problem in login.seam

2007-10-10 Thread panky_p
Thanks, but removing will not help because other messages which I want to display will not be shown for Invalid user name or Invalid password. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093309#4093309 Reply to the post : http://www.jboss.com/index.html

[jboss-user] [JBoss Seam] - Re: problem in login.seam

2007-10-09 Thread swd847
The code in question looks like: | protected void notLoggedIn() |{ | Events.instance().raiseEvent("org.jboss.seam.notLoggedIn"); | | FacesMessages.instance().addFromResourceBundleOrDefault( | FacesMessage.SEVERITY_WARN, | "org.jboss.

[jboss-user] [JBoss Seam] - Re: problem in login.seam

2007-10-09 Thread swd847
I have two simple and rather dodgy ways to work around this: 1) remove from the login page. 2) Try something like: | Iterator iter = FacesContext.getCurrentInstance().getMessages(); | while ( iter.hasNext() ) | { | FacesMessage m = (FacesMessage)iter.next(); |

[jboss-user] [JBoss Seam] - Re: problem in login.seam

2007-10-09 Thread panky_p
Yes Shane, I did try on messages.properties by adding org.jboss.seam.NotLoggedIn= but it still shows the message "Please log in first" I am also trying to find out whether it is maintaining session somewhere or not ? I think quite possible it may be a reason!! Thanks for reply!! View the origina

[jboss-user] [JBoss Seam] - Re: problem in login.seam

2007-10-09 Thread [EMAIL PROTECTED]
Sorry, I misunderstood your original question. You need to add the following entry to your messages.properties file (not message.property): org.jboss.seam.NotLoggedIn= I've just updated the seambay example in CVS to do just this. View the original post : http://www.jboss.com/index.html?module

[jboss-user] [JBoss Seam] - Re: problem in login.seam

2007-10-09 Thread panky_p
I am trying in my login page | | | | | | | | | | and in pages.xml | http://jboss.com/products/seam/pages"; | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; | xmlns:s="http://jboss.com/products/seam/taglib"; | xsi:sc

[jboss-user] [JBoss Seam] - Re: problem in login.seam

2007-10-08 Thread panky_p
hello curtney, I have tried it with org.jboss.seam.NotLoggedIn= in message.property but it is not working, And shane i have tried it with identity.authenticate instead of identity.login. Still it shows the same message and when i try to login with incorrect username and password it shows co

[jboss-user] [JBoss Seam] - Re: problem in login.seam

2007-10-08 Thread [EMAIL PROTECTED]
If you don't want the messages use identity.authenticate instead of identity.login. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092642#4092642 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092642 __

[jboss-user] [JBoss Seam] - Re: problem in login.seam

2007-10-08 Thread curtney
I believe I may have came accross a post that said the default messages are controlled by the message.properties file. I believe it is the same way you controll JSF default error messages, by overriding. In your case, you would just leave it blank. like: org.jboss.seam.somethng= Do a search

[jboss-user] [JBoss Seam] - Re: problem in login.seam

2007-10-08 Thread panky_p
Thank you swd847 !! But i don't want that message to be displayed. and I have tried it as public void PageAction() { if(FacesMessages.instance().getMessages().isEmpty()) FacesMessages.instance().add(" ") } but it is not working. and displays same message "Please Log in first" Is there any othe

[jboss-user] [JBoss Seam] - Re: problem in login.seam

2007-10-08 Thread swd847
When you try and access the main page (index.seam or whatever) seam detects that you have not logged in yet and throws a NotLoggedInException. It then redirects you to the login page and adds 'Please login first' to the FacesMessages (which are displayed via the s:messages component) . The messa