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.
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
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
___
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
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
The code in question looks like:
| protected void notLoggedIn()
|{
| Events.instance().raiseEvent("org.jboss.seam.notLoggedIn");
|
| FacesMessages.instance().addFromResourceBundleOrDefault(
| FacesMessage.SEVERITY_WARN,
| "org.jboss.
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();
|
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
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
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
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
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
__
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
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
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
15 matches
Mail list logo