[jboss-user] [JBoss Seam] - How to passing through request parameters to the next page (

2008-02-06 Thread schmatz
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:

[jboss-user] [JBoss Seam] - Re: How to passing through request parameters to the next pa

2008-02-06 Thread schmatz
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

[jboss-user] [JBoss Seam] - Re: How to passing through request parameters to the next pa

2008-02-06 Thread schmatz
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

[jboss-user] [JBoss Seam] - Re: How to passing through request parameters to the next pa

2008-02-06 Thread schmatz
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

[jboss-user] [JBoss Seam] - Re: How to passing through request parameters to the next pa

2008-02-06 Thread schmatz
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,

[jboss-user] [JBoss Seam] - Re: How to passing through request parameters to the next pa

2008-02-06 Thread schmatz
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

[jboss-user] [JBoss Seam] - Multi-project management in Seam-gen

2007-06-15 Thread schmatz
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

[jboss-user] [JBoss Seam] - conversationStack empty?

2007-02-28 Thread schmatz
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

[jboss-user] [JBoss Seam] - Begin conversation *before* entering a method

2007-02-26 Thread schmatz
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.

[jboss-user] [JBoss Seam] - Re: Begin conversation *before* entering a method

2007-02-26 Thread schmatz
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

[jboss-user] [JBoss Seam] - Re: Begin conversation *before* entering a method

2007-02-26 Thread schmatz
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,

[jboss-user] [JBoss Seam] - Re: Begin conversation *before* entering a method

2007-02-26 Thread schmatz
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

[jboss-user] [JBoss Seam] - Re: Begin conversation *before* entering a method

2007-02-26 Thread schmatz
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

[jboss-user] [JBoss Seam] - Re: Begin conversation *before* entering a method

2007-02-26 Thread schmatz
[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

[jboss-user] [JBoss Seam] - #{identity.login} vs. Identity.instance().login()

2007-02-26 Thread schmatz
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.

[jboss-user] [JBoss Seam] - Does #{identity.login} start a long running conversation?

2007-02-25 Thread schmatz
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

[jboss-user] [JBoss Seam] - Re: Does #{identity.login} start a long running conversation

2007-02-25 Thread schmatz
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

[jboss-user] [JBoss Seam] - Re: Does #{identity.login} start a long running conversation

2007-02-25 Thread schmatz
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) |

[jboss-user] [JBoss Seam] - Re: Does #{identity.login} start a long running conversation

2007-02-25 Thread schmatz
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

[jboss-user] [JBoss Seam] - Re: Does #{identity.login} start a long running conversation

2007-02-25 Thread schmatz
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

[jboss-user] [JBoss Seam] - How can I get rid of the automatic faces message after loggi

2007-02-24 Thread schmatz
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

[jboss-user] [JBoss Seam] - Re: How can I get rid of the automatic faces message after l

2007-02-24 Thread schmatz
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 ___

[jboss-user] [JBoss Seam] - Re: How can I get rid of the automatic faces message after l

2007-02-24 Thread schmatz
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

[jboss-user] [JBoss Seam] - entity null in long running conversation

2007-02-24 Thread schmatz
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

[jboss-user] [JBoss Seam] - Missing namespace entry in components.xml

2007-02-23 Thread schmatz
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