Re: authentication framework and continuations

2004-10-16 Thread Paul Joseph
>>FYI, you can use cocoon.log.debug() to print debug statements in flow This should be very useful to me, thanks! --- Jorg Heymans <[EMAIL PROTECTED]> wrote: > > > > In my login screen, on submit, I call a login.js > that > > authenticates the user in the database, and as a > > result of the db

Re: authentication framework and continuations

2004-10-16 Thread Jorg Heymans
In my login screen, on submit, I call a login.js that authenticates the user in the database, and as a result of the db call, creates a user bean. I simply put that user bean into the session using the following: cocoon.session.setAttribute('userBean' , userBean); then, on every js, I check to

Re: authentication framework and continuations

2004-10-16 Thread Paul Joseph
Jorg, Thank you for all your help. It would seem that should be the case, but it is included in the "if(form.submitID == "save") and so, (when I use the non-hidden continuations), it does not loop. For some reason when the continuation becomes hidden and the matching is on Type, it loops on the

Re: authentication framework and continuations

2004-10-16 Thread Jorg Heymans
value="arrayadmin_bind.xml"/> function arrayAdmin() { function arrayAdmin() { // Let Cocoon Forms handle the form if(form.submitId == "save") { form.save(bean); dao.setObject(bean); form.showForm("arrayAdmin"); //this same function

Re: authentication framework and continuations

2004-10-15 Thread Paul Joseph
I login - the template file for the login has the hidden this takes me to an admin form. The template for this form has the The sitemap is set to match the type. In my logs I see lines like this (it keeps going in a loop) thx Paul Processor24/ForwardRedirector: Redirecting to 'cocoon:/login

Re: authentication framework and continuations

2004-10-15 Thread Jorg Heymans
did you change *all* your forms to have the ? Paul Joseph wrote: Hi, The culprit appears to be the form.showForm(ArrayAdmin); line It seems to loop *continously* on this line when I match on However, it does not loop if I use though in the latter case I loose authentication

Re: authentication framework and continuations

2004-10-15 Thread Paul Joseph
Hi, The culprit appears to be the form.showForm(ArrayAdmin); line It seems to loop *continously* on this line when I match on However, it does not loop if I use though in the latter case I loose authentication capability. Is there any way around this? Use authentication,

Re: authentication framework and continuations

2004-10-14 Thread Paul Joseph
Getting there, but not quite there yet...am getting into a "loop" situation with the hidden continuation. When I use the continuation as a hidden field in my form template as shown below: and with my sitemap as below: it seems to go into a lo

Re: authentication framework and continuations

2004-10-14 Thread Paul Joseph
Thanks! --- Jorg Heymans <[EMAIL PROTECTED]> wrote: > you would just do > > > > > .. > > > > > > Paul Joseph wrote: > > Jorg, > > > > thank you very much. > > > > I will try this approach - just wasn't sure how to > use > > the tag in my template. > > > > Do I simpley do this anyw

Re: authentication framework and continuations

2004-10-14 Thread Jorg Heymans
you would just do .. Paul Joseph wrote: Jorg, thank you very much. I will try this approach - just wasn't sure how to use the tag in my template. Do I simpley do this anywhere reasonable in the template: -hopefully, this will be my last question, sorry for the bother and thanks for the h

Re: authentication framework and continuations

2004-10-14 Thread Paul Joseph
Jorg, thank you very much. I will try this approach - just wasn't sure how to use the tag in my template. Do I simpley do this anywhere reasonable in the template: -hopefully, this will be my last question, sorry for the bother and thanks for the help so far. rgds Paul --- Jorg Heymans <[EM

Re: authentication framework and continuations

2004-10-14 Thread Jorg Heymans
Paul Joseph wrote: 1. So for this to work there is no need to use encodeURL? I was under the impression that encodeURL was needed as the auth framework created a session behind the scenes. If the browser doesn't support cookies then the webapplication should rewrite or encode all URL's in the pag

Re: authentication framework and continuations

2004-10-14 Thread Paul Joseph
I will try this. Two questions: 1. So for this to work there is no need to use encodeURL? I was under the impression that encodeURL was needed as the auth framework created a session behind the scenes. 2. How are you matching the *.continue i.e. If I use instead of I get the following msg.

Re: authentication framework and continuations

2004-10-14 Thread Jorg Heymans
Put the tag inside of the auth-protect block. Your forms are inside a protected area, so your continuations will be called with a "protected" URL. My working setup is like ... HTH Jorg Paul Josep

Re: authentication framework and continuations

2004-10-14 Thread Paul Joseph
Hi, Thank you for your respones. I can take out the encodeURL and the same thing happens...I thought I needed it to maintain session - no? The way I do it is as follows: --- Jorg Heymans <[EMAIL PROTECTED]> wrote:

Re: authentication framework and continuations

2004-10-14 Thread Jorg Heymans
There is a continuation id construct you can use to set it as a hidden variable in your form ( IIRC), try using this. Don't know if you URL encoding is interfering. How do you encodeURL btw? Jorg Paul Joseph wrote: Hi, I have implented an authentication handler and all works well as far as authe