Re: Incremental request delay

Posted by Alessandro Vernet on
URL: https://discuss.orbeon.com/Incremental-request-delay-tp3009080p3013186.html

Ralf,

Wow - this is a nice catch. I couldn't believe my eyes. This is indeed
a bug (not too much of a surprise so far), but this one has been
introduced in a refactoring done in November 2008. Here is the
relevant section of that 2008 commit:

http://github.com/orbeon/orbeon-forms/commit/547d4776bc7077ba434d9978eea8c62688bd42ac#L0R2316

I checked all the other changes done at that time (you never know!),
and this one was the only faulty one. So I fixed this, and the fix
will be in the next nightly build. For reference, the bug is:

http://forge.ow2.org/tracker/index.php?func=detail&aid=315584&group_id=168&atid=350207

You'll let us know how the new build works for you.

Alex

On Sun, Oct 24, 2010 at 4:31 AM, Ralf Jung <[hidden email]> wrote:

> Hi everyone,
>
> I am using an incremental input to filter a list of items, i.e. the xforms-
> value-changed is connected to the submission querying the database for the
> filtered dataset. Since filtering for short strings is rather expensive, I want
> the form to wait a bit before sending the request, since the user will most
> likely enter more than one character. So I tried increasing oxf.xforms.delay-
> before-incremental-request to 500ms, but looking at the database log, even if
> I type quickly, several requests are sent. Even if I set the delay to 5
> seconds, the filter is applied almost immediately (less than a second). Is that
> a bug somewhere, or am I using the property the wrong way? Unfortunately I
> found no documentation for it and only learned that it existed by looking at
> the source JavaScript file.
>
> I am using the latest stable Orbeon release (3.8).
>
> Kind regards,
> Ralf Jung
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet