Re: Re: Re: Re: Re: Incremental request delay

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

Ralf,

Have you regenerated the xforms-min.js? The
xforms-dialog-yuicalendar-min.js is not a real file on disk: it is
produced by the Orbeon Forms by concatenating some JavaScript files it
finds in the resources. This is done to minimize the number of HTTP
requests the clients needs to make. While you are still testing your
changes, you can set the following two properties, so the actual
xforms.js is loaded:

    <property as="xs:boolean" name="oxf.xforms.minimal-resources"
                     value="false"/>
    <property as="xs:boolean" name="oxf.xforms.combine-resources"
                     value="false"/>

Also, instead of repackaging the xforms.js into the jar, you can put
it in your WEB-INF/resources/ops/javascript. Any file you put in
WEB-INF/resources by default overrides files in the jars/classpath.
And if you are curious why, you'll find the configuration for this in
your web.xml. Also, you might find some information about editing the
Orbeon Forms JavaScript code at the page below:

http://wiki.orbeon.com/forms/doc/contributor-guide/development-environment/javascript-development

I hope this helps,

Alex

On Wed, Oct 27, 2010 at 5:43 AM, Ralf Jung <[hidden email]> wrote:

> Hi Alex,
>
>> 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.
> I did that, and verified that the changed files are in the jar, and restarted
> tomcat. But it's still using the old version, as I can see from opening
> /xforms-server/xforms-dialog-yuicalendar-min.js
> Maybe I should better try a nightly... hm. Does it suffice to replace all the
> jar files with the new ones? I did some configuration to disable the
> /orbeon/exist and so on and do not want to re-do all that.
>
> 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