Hello guys,
I've got the following problem and I hope that somebody has an solution to that:
Scenario:
1. You receive an email consisting of a link to you Seam app with a
verification code as request parameter.
The link looks like this:
mars1412 wrote : why would you let the user login, before she even confirmed
the e-mail address?
Because the progress is the following:
1. Register yourself (now you have an account with username and password)
2. Get the confirmation email
3. click on the link in the mail
4. Login
5. Your email
nickarls wrote : I think you might find section 5.1.1.1. Page parameters in
the reference manual interesting.
Thanks for your post. I know that section. But I have to access the request
parameter.
In this example (from section 5.1.1.1) it's - of course - no problem to access
a beans
Because of your replies until now I would like to emphasize that I'm talking
about a non-faces request!
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4127014#4127014
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4127014
anonymous wrote : * the other user cannot login - he does not know your password
OK, I thought you mean that the user would be logged in automatically (which
btw was the fact in my earlier version).
anonymous wrote : * since you have never logged in before, there are no
personal detailsbut,
Finally I have found the solution!
This is my page action:
page view-id=/emailAddrConfirmator.xhtml login-required=true
| param name=verificationCode /
| action execute=#{emailAddrConfirmator.confirm} /
| /page
|
The interesting part is:
param name=verificationCode /
I've
Hello forum,
I'm developing a while with Seam and enjoy using seam-gen but there's one thing
which IMHO is not well solved, yet:
I often have to switch between two or more projects so that I must run through
the whole seam setup stuff (or overwrite the build.properties file) to get back
the
Hello all,
I use Seam 1.1.6 and the Breadcrumbs example of the docu doesn't work for me.
I've put the following on my page:
t:dataList value=#{conversationStack} var=entry
| h:outputText value= | /
| h:commandLink value=#{entry.description} action=#{entry.select}/
| /t:dataList
Hello all,
I have this login method:
@Begin(join=true)
| public Object login()
| {
| return Identity.instance().login();
| }
The semantics say: begin (or continue) a (the) conversation after returning not
null resp. no exception occurred. But I want to switch the order.
Maybe it's easier to roll out the complete scenario:
I have
- a CONVERSATIONAL-scoped User entity
- an Authenticator class which outjects the User entity
- a CONVERSATIONAL-scoped userAction EJB which encapsulates the above mentioned
login method (and the corresponding logout method)
The EJB
I think the problem is that the User entity cannot be injected into the EJB
while processing the login method which invokes the authenticate method which
in turn outjects the User entity.
If the authenticate method would return the User entity instead of outjecting
the problem would be solved,
Well, for me SESSION scope is not fine-grained enough. I want the User entity
to be removed when the user logs out. I think it's a performance pro because my
webapp offers many features which don't require to be logged in.
Any others sharing my opinion? Or is it best practice to have a User
baz wrote : BTW: when the user logs out (via identity.logout the session is
invalidated and all Objects are removed.
Oh, I didn't know that identity.login starts a session and logout invalidates
it.
baz wrote : Putting entitys in conversation scope is fully supported in Seam
without the need
[EMAIL PROTECTED] wrote : Actually they say promote the existing temporary
conversation context to a long-running conversation after, which is quite
different.
|
| There is always a conversation. @Begin just says it should survive longer
than this request.
Right you are.
Thanks,
Mark
Hello,
again a question concerning the built-in identity variable.
My scenario:
1. I have a SESSION-scoped User entity which is outjected in my Authenticator
class.
2. My CONVERSATION-scoped EJB injects that User entity.
So far so good. Now, if I use #{identity.login} everything works fine.
Hello guys,
I'm a bit confused. Does #{identity.login} start a long running conversation?
I'm just asking because after successfully logging in, my User entity bean
which I have outjected in the Authenticator.authenticate() method and injected
in my conversational-scoped Stateful EJB still
Yes I'm using Firefox 2.x.
clicking = submitting the user form with redirect
Here's the userDataForm:
!DOCTYPE composition PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
|
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
| ui:composition
anonymous wrote : Please be aware that some browsers will repopulate some of
the fields for you.
Maybe it's of interest that I redirect to a success page after submitting the
form.
Here's the User entity:
@Entity
| @Scope(ScopeType.SESSION)
| @Name(user)
| @Table(name=tzuser)
|
Ups! Blame on me
I just realize that the user is SESSION-scoped...
Sorry for that!
Mark
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4022091#4022091
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4022091
OK. After making the User entity CONVERSATION-scoped everything works like I
expect.
Thanks,
Marl
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4022093#4022093
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4022093
Hello,
when I log in via the built-in Seam security (identity context variable,
Authenticator class, etc.) I get a faces message saying: Welcome,
my-username.
Unfortunately, I cannot find where it is set nor where I can turn this off.
Can anybody help?
Thanks i.a.,
Mark
View the original
Thank you. I'm sure this works also with 1.1.6, isn't it?!
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4021647#4021647
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4021647
___
Nope, does not work with 1.1.6.
:-(
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4021658#4021658
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4021658
___
jboss-user mailing list
Hello,
I have a User entity which is gotten from the db in the authenticate method of
the Seam security Authenticator class. The entity is outjected. In my
conversation-scoped SFSB I inject the User entity.
The login process is invoked via a login method which starts a long running
Hello,
I'm using Seam-gen 1.1.6 and in the auto-generated components.xml file there's
a xml namespace entry missing. It's:
xmlns:framework=http://jboss.com/products/seam/framework;
Without it you're not able to define entity queries like
framework:entity-query name=countries ejbql=from
25 matches
Mail list logo