Re: T5.1 Ajax requests and responses out of order

2010-08-15 Thread Kartweel
Thanks, That is a great idea. Much simpler than implementing the token idea but would achieve a good result in my case. On 13/08/2010 5:38 PM, Andreas Andreou-4 [via Tapestry] wrote: > dojo used to have queueBind - that would trigger an ajax request only > after > the previous one had returne

Re: T5.1 Ajax requests and responses out of order

2010-08-13 Thread Andreas Andreou
dojo used to have queueBind - that would trigger an ajax request only after the previous one had returned... the implementation is just a few lines, see http://bugs.dojotoolkit.org/browser/trunk/src/io/common.js?rev=7811 around line 340 On Fri, Aug 13, 2010 at 08:44, Kartweel wrote: > > > Josh Ca

Re: T5.1 Ajax requests and responses out of order

2010-08-12 Thread Kartweel
Josh Canfield wrote: > > If Autocomplete isn't want you want then you could implement a > timeout so you only send the data when the user pauses. You can look > inside the scriptaculous code for an example. > Thanks. I actually have implemented a timeout so it only submits when the user pauses

Re: T5.1 Ajax requests and responses out of order

2010-08-12 Thread Josh Canfield
Sounds like Tapestry's Autocomplete mixin; based on the autocomplete control from scriptaculous. http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/mixins/Autocomplete.html If I know what I'm going to type into your input box then I'm probably going to be done typi

T5.1 Ajax requests and responses out of order

2010-08-12 Thread Kartweel
Hi, Before I re-invent the wheel, I was wondering if anyone has dealt with ajax requests and responses being out of order?. Issue 1 I have a field which submits with each character typed (with the goal of filtering down a list). What is happening is that the anti-virus is scanning the submitted

Re: [T5.1] AJAX Form Validation

2009-10-22 Thread Josh Canfield
t;>>> org.apache.tapestry5.corelib.components.Loop.access$500(Loop.java:44) >>>>>>        at >>>>>> org.apache.tapestry5.corelib.components.Loop$RestoreStateFromStoredClientValue.execute(Loop.java:165) >>>>>>        at >>>>>> org.apache.tapestry5.corelib.components.Loop$RestoreStateFro

Re: [T5.1] AJAX Form Validation

2009-10-22 Thread superslip103
; Hello all, >>>>>> >>>>>> I'm seing some interesting behavior I hope you can help me sort out. >>>>>> >>>>>> I have a form which I would like to display an error messa

Re: [T5.1] AJAX Form Validation

2009-10-05 Thread xfile80303
Thanks Josh! You helped me identify that it was an encoder issue on my end. I appreciate your help. :) Cheers, Levi Josh Canfield wrote: > > The only change I made was making isValid into a property and a > checkbox in the form so I could switch between behaviors. > > Here is the complete

Re: [T5.1] AJAX Form Validation

2009-10-03 Thread Josh Canfield
The only change I made was making isValid into a property and a checkbox in the form so I could switch between behaviors. Here is the complete code that works for me. public class Index { @Component private Zone nothingSelectedZone; @Component private Form _parts; @Property

Re: [T5.1] AJAX Form Validation

2009-10-02 Thread xfile80303
Hi Josh, Thanks for looking. I'm afraid the stack trace I provided is a red herring and does not have any bearing on the situation. It comes from the fact that my encoder was getting purged from the session due to it being set as FLASH only. And this exception actually only happens after I cha

Re: [T5.1] AJAX Form Validation

2009-10-02 Thread Josh Canfield
Your example code works fine and the exception you provide makes it look like you're in a loop? > Caused by: java.lang.NullPointerException >at > org.apache.tapestry5.corelib.components.Loop.restoreStateFromStoredClientValue(Loop.java:457) That line from the code: // We assume tha

Re: [T5.1] AJAX Form Validation

2009-10-02 Thread xfile80303
Okay, I have some more information... When I click on the submit button, after the validation error, I see this in the log: ERROR [http-8080-5: RequestExceptionHandler]: Processing of request failed with uncaught exception: org.apache.tapestry5.runtime.ComponentEventException org.apache.tapestry

[T5.1] AJAX Form Validation

2009-10-01 Thread xfile80303
Hello all, I'm seing some interesting behavior I hope you can help me sort out. I have a form which I would like to display an error message (custom) should the form validation fail. I'd like to do this via AJAX since the contents of the form are created via AJAX and refreshing the page to disp

Re: T5.1 Ajax

2009-08-16 Thread Ulrich Stärk
look at the form component's zone parameter. Uli Am 16.08.2009 07:08 schrieb sohu: Tapestry use actionlink or eventlink with t:zone to update div. But some values need to be input by users, such as when user login, these value can not be get from actionlink context before submit. Is it right?

T5.1 Ajax

2009-08-15 Thread sohu
Tapestry use actionlink or eventlink with t:zone to update div. But some values need to be input by users, such as when user login, these value can not be get from actionlink context before submit. Is it right? Now I am doing: 1. use Javascript getElementById to get these value, send an ajax r