Re: Re: Re: Incremental request delay

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

Ralf,

I am not sure what the "this" refers to when you say "Is this possible
with the built-in settings?", and I don't really see how using
<xxforms:script> can be used to work around this. But the fix I did is
very simple (it can't be simpler!). See:

http://github.com/orbeon/orbeon-forms/commit/00478eb2be71d6409b068beee33d2202123a1366

So you could just re-apply this change in your build. You can extract
xforms.js from WEB-INF/lib/orbeon-resources-public.jar, do this
change, regenerate the xforms-min.js from xforms.js using the YUI
compressor (http://developer.yahoo.com/yui/compressor/), and update
xforms.js and xforms-min.js in WEB-INF/lib/orbeon-resources-public.jar
with your patched versions.

Alex

On Tue, Oct 26, 2010 at 1:14 PM, Ralf Jung <[hidden email]> wrote:

> Hi,
>
>> 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/547d4776bc7077ba434d9978eea8c6
>> 2688bd42ac#L0R2316
> Wow, glad you found that out :)
>
>> 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.
> I solved the problem in the mean time by using xxforms:script. This also
> allowed to be get the behaviour that I actually wanted - to update the form
> not some fixed time span after the first key press, but some time span after the
> last. So, pressing a key every 100ms, 10 times in a row, should only result in
> one update after the last keystroke. Is this possible with the built-in
> settings? Besides, I am hesitant to use a nightly build in production.
>
> I'll try to do a quick test of the nightly later this week.
>
> 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