Re: Session Storage with Tapestry

2015-03-18 Thread Thiago H de Paula Figueiredo
On Wed, 18 Mar 2015 07:21:06 -0300, Poggenpohl, Daniel wrote: Hello again, Hi! I need a session storage where I store the currently logged on user. Reading about it in the documentation, they recommend using @SessionState because my user is a complex object, also containing lists of

Re: Session Storage with Tapestry

2015-03-18 Thread Barry Books
Or is it just that entities are used under-supported this way? > > Regards, > Daniel P. > > -Ursprüngliche Nachricht- > Von: Barry Books [mailto:trs...@gmail.com ] > Gesendet: Mittwoch, 18. März 2015 12:05 > An: Tapestry users > Betreff: Re: Session Storage with T

Re: Session Storage with Tapestry

2015-03-18 Thread Barry Books
If you are using Tapestry Hibernate it should just work if you put a Hibernate object into a SessionState variable. There is a configuration that contains the Hibernate entities so SessionState is able to store the primary key in the session and retrieve the object when needed. Services as well as

Re: session invalidate in tapestry

2014-11-14 Thread Thiago H de Paula Figueiredo
On Fri, 14 Nov 2014 18:15:12 -0200, Ivano Luberti wrote: Oh God! Yes , I messed up with interfaces: too much time using PHP Hehehe. Actually, even without PHP messing up with your brain, it's easy to mistake one of the interfaces for the other . . . Thanks Thiago :D Il 14/11/2014 2

Re: session invalidate in tapestry

2014-11-14 Thread Ivano Luberti
Oh God! Yes , I messed up with interfaces: too much time using PHP Thanks Thiago Il 14/11/2014 20:47, Thiago H de Paula Figueiredo ha scritto: > On Fri, 14 Nov 2014 15:27:51 -0200, Ivano Luberti > wrote: > >> So B is created in the first page but not bound to the session while >> some way is vi

Re: session invalidate in tapestry

2014-11-14 Thread Thiago H de Paula Figueiredo
On Fri, 14 Nov 2014 15:27:51 -0200, Ivano Luberti wrote: So B is created in the first page but not bound to the session while some way is visible across pages While A is created at server start-up (why?) but is not visible in the page. If from web.xml I remove it.archicoop.met.obliteraz

Re: session invalidate in tapestry

2014-11-14 Thread Ivano Luberti
Il 14/11/2014 13:13, Thiago H de Paula Figueiredo ha scritto: > On Fri, 14 Nov 2014 09:25:47 -0200, Ivano Luberti > wrote: > >> Hi > > Hi! > >> When I call the Index page in the browser onPrepare is called > > What's your onPrepare() method? You didn't post it here. By the way, > you could prin

Re: session invalidate in tapestry

2014-11-14 Thread Thiago H de Paula Figueiredo
On Fri, 14 Nov 2014 09:25:47 -0200, Ivano Luberti wrote: Hi Hi! When I call the Index page in the browser onPrepare is called What's your onPrepare() method? You didn't post it here. By the way, you could print a stack trace inside the User constructor to know exactly which method

Re: session invalidate in tapestry

2014-11-14 Thread Ivano Luberti
Hi Il 13/11/2014 15:24, Thiago H de Paula Figueiredo ha scritto: > On Thu, 13 Nov 2014 12:16:03 -0200, Ivano Luberti > wrote: > >> Hi all, I have a question about session handling in Tapestry5. >> I have a >> >> @SessionState >> protected User user; > > Shouldn't it be @SessionState(create =

Re: session invalidate in tapestry

2014-11-13 Thread Thiago H de Paula Figueiredo
On Thu, 13 Nov 2014 12:16:03 -0200, Ivano Luberti wrote: Hi all, I have a question about session handling in Tapestry5. I have a @SessionState protected User user; Shouldn't it be @SessionState(create = false) so user isn't instantiated automatically and is null until you set the fie

Re: Session Cookie Remains after Tapestry Security Logout

2014-11-03 Thread Jon Williams
369... On Mon, Nov 3, 2014 at 12:39 PM, Harry Zhou wrote: > Kalle, > > Thank you so much for the quick reply, based on which we have done the > following: > > 1. We surveyed several Tapestry sites (including the hotelbooking demo app) > and confirmed that leaving the cookie after session invalid

Re: Session Cookie Remains after Tapestry Security Logout

2014-11-03 Thread Harry Zhou
Kalle, Thank you so much for the quick reply, based on which we have done the following: 1. We surveyed several Tapestry sites (including the hotelbooking demo app) and confirmed that leaving the cookie after session invalidation is expected. 2. We then double confirmed that the leftover cookie i

Re: Session Cookie Remains after Tapestry Security Logout

2014-11-03 Thread Kalle Korhonen
On Sun, Nov 2, 2014 at 4:41 PM, Harry Zhou wrote: > The user is indeed logged out, and the session is indeed invalidated. > Everything seems to work fine. > 3. The Issue > Upon closer inspection, I noticed that the session cookie created by user > during login is still in the browser after logout

Re: session management and threads synchronization

2014-01-19 Thread Kristian Marinkovic
hi, maybe this "ancient" article by Brian Goetz may help you: http://www.ibm.com/developerworks/library/j-jtp09238/index.html :) cheers, Kris On Sat, Jan 18, 2014 at 8:39 AM, Ilya Obshadko wrote: > Hello, > > I have implemented persistent session management in my application (using > cookies a

Re: Session storage docs don't mention OptimizedSessionPersistedObject or ImmutableSessionPersistedObject

2013-01-13 Thread Bob Harner
Lance, I've changed it so that the same "Clustering Issues" section is now "included" (via a Confluence {include} tag) in both the Session Storage and Persistent Page Data pages, since they apply to both. On Mon, Jan 7, 2013 at 7:53 PM, Howard Lewis Ship wrote: > Also, you are right, a cross-link

Re: Session Expiration - Ajax

2013-01-12 Thread Lenny Primak
I think that this area is where Tapestry actually needs usability improvement. Usually, with setupRender() doing all the initialization, when Ajax request gets called (much) later with an invalidated session, all sorts of NPEs would result. Of course this can be solved with onActivate() or null che

Re: Session Expiration - Ajax

2013-01-09 Thread Lenny Primak
Simple answer to both of your questions - yes. Saying that, There are some things that can be handled better out of the box, Which are actually fixed in the FlowLogix library http://code.google.com/p/flowlogix/wiki/TapestryLibrary On Jan 8, 2013, at 3:38 PM, sthomps wrote: > I'm currently eva

Re: Session Expiration - Ajax

2013-01-08 Thread Lance Java
Short answer: Forms, buttons, links and ajax actions in general do not require the session. You can do whatever you like in your ajax actions which *might* include accessing session state (eg via @Persist). There are a couple of core tapestry components that require the session but it's your choice

Re: Session storage docs don't mention OptimizedSessionPersistedObject or ImmutableSessionPersistedObject

2013-01-07 Thread Howard Lewis Ship
Also, you are right, a cross-link to the OptimizedSessionPersistedObject, etc., JavaDoc would be useful. On Tue, Jan 8, 2013 at 12:52 AM, Howard Lewis Ship wrote: > How about if you request write access to the Confluence wiki and update > the Session Storage page yourself? > > > On Mon, Jan 7,

Re: Session storage docs don't mention OptimizedSessionPersistedObject or ImmutableSessionPersistedObject

2013-01-07 Thread Howard Lewis Ship
How about if you request write access to the Confluence wiki and update the Session Storage page yourself? On Mon, Jan 7, 2013 at 10:41 AM, Lance Java wrote: > I've just noticed that the "session storage" docs don't mention > OptimizedSessionPersistedObject or ImmutableSessionPersistedObject. Sh

Re: Session storage docs don't mention OptimizedSessionPersistedObject or ImmutableSessionPersistedObject

2013-01-07 Thread antalk
They are mentioned on this page: http://tapestry.apache.org/persistent-page-data.html -- View this message in context: http://tapestry.1045711.n5.nabble.com/Session-storage-docs-don-t-mention-OptimizedSessionPersistedObject-or-ImmutableSessionPersistedObject-tp5719174p5719178.html Sent from t

Re: Session Timeout in Tapestry

2012-12-12 Thread Geoff Callender
For an example see http://jumpstart.doublenegative.com.au/jumpstart/examples/infrastructure/protectingpages Cheers, Geoff On 12/12/2012, at 11:01 PM, mateen wrote: > Could you show me how to write a request filter in Tapestry > > > > -- > View this message in context: > http://ta

Re: Session Timeout in Tapestry

2012-12-12 Thread mateen
Could you show me how to write a request filter in Tapestry -- View this message in context: http://tapestry.1045711.n5.nabble.com/Session-Timeout-in-Tapestry-tp5718632p5718639.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: Session Timeout in Tapestry

2012-12-12 Thread Thiago H de Paula Figueiredo
On Wed, 12 Dec 2012 08:33:46 -0200, mateen wrote: How can i set the Session Time out and redirect the user the login page, when a timeout occurs ? Setting the session time is a web.xml configuration, completely separated from Tapestry. Redirecting to the login page automatically can be d

Re: Session Timeout in Tapestry

2012-12-12 Thread Taha Siddiqi
Session timeout is handled at the servlet level using session-timeout parameter in web.xml On Dec 12, 2012, at 4:03 PM, mateen wrote: > How can i set the Session Time out and redirect the user the login page, when > a timeout occurs ? I know in JSF i could centrally handle the session state > f

Re: Session timeout alert.

2012-03-28 Thread George Christman
Thanks guys, I'll take a look at your suggested solutions. I happened to find this jQuery plugin during my google searches that might integrate nicely with this task. http://philpalmieri.com/2009/09/jquery-session-auto-timeout-with-prompt/ -- View this message in context: http://tapestry.104571

Re: Session timeout alert.

2012-03-28 Thread annon88
In addition to the post before: Write a class which implemets javax.servlet.http.HttpSessionListener with something like this: > @Override > public void sessionCreated(final HttpSessionEvent se) { > se.getSession().setMaxInactiveInterval(sessionTimeoutSeconds); > } > A sea

Re: Session timeout alert.

2012-03-28 Thread Michael Prescott
The "remaining" time is something of a red herring: every client-to-server interaction resets the countdown, so from the perspective of the server processing a request, the remaining time will always be the full session timeout value. (I'm not sure how you pick this up from the container, but no d

Re: session scoped services

2012-02-02 Thread John Bush
The thing is depending on the user I will be pointing to a different location for the wsdl. I'm creating an app that talks to a bunch of servers in our datacenter. Not sent with my iphone. On Feb 2, 2012 1:36 AM, "Christian Köberl" < tapestry.christian.koeb...@gmail.com> wrote: > 2012-02-02, Joh

Re: session scoped services

2012-02-02 Thread Denis Stepanov
If you have your service in the session it also means that there is the ioc registry attached to it, it could be a problem when you have a cluster, best practices is to store only serializable objects. Denis Feb 2, 2012 v 9:35 AM, Christian Köberl: > 2012-02-02, John Bush: >> I have a project

Re: session scoped services

2012-02-02 Thread Christian Köberl
2012-02-02, John Bush: > I have a project where I need some services session scoped, not > singletons or perthread. The reason is that I have some web services > I use that need some session state for initialization. While the > perthread approach works just fine, I don't want to be initializing

Re: session scoped services

2012-02-01 Thread Thiago H. de Paula Figueiredo
Hi! On Wed, 01 Feb 2012 21:30:33 -0200, John Bush wrote: then you need to use a builder method approach for ioc, b/c the autobinding is not aware of session scoped items, only proper services, at least that what I've seen in practice. Actually, you can defined the scope of an autobound servi

Re: Session Time-out

2011-06-02 Thread Kalle Korhonen
Sounds like a good case for a conversational page. Tynamo's tapestry-conversations (http://tynamo.org/tapestry-conversations+guide) allows you to set the max length of a conversation independent of the session timeout and a ajax keep-alive with a drop-in component. Kalle On Thu, Jun 2, 2011 at 7

Re: Session Time-out

2011-06-02 Thread Andreas Andreou
Also, it's usual in such forms to do a "dummy" ajax request from javascript every few minutes so that the session is extended On Thu, Jun 2, 2011 at 17:05, Taha Hafeez wrote: > This is fully documented at > http://tapestry.apache.org/overriding-exception-reporting.html > > I would use version 2 o

Re: Session Time-out

2011-06-02 Thread Taha Hafeez
This is fully documented at http://tapestry.apache.org/overriding-exception-reporting.html I would use version 2 or 3 from that page regards Taha On Thu, Jun 2, 2011 at 7:19 PM, wrote: > I have a problem with Tapestry 5 when the s

Re: Session State not setting user?

2011-03-15 Thread robnangle
Can it be used aswel as @SessionState? And in the other class how do i get the user then? Just inject it? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Session-State-not-setting-user-tp3698456p3701009.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: Session State not setting user?

2011-03-15 Thread Richard Hill
ocumentation to see how injection works > > g, > kris > > > > Von:robnangle > An: users@tapestry.apache.org > Datum: 15.03.2011 12:49 > Betreff:Re: Session State not setting user? > > > > Cheers.. Is that difficult done? > > -

Re: Session State not setting user?

2011-03-15 Thread Kristian Marinkovic
just declare it in your constructor and create your service with tapestry ioc. take a look at the tapestry ioc documentation to see how injection works g, kris Von:robnangle An: users@tapestry.apache.org Datum: 15.03.2011 12:49 Betreff:Re: Session State not setting user

Re: Session State not setting user?

2011-03-15 Thread robnangle
Cheers.. Is that difficult done? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Session-State-not-setting-user-tp3698456p3699526.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To

Re: Session State not setting user?

2011-03-15 Thread Kristian Marinkovic
@SessionState/@Property only works in Pages, Components and Mixins. To access session state objects in your services you need to inject the ApplicationStateManager g, kris Von:robnangle An: users@tapestry.apache.org Datum: 15.03.2011 12:28 Betreff:Session State not setting u

Re: session id

2011-02-25 Thread Josh Canfield
> It won't work, as the jsessionid is not a query parameter. By that Thiago means that it's not a query parameter managed by the Link, so you can't remove it. The jsessionid query parameter is added by the servlet container when you call to*URI. Josh On Fri, Feb 25, 2011 at 3:43 PM, Thiago H. de

Re: session id

2011-02-25 Thread Thiago H. de Paula Figueiredo
On Fri, 25 Feb 2011 20:36:55 -0300, Mark wrote: Ah ok. That explains why I see it sometimes and not others. This is what I ended up doing: Link link = pageRenderLinkSource.createPageRenderLinkWithContext("page", context); link.removeParameter("jsessionid"); return link; Any problems with th

Re: session id

2011-02-25 Thread Mark
Ah ok. That explains why I see it sometimes and not others. This is what I ended up doing: Link link = pageRenderLinkSource.createPageRenderLinkWithContext("page", context); link.removeParameter("jsessionid"); return link; Any problems with that? Mark On Fri, Feb 25, 2011 at 4:28 PM, Josh Can

Re: session id

2011-02-25 Thread Josh Canfield
> Any idea on how to prevent these session ids from being part of the > links created in this manner? You'll get a session id if you try to persist anything into the session, for instance if you use @ApplicationState as a page securing mechanisms might do. Tapestry calls encodeRedirectURL when yo

Re: session is NULL

2010-11-11 Thread Anas Mughal
into my DAO. That is working well for me. (No constructors.) Best Regards. --Anas Mughal http://anas-mughal.com   --- On Thu, 11/11/10, Everton Agner wrote: From: Everton Agner Subject: Re: session is NULL To: "Tapestry users" Date: Thursday, November 11, 2010, 8:23 AM > @

Re: session is NULL

2010-11-11 Thread Everton Agner
0, Rich M wrote: > > From: Rich M > Subject: Re: session is NULL > To: "Tapestry users" > Date: Wednesday, November 10, 2010, 10:34 AM > > On 11/10/2010 03:42 AM, Anas Mughal wrote: > > I have setup my DAO as a Tapestry service in the AppModule as: > &

Re: session is NULL

2010-11-10 Thread Anas Mughal
Yes, that worked. I wish to thank everyone for their help! Tapestry is great! Coming from the Spring world, I do not miss those verbose Spring configuration files! --Anas Mughal http://anas-mughal.com --- On Wed, 11/10/10, Rich M wrote: From: Rich M Subject: Re: session is NULL To

Re: session is NULL

2010-11-10 Thread Rich M
page classes cleaner. Any suggestion would be greatly appreciated. --- On Wed, 11/10/10, Kalle Korhonen wrote: From: Kalle Korhonen Subject: Re: session is NULL To: "Tapestry users" Date: Wednesday, November 10, 2010, 1:48 AM @Inject is for pages. Make your DAO a T

Re: session is NULL

2010-11-10 Thread Cezary Biernacki
On Wed, Nov 10, 2010 at 9:42 AM, Anas Mughal wrote: > > I have setup my DAO as a Tapestry service in the AppModule as: > > [...] Then, I try to inject the session as follows: > > public class BranchHibernateDAO implements BranchDAO { > > @Inject > private Session session; > > >

Re: session is NULL

2010-11-10 Thread ael
Kindly visit my post. http://tapestry.1045711.n5.nabble.com/T5-Working-Tapestry-Hibernate-with-DAO-td3229905.html#a3229905 http://tapestry.1045711.n5.nabble.com/T5-Working-Tapestry-Hibernate-with-DAO-td3229905.html#a3229905 -- View this message in context: http://tapestry.1045711.n5.nabble.co

Re: session is NULL

2010-11-10 Thread Anas Mughal
/10, Kalle Korhonen wrote: From: Kalle Korhonen Subject: Re: session is NULL To: "Tapestry users" Date: Wednesday, November 10, 2010, 1:48 AM @Inject is for pages. Make your DAO a Tapestry service and inject the session to it via its constructor. Kalle On Tue, Nov 9, 2010 at

Re: session is NULL

2010-11-09 Thread Kalle Korhonen
@Inject is for pages. Make your DAO a Tapestry service and inject the session to it via its constructor. Kalle On Tue, Nov 9, 2010 at 9:52 PM, Anas Mughal wrote: > I have setup my Tapestry project using the Maven archetype. Then, I setup my > hibernate.cfg.xml file with references to my hibern

Re: session is NULL

2010-11-09 Thread Josh Kamau
no error with respect to the hibernate configuration.) > > I don't know how to resolve the session object being NULL in my simple DAO > below. > > > > > > > > Thanks for your help! > -- > Anas Mughal > > http://anas-mughal.com > > > > >

Re: session is NULL

2010-11-09 Thread Anas Mughal
Josh Kamau Subject: Re: session is NULL To: "Tapestry users" Date: Wednesday, November 10, 2010, 1:04 AM Hi Anas; Have you added the tapestry-hibernate dependency on your pom.xml? On Wed, Nov 10, 2010 at 12:52 AM, Anas Mughal wrote: > I have setup my Tapestry project using the Mav

Re: session is NULL

2010-11-09 Thread Josh Kamau
Hi Anas; Have you added the tapestry-hibernate dependency on your pom.xml? On Wed, Nov 10, 2010 at 12:52 AM, Anas Mughal wrote: > I have setup my Tapestry project using the Maven archetype. Then, I setup > my hibernate.cfg.xml file with references to my hibernate mapping files. (I > am not usin

Re: Session concurrency

2010-11-01 Thread Thiago H. de Paula Figueiredo
On Mon, 01 Nov 2010 11:43:28 -0200, Paulo Andrade wrote: Hello, Hi! Sorry if this an easy question, It isn't. Actually, it's not even a Tapestry-only problem, but of stateful web applications too. but I'm new to tapestry and couldn't quite figure out how does tapestry handle sessi

Re: session share problem in multiple-tab browser

2010-08-10 Thread cleverpig
really cool,I find out tapestry-conversation component:http://tynamo.org/tapestry-conversations+guide here is its announcement:http://tapestry-users.832.n2.nabble.com/ANNOUNCEMENT-New-releases-of-conversations-and-hibernate-seedentity-modules-td4738484.html#a4738484 On Tue, Aug 10, 2010 at 2:59

Re: session expired error

2010-04-22 Thread Kristian Marinkovic
it took me some time to realize you're using Tapestry 4 please add the version number next time. there are basically two simple ways to influence the session expiration: 1) change the timeout in your web.xml 10 2) create a component, that is placed on every

Re: Session State Object Creating Itself

2009-09-16 Thread Mark W. Shead
Never mind. One onActivate was canceling out the other. I should probably stop coding and go to bed. :) Mark On Sep 16, 2009, at 10:25 PM, Mark W. Shead wrote: I have an abstract class that is extended by pages that require a login. This seems to work except for on the page where I actu

Re: Session lost when cookies disabled?

2009-07-27 Thread Sergey Didenko
Sorry, I was wrong. In my case the problem was that "redirectTo" url was created before session. And thus before putting jsessionid in url. So the login was working fine - it was appending "jsessionid" to the url and then my code was redirecting to the old "redirectTo" url without "jsessionid". On

Re: Session lost when cookies disabled?

2009-07-26 Thread Sergey Didenko
I have the same bug. I tried to catch it. It seems that ApplicationStateManager does not trigger url based session tracking when setting a session object from a service. But it works ok if there a "write" to session from a component. I will create a JIRA if there is no objections. Regards, Serg

Re: Session creation

2009-01-28 Thread Tomas Kolda
Yes restarted. I deleted all from Index, but form. What am I doing wrong? Using 5.0.18, Jetty, Eclipse 3.4. Index.java: @Meta("tapestry.persistence-strategy=client") public class Index { @Property private String query; } Index.tml: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>

Re: Session creation

2009-01-28 Thread Kalle Korhonen
Layout's still a component (unless you have a page named Layout), need to be in the page class. I can verify the meta annotation works ok. Kalle On Wed, Jan 28, 2009 at 10:48 AM, Tomas Kolda wrote: > Hmm, I do not know what I'm doing wrong, but it does not work. It still > create session. > >

Re: Session creation

2009-01-28 Thread Thiago H. de Paula Figueiredo
Have you put this annotation in all pages with Form components and restarted you application (to clear the session)? -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago -

Re: Session creation

2009-01-28 Thread Tomas Kolda
Hmm, I do not know what I'm doing wrong, but it does not work. It still create session. @Meta("tapestry.persistence-strategy=client") public class Layout { @Component private Form queryForm; .. Thiago H. de Paula Figueiredo napsal(a): Em Wed, 28 Jan 2009 15:04:35 -0300, Tomas Kolda

Re: Session creation

2009-01-28 Thread Thiago H. de Paula Figueiredo
Em Wed, 28 Jan 2009 15:04:35 -0300, Tomas Kolda escreveu: Meta did not work, because I can't use it on component variable. It can be used only to @Target(TYPE). Maybe you have different version. Put it in the page class at which the Form component is used. I was wrong when I suggested to

Re: Session creation

2009-01-28 Thread Tomas Kolda
Thank you, yes problem is in Form. I do not know how to switch off persistence of validation so I will use standard tag. Meta did not work, because I can't use it on component variable. It can be used only to @Target(TYPE). Maybe you have different version. Also thanks to Andreas Andreou f

Re: Session creation

2009-01-27 Thread Andreas Andreou
Use httpsessionlistener http://www.xyzws.com/servletfaq/when-do-i-use-httpsessionlistener/7 In the sessionCreated method, just create an Exception and log it to examine the traces - or even throw it if you don't want any sessions at all and want to be 100% sure :) On Wed, Jan 28, 2009 at 1:49 AM

Re: Session creation

2009-01-27 Thread Thiago H. de Paula Figueiredo
Em Tue, 27 Jan 2009 19:40:13 -0300, Tomas Kolda escreveu: is there a simple way to detect which part or component of my page forces Session creation? I do not have @Persist or @ApplicationState in page class and it still create session. I wish I knew, but, by default, the Form component

Re: "Session bleedings" in Tapestry5

2008-10-20 Thread superoverdrive
Thanks for the quick reply. Good to hear that this is not an issue in T5. Original-Nachricht > Datum: Mon, 20 Oct 2008 06:52:54 -0700 > Von: "Howard Lewis Ship" <[EMAIL PROTECTED]> > An: "Tapestry users" > Betreff: Re: "Session bleedi

Re: "Session bleedings" in Tapestry5

2008-10-20 Thread Howard Lewis Ship
cht >> Datum: Mon, 20 Oct 2008 13:32:16 +0200 >> Von: Tobias Wehrum <[EMAIL PROTECTED]> >> An: Tapestry users >> Betreff: Re: "Session bleedings" in Tapestry5 > >> Hello namesake, >> >> Since I've never heared about this too

Re: "Session bleedings" in Tapestry5

2008-10-20 Thread Carl Crowder
on, 20 Oct 2008 08:46:15 -0400 >> Von: "Daniel Jue" <[EMAIL PROTECTED]> >> An: "Tapestry users" >> Betreff: Re: "Session bleedings" in Tapestry5 > >> I've also never come across this kind of problem. It would be >> inter

Re: "Session bleedings" in Tapestry5

2008-10-20 Thread superoverdrive
Tapestyr5 or 4 ? Here, this developer means Tapestry5 Original-Nachricht > Datum: Mon, 20 Oct 2008 08:46:15 -0400 > Von: "Daniel Jue" <[EMAIL PROTECTED]> > An: "Tapestry users" > Betreff: Re: "Session bleedings" in Tapes

Re: "Session bleedings" in Tapestry5

2008-10-20 Thread Daniel Jue
iginal Message - > From: [EMAIL PROTECTED] > To: users@tapestry.apache.org > Sent: Monday, 20 October, 2008 2:53:17 PM GMT +02:00 Athens, Beirut, > Bucharest, Istanbul > Subject: Re: "Session bleedings" in Tapestry5 > > I quote from a chat protocol with a developer: > > &quo

Re: "Session bleedings" in Tapestry5

2008-10-20 Thread Peter Stavrinides
Subject: Re: "Session bleedings" in Tapestry5 I quote from a chat protocol with a developer: "Take for eg, if there are 10 users at present using our website, then first user clicks on 1st page, and 5th user clicks on 2nd page, and 3 rd person clicks on 3 page and using it. And i

Re: "Session bleedings" in Tapestry5

2008-10-20 Thread superoverdrive
nt to goto another page say 5, then he also gets 8 instead of 5. As first user requested that page. :( " Original-Nachricht > Datum: Mon, 20 Oct 2008 13:32:16 +0200 > Von: Tobias Wehrum <[EMAIL PROTECTED]> > An: Tapestry users > Betreff: Re: &quo

Re: "Session bleedings" in Tapestry5

2008-10-20 Thread Tobias Wehrum
Hello namesake, Since I've never heared about this too, I searched the Mailing List and JIRA and didn't find any issue which you could've meant. Where did you hear that? - Tobias [EMAIL PROTECTED] schrieb: I have heard there are some issues with "Session bleedings" in Tapestry5. Will those

Re: "Session bleedings" in Tapestry5

2008-10-20 Thread Ville Virtanen
I've never heard of that? I suspect that this is due to the fact that the T5 page pool is forgotten and @Retain is used or something similar? Page cannot contain ANY instance variables, excluding the ones that are same regardless of the session (user) accessing the page or maintained by T5. Sam

Re: session-less forms

2008-04-13 Thread nicholas Krul
the @Meta("tapestry.persistence-strategy=X") works beautifully... no more sessions till logged in. On Mon, Apr 7, 2008 at 7:14 PM, Robert Zeigler <[EMAIL PROTECTED]> wrote: > > On Apr 7, 2008, at 4/712:53 PM , Fernando Padilla wrote: > > > so.. the "client" strategy stores it in a cookie? > > >

Re: session-less forms

2008-04-07 Thread Robert Zeigler
On Apr 7, 2008, at 4/712:53 PM , Fernando Padilla wrote: so.. the "client" strategy stores it in a cookie? Client strategy stores it in the url. Not sure how that would play out for myspace, etc. Robert Yeah, I don't really have access to those either :) ps - This is for integration with

Re: session-less forms

2008-04-07 Thread Fernando Padilla
so.. the "client" strategy stores it in a cookie? Yeah, I don't really have access to those either :) ps - This is for integration with GoogleGadgets/OpenSocial/MySpace/Hi5. So it's basically a portlet hosted on a different site. And the requests to my server are being proxied by MySpace/Hi5

Re: session-less forms

2008-04-07 Thread Howard Lewis Ship
The approach I would take would be to configure the Form to store its persistent fields on the client, rather than in the Session. On your PAGE, you can add a @Meta annotation for this: @Meta("tapestry.persistence-strategy=client") public class MyPage { ... This sets the default persistence stra

Re: session-less forms

2008-04-07 Thread Peter Stavrinides
If I understand correctly you need to pass data completely independent of session state... then your options are hidden form fields, and or URL parameters. Of course then you would have to reinitialize your properties manually after posting, which is not such big a deal! Fernando Padilla wrote

Re: session-less forms

2008-04-06 Thread Josh Canfield
I have a requirement to not depend on HttpSession, but the Form component has a @Persist field that Tapestry wants to store in a session. What are some options to avoid this? I may have posted this before, but here it is again. I think it's a pretty good solution. I created a session pe

Re: Session in ServiceEncoder's?

2008-01-23 Thread Kaspar Fischer
This seems to work: interface="org.apache.tapestry.engine.ServiceEncoder"> class="org.myorg.tapestry.myproject.serviceencoders.DBObjectServiceEncod er"> value="service:tapestry.state.ApplicationStateManager" /> and in the service encoder class: ... private Appli

Re: Session in ServiceEncoder's?

2008-01-23 Thread Kaspar Fischer
On 21.01.2008, at 17:24, Kaspar Fischer wrote: Hi, Can I inject the current session into a service encoder? Any idea how I could achieve this? Many thanks! Kaspar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Session Creation...

2008-01-02 Thread Norman Franke
I had similar issues changing from an HTTPs login page to a normal HTTP session for speed. I gave up in the end (for now.) I was using Tomcat, and it kept randomly creating a new session when switching back and forth. But, I'd bet it's really your servlet container that's doing this, not

Re: Session and application scope

2007-10-23 Thread Peter Stavrinides
How can i instanciate an Application Object? @ApplicationState private MyObject objectName_; how i use a request @Inject private RequestGlobals requestGlobals_; Then you have access to the Servlet API with things like: HttpServletRequest request = requestGlobals.getHTTPServletRequest(); Gi

Re: Session and application scope

2007-10-23 Thread Massimo Lusetti
On 10/23/07, Gianluigi <[EMAIL PROTECTED]> wrote: > Only a question, how i use a request or a Session in Tapestry 5? How can i > instanciate an > Application Object? > > in JSP i wrote : HttpSession session and session.setProperty("Key"); > and in Tapestry 5? Take a look at application state: h

Re: session state vs application state?

2007-09-27 Thread Peter Stavrinides
To be safe you need to use concurrent data structures, such as the concurrent hash map, and implement the class as a singleton. Marcus wrote: Josh, Again, I agree, every method that change the _lista should be synchronized. Marcus ---

Re: session state vs application state?

2007-09-25 Thread Marcus
Josh, Again, I agree, every method that change the _lista should be synchronized. Marcus

Re: session state vs application state?

2007-09-25 Thread Josh Canfield
On 9/25/07, Marcus <[EMAIL PROTECTED]> wrote: > > Hi Josh, > > I agree with your comment. Add synchronization to "add" method is a good > practice. > > Marcus > Synchronizing "add" won't solve the problem. Any time you are going to structurally change the list then any iterator becomes invalid and

Re: session state vs application state?

2007-09-25 Thread Marcus
Hi Josh, I agree with your comment. Add synchronization to "add" method is a good practice. Marcus

Re: session state vs application state?

2007-09-25 Thread Josh Canfield
I'm thinking that you are going to run into problems with this technique. While page instances are thread safe, your page class will definitely be used by multiple threads. If you are adding to _lista while iterating over it then you are going to get an ConcurrentModificationException. Performing a

Re: session state vs application state?

2007-09-25 Thread Marcus
Hi Robert, Anyway, if you create a class with static methods and attributes, your object will be shared for entire application. public class ListaEstatica { private static List _lista; public static List getLista() { if (_lista==null)

Re: session state vs application state?

2007-09-24 Thread Howard Lewis Ship
You really want your object to be stored in the ServletContext. In Tapestry terms, that would be possible as a new (as in, not yet provided by the framework) ApplicationStatePersistenceStrategy. Feel free to add a JIRA Issue (and a patch!). On 9/24/07, Robert A. Decker <[EMAIL PROTECTED]> wrote

Re: session variables and links

2007-09-04 Thread Erik Vullings
Hi Michele, 1. Why would you do this? For example, you would normally do something like this in your mypage.html: Link text and something like this in your mypage.java: @Persist String myName; public void onActionFromName(String name) { myName = name; } 2. You can create a page in your java

Re: Session timeout and callback

2007-04-28 Thread Jesse Kuhnert
The listener parameters won't have the state of your page (in most instances). . What you have to do is implement IExternalPage ( http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/IExternalPage.html) on your page class like so: @Persist public abstract void setUserId(String made

Re: Session invalidate question

2007-04-26 Thread Peter Stavrinides
This is great Matt! thanks. Matt Larson wrote: Peter, I have encountered a similar problem, and I think that the problem was not in my code, but in where I was doing the session.invalidate(). In trying to remove a cookie on logout, I found that I needed to do the invalidation in an IEngineS

Re: Session invalidate question

2007-04-25 Thread Matt Larson
Peter, I have encountered a similar problem, and I think that the problem was not in my code, but in where I was doing the session.invalidate(). In trying to remove a cookie on logout, I found that I needed to do the invalidation in an IEngineService. You can then do a redirect to whatever

  1   2   >