Visit Object to HttpSession to access aside tapestry

2008-01-24 Thread Esteban Dugueperoux
Hi, I have a web application that use tapestry framework to manage sessions, and I want to setup Java Web Start. I want a servlet to create a jnlp file generator according to user, but I need know whether this user have already a tapestry session (Visit object), or not. If this user have one

Cannot inject visit object

2007-10-17 Thread Henrik Schlanbusch
Hi I have a problem with injecting a "good old" visit object. I do the following: and in my BasePage i do the following: @InjectState("visit") public abstract BiteVisit getVisit(); As far as I can see, that should be all that is to i

Re: Visit Object deprecated

2007-04-10 Thread Gareth
Thanks everyone for the confirmation about the visit object - I've been using the ASO idea, but sticking to a "visit" object at present - worried about drifting too far down aisles unknown (to me a beginner) and getting stuck! - Original Message From: Howard Lew

Re: Visit Object deprecated

2007-04-09 Thread Howard Lewis Ship
CTED]> wrote: Are we supposed to use some other form of session persistence, or is it a good pattern to create a user Visit Object and keep all user session variables inside it? Thanks ___ What kind of emailer are you? Find out today

Re: Visit Object deprecated

2007-04-09 Thread Daniel Jue
t;, and it starts feeling like a visit object. I apologize to the list that I keep plugging this guy's book, but without the book and Shing's website on hivemind stuff, I wouldn't have gotten anywhere with Tapestry. At first I bought "Tapestry in Action" thinking it would h

Visit Object deprecated

2007-04-04 Thread Gareth
Are we supposed to use some other form of session persistence, or is it a good pattern to create a user Visit Object and keep all user session variables inside it? Thanks ___ What kind of emailer are you? Find out

Re: Acegi and Visit object

2007-01-22 Thread Robin Ericsson
On 1/22/07, Jesper Zedlitz <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jesper Zedlitz wrote: > I am still working on a solution for form based login. > Here is my first attempt for a form based login: http://wiki.apache.org/tapestry/AcegiSpringJava5FormBased I am su

Re: Acegi and Visit object

2007-01-22 Thread Jesper Zedlitz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jesper Zedlitz wrote: > I am still working on a solution for form based login. > Here is my first attempt for a form based login: http://wiki.apache.org/tapestry/AcegiSpringJava5FormBased I am sure you have some ideas how to improve it. It has only be

Re: Acegi and Visit object

2007-01-22 Thread Robin Ericsson
On 1/22/07, andyhot <[EMAIL PROTECTED]> wrote: jake123 wrote: > Hi James, > You have to excuse me but I am on my first time on integrating tapestry and > acegi. So I might have some question that is obvious for others... > again, simply follow http://wiki.apache.org/tapestry/AcegiSpringJava5 T

Re: Acegi and Visit object

2007-01-22 Thread andyhot
jake123 wrote: Hi James, You have to excuse me but I am on my first time on integrating tapestry and acegi. So I might have some question that is obvious for others... again, simply follow http://wiki.apache.org/tapestry/AcegiSpringJava5 Then create your own implementation of org.acegisecur

Re: Acegi and Visit object

2007-01-22 Thread jake123
ol part with Acegi's @Secured annotation but I cant get there without some pointers Cheers, Jacob -- View this message in context: http://www.nabble.com/Acegi-and-Visit-object-tf3025484.html#a8504216 Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: Acegi and Visit object

2007-01-22 Thread James Carman
By the way, you don't *have* to implement your UserDetailsService inside a Spring container. You can do so, but you lose the easy ability to have other HiveMind services automatically injected into your implementation instance. Since you're just implementing an interface, I really see no need to

Re: Acegi and Visit object

2007-01-22 Thread Shing Hing Man
Just in case you have not come across it and might be useful to you, the following is an example of using a Tapestry page as a form login page in Acegi. http://wiki.javascud.org/display/hsa/Acegi+and+Tapestry--A+Step-by-Step+Guide Shing --- Jesper Zedlitz <[EMAIL PROTECTED]> wrote: > -B

Re: Acegi and Visit object

2007-01-21 Thread Jesper Zedlitz
Thiago H de Paula Figueiredo wrote: > What do I do if I want to use tapestry-acegi leaving the acegi > configuration in spring instead of HiveMind? > You have your own org.acegisecurity.userdetails.UserDetailsService and want to use it with tapestry-acegi? No problem! Here is an example how to do

Re: Acegi and Visit object

2007-01-21 Thread Jesper Zedlitz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 James Carman wrote: > As for examples, I > don't really have one, but somebody wrote a nice Wiki page detailing > how to set it up. > http://wiki.apache.org/tapestry/AcegiSpringJava5 I am still working on a solution for form based login. Maybe the lo

Re: Acegi and Visit object

2007-01-21 Thread Srinivas Yermal
Hi Andreas and James, Please correct me if I am wrong. I am trying to understand what needs to be done. The UserDetailsService is something where the user is returned back given a userid. So we need to inject the visit object into the UserDetailsService? and then set it. I agree that the user

Re: Acegi and Visit object

2007-01-19 Thread James Carman
nsulting.com/tapestry-acegi ? > > Could you possible email me a copy of the documentation that you talking about. That would help me a lot... Thanks Jacob -- View this message in context: http://www.nabble.com/Acegi-and-Visit-object-tf3025484.html#a8453882

Re: Acegi and Visit object

2007-01-19 Thread jake123
.com/tapestry-acegi ? > > Could you possible email me a copy of the documentation that you talking about. That would help me a lot... Thanks Jacob -- View this message in context: http://www.nabble.com/Acegi-and-Visit-object-tf3025484.html#a8453882 Sent

Re: Acegi and Visit object

2007-01-19 Thread andyhot
te.ApplicationStateManager"/> >> >> >> >> >> and also take a look at >> http://tapestry.apache.org/tapestry4.1/tapestry-framework/apidocs/org/apache/tapestry/engine/state/ApplicationStateManager.html >> >>

Re: Acegi and Visit object

2007-01-19 Thread Thiago H de Paula Figueiredo
On Fri, 19 Jan 2007 15:09:58 -0200, James Carman <[EMAIL PROTECTED]> wrote: Basically, tapestry-acegi just allows you to glue all of the Acegi stuff together using HiveMind, rather than Spring (it's all just "object soup" right?). [snip] The cool part of tapestry-acegi is that it lets you us

Re: Acegi and Visit object

2007-01-19 Thread James Carman
ework/apidocs/org/apache/tapestry/engine/state/ApplicationStateManager.html >> >> >> >> >> Srinivas Yermal wrote: >> > Hi Andreas, >> > >> > Thanks for the response. Does tapestry-acegi automagically fill-in the >> > user >>

Re: Acegi and Visit object

2007-01-19 Thread James Carman
g? What do we need to configure to make it work? If you could give some example that would bee really nice Thanks a lot Jacob -- View this message in context: http://www.nabble.com/Acegi-and-Visit-object-tf3025484.html#a8449953 Sent from the

Re: Acegi and Visit object

2007-01-19 Thread jake123
abble.com/Acegi-and-Visit-object-tf3025484.html#a8449953 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Acegi and Visit object

2007-01-19 Thread andyhot
and also take a look at http://tapestry.apache.org/tapestry4.1/tapestry-framework/apidocs/org/apache/tapestry/engine/state/ApplicationStateManager.html Srinivas Yermal wrote: > Hi Andreas, > > Thanks for the response. Does tapestry-acegi automagically fill-in the > use

Re: Acegi and Visit object

2007-01-19 Thread James Carman
estry.apache.org/tapestry4.1/tapestry-framework/apidocs/org/apache/tapestry/engine/state/ApplicationStateManager.html Srinivas Yermal wrote: > Hi Andreas, > > Thanks for the response. Does tapestry-acegi automagically fill-in the > user > details into the visit object? Or should I do som

Re: Acegi and Visit object

2007-01-19 Thread andyhot
Hi Andreas, Thanks for the response. Does tapestry-acegi automagically fill-in the user details into the visit object? Or should I do something? I use spring for my acegi declarations and specify my UserDetailsService in the DaoAuthenticationProvider. You mention ASO. How would I go about doing

Re: Acegi and Visit object

2007-01-19 Thread Srinivas Yermal
Hi Andreas, Thanks for the response. Does tapestry-acegi automagically fill-in the user details into the visit object? Or should I do something? I use spring for my acegi declarations and specify my UserDetailsService in the DaoAuthenticationProvider. You mention ASO. How would I go about

Re: Acegi and Visit object

2007-01-19 Thread andyhot
p. Thanks Srini. On 1/17/07, Srinivas Yermal <[EMAIL PROTECTED]> wrote: Hi, I have been trying to initialize the Visit object with certain values once the user has logged in. The values needless to say are user specific. So I would need to access the auth details from acegi. What should I

Re: Acegi and Visit object

2007-01-19 Thread Srinivas Yermal
, Srinivas Yermal <[EMAIL PROTECTED]> wrote: Hi, I have been trying to initialize the Visit object with certain values once the user has logged in. The values needless to say are user specific. So I would need to access the auth details from acegi. What should I be doing to set these values? I

Acegi and Visit object

2007-01-16 Thread Srinivas Yermal
Hi, I have been trying to initialize the Visit object with certain values once the user has logged in. The values needless to say are user specific. So I would need to access the auth details from acegi. What should I be doing to set these values? I am bit lost here. We are using Acegi with

Re: Getting old visit object

2006-06-24 Thread Yves Sy
nard <[EMAIL PROTECTED]> > wrote: > > > > On Sat, 24 Jun 2006 12:50:48 -0400, Yves Sy > <[EMAIL PROTECTED]> wrote: > > > > > I have an old Tapestry app which I began to > slowly port to Tapestry 4. > > > How > > > do I get a hold

Re: Getting old visit object

2006-06-24 Thread Shing Hing Man
evin Menard <[EMAIL PROTECTED]> > wrote: > > > > On Sat, 24 Jun 2006 12:50:48 -0400, Yves Sy > <[EMAIL PROTECTED]> wrote: > > > > > I have an old Tapestry app which I began to > slowly port to Tapestry 4. > > > How > > > do I get a hold

Re: Getting old visit object

2006-06-24 Thread Yves Sy
PROTECTED]> wrote: On Sat, 24 Jun 2006 12:50:48 -0400, Yves Sy <[EMAIL PROTECTED]> wrote: > I have an old Tapestry app which I began to slowly port to Tapestry 4. > How > do I get a hold of the old visit object configured Tapestry-3 style in a > Tapestry 4 page? The easiest thi

Re: Getting old visit object

2006-06-24 Thread Kevin Menard
On Sat, 24 Jun 2006 12:50:48 -0400, Yves Sy <[EMAIL PROTECTED]> wrote: I have an old Tapestry app which I began to slowly port to Tapestry 4. How do I get a hold of the old visit object configured Tapestry-3 style in a Tapestry 4 page? The easiest thing to do is access it the same w

Getting old visit object

2006-06-24 Thread Yves Sy
Hi, I have an old Tapestry app which I began to slowly port to Tapestry 4. How do I get a hold of the old visit object configured Tapestry-3 style in a Tapestry 4 page? I tried MyVisit visit = (MyVisit) getApplicationStateManager().get("visit"); but this doesn't work Thanks in

Re: Visit object

2006-06-01 Thread Jesse Kuhnert
P.S. No one should have this issue with 4.1 as the visit and global objects don't exist anymore. (The hivemind versions of course do exist) On 6/1/06, Mário Lopes <[EMAIL PROTECTED]> wrote: Yes, renaming actually did work. Thank you very much for your kind help. -- Mário On 6/1/06, Andreas B

Re: Visit object

2006-06-01 Thread Mário Lopes
Yes, renaming actually did work. Thank you very much for your kind help. -- Mário On 6/1/06, Andreas Bulling <[EMAIL PROTECTED]> wrote: On 01. Jun 2006 - 16:39:06, James Carman wrote: | Try renaming what you call the getter/setter. See what that does. There is | a deprecated getVisit() metho

Re: Visit object

2006-06-01 Thread Andreas Bulling
On 01. Jun 2006 - 16:39:06, James Carman wrote: | Try renaming what you call the getter/setter. See what that does. There is | a deprecated getVisit() method on IPage. Yeah, I had the same problem once and renamed the getter to getVisitState() which worked. Cheers, Andreas --

RE: Visit object

2006-06-01 Thread James Carman
Try renaming what you call the getter/setter. See what that does. There is a deprecated getVisit() method on IPage. -Original Message- From: Mário Lopes [mailto:[EMAIL PROTECTED] Sent: Thursday, June 01, 2006 4:35 PM To: Tapestry users Subject: Re: Visit object This is the error

Re: Visit object

2006-06-01 Thread Mário Lopes
setVisit(visit); Hope it helps. -- Mário On 6/1/06, Andreas Bulling <[EMAIL PROTECTED]> wrote: | Following your advice, I've created my own class, called Visit | (original isn't it? :-) and added this to hivemind.xml | | | | | | | | This is t

Re: Visit object

2006-06-01 Thread Andreas Bulling
| Following your advice, I've created my own class, called Visit | (original isn't it? :-) and added this to hivemind.xml | | | | | | | | This is the code I've used to try accessing the Visit object: | | @InjectState("user-visit") | public abstract V

Re: Visit object

2006-06-01 Thread Mário Lopes
rough Visit visit = (Visit) getVisit(); | seems to be deprecated. Instead of using the deprecated Visit object as described in TiA you should use an Application State Object (ASO) with "session" scope. You should find examples in the list archives. Following your advice, I've created

Re: Visit object

2006-06-01 Thread Andreas Bulling
cated. Instead of using the deprecated Visit object as described in TiA you should use an Application State Object (ASO) with "session" scope. You should find examples in the list archives. Hope this helps, Andreas - To

Re: Visit object

2006-06-01 Thread Chris Chiappone
The way to do it in T4 is to use the ASO approach. You can inject the visit ASO like this: @InjectState("visit") public abstract YourVisitObject getVisit(); On 6/1/06, Mário Lopes <[EMAIL PROTECTED]> wrote: Hi. I've been following Tapestry in Action to implement a Visit session object but

Visit object

2006-06-01 Thread Mário Lopes
Hi. I've been following Tapestry in Action to implement a Visit session object but I was unable to make it work. Declaring a getVisit(); as abstract and then calling it through Visit visit = (Visit) getVisit(); seems to be deprecated. What's the correct usage for Visit on T4? Thanks in advance.