Re: Sticky Sessions

2014-12-04 Thread Kalle Korhonen
On Thu, Dec 4, 2014 at 4:43 PM, George Christman wrote: > Well before I had it disabled with the load balancer which was causing the > issues. It seemed to fix things when I activated it, but it had a default > time of 0. I'll change it to 5mins for now and if I didn't etend it via > async, what

Re: Sticky Sessions

2014-12-04 Thread George Christman
Well before I had it disabled with the load balancer which was causing the issues. It seemed to fix things when I activated it, but it had a default time of 0. I'll change it to 5mins for now and if I didn't etend it via async, what would happen? On Thu, Dec 4, 2014 at 3:41 PM, Kalle Korhonen wro

Re: Sticky Sessions

2014-12-04 Thread Barry Books
I have a URL persist I wrote to solve this problem. It moves the grids data from the session into URL parameters. I'll post the code later today On Thursday, December 4, 2014, Kalle Korhonen wrote: > On Thu, Dec 4, 2014 at 12:08 PM, George Christman > > wrote: > > > I'd have to say 98% of my a

Re: Sticky Sessions

2014-12-04 Thread Kalle Korhonen
On Thu, Dec 4, 2014 at 12:08 PM, George Christman wrote: > I'd have to say 98% of my app is stateless, I only have a few admin pages > that still use tapestry grid. Other than that Captcha and Tapestry Security > redirect seem to be the only two items effected by this, so I don't think > I'll hav

Re: Sticky Sessions

2014-12-04 Thread George Christman
I'd have to say 98% of my app is stateless, I only have a few admin pages that still use tapestry grid. Other than that Captcha and Tapestry Security redirect seem to be the only two items effected by this, so I don't think I'll have a memory issue. Kalle, I still use AWS and thus far it's been ve

Re: Sticky Sessions

2014-12-04 Thread Kalle Korhonen
On Thu, Dec 4, 2014 at 5:54 AM, George Christman wrote: > Hi guys, so I've had a slew of strange behaviors over the past few months > with a few different Tapestry components such as Tapestry Grid, Tapestry > Captcha, and writting/removing cookies. Last night I was finally able to > fix them, but

Re: Sticky Sessions

2014-12-04 Thread Alex Kotchnev
George - sounds like those components might be using session persistence for some of their data (e.g. in the case of Grid it uses @Persist , which defaults to session persistence, to store the GridPaginationModel - e.g. https://github.com/apache/tapestry-5/blob/master/tapestry-core/src/main/java/or

Re: Tapestry5 jquery ajaxupload

2014-12-04 Thread George Christman
For something simple like messages, you might be able to just pass in your own json object through params. https://github.com/got5/tapestry5-jquery/blob/master/src/main/java/org/got5/tapestry5/jquery/components/AjaxUpload.java It looks like line 164 they are doing a merge. On Thu, Dec 4, 2014 at

Re: Tapestry5 jquery ajaxupload

2014-12-04 Thread George Christman
I ended up having to several modify that component to get it to do what I wanted it to do. It's very difficult to modify the template because the core file upload js depends on a lot of the elements within the template. Anyhow, I ended up using Tapestry5-jquery as a base to build my own version and

Sticky Sessions

2014-12-04 Thread George Christman
Hi guys, so I've had a slew of strange behaviors over the past few months with a few different Tapestry components such as Tapestry Grid, Tapestry Captcha, and writting/removing cookies. Last night I was finally able to fix them, but at the cost of a sticky session. My application sits behind a loa

Re: How to access tapestry validation results inside jquery

2014-12-04 Thread Barry Books
In 5.4 there is an event for this. define(["jquery","t5/core/events"], *function*($,events) { *return* *function*(parameters) { $('#'+parameters.id + ' :submit').removeAttr('disabled'); $('#'+parameters.id).bind(events.form.prepareForSubmit, *function*() {