Maciej,
On Thu, Nov 5, 2009 at 2:50 AM, Maciej Arciuch
<
[hidden email]> wrote:
> Thanks for your answer. I've tried it and it doesn't work - the "Loading..."
> label is changed, but in a span that is not actually shown and it seems that
> client-side JS code replaces the span with a new span with the old default
> label and different attributes the first time the red box is shown. Where
> does it take that label from?
Ah, good point, this doesn't work because a hard-coded value in
xforms.js is used. You'll find this towards the top of the file:
var DEFAULT_LOADING_TEXT = "Loading...";
I have been considering to keep the value in the span instead of using
DEFAULT_LOADING_TEXT, but this is not just done in 1 line of code,
since the content of the span can be replaced by a value you provide
with xxforms:progress-message="..."
(
http://www.orbeon.com/ops/doc/reference-xforms-guide#dispatch-delay).
Also, ultimately this is something we want to change so the message
can be localized and can change as the html/@lang changes. So for now
I recommend you change xforms.js, instead of the theme. Sorry to have
mislead you!
Again, this is not ideal, but I believe you had to change that file
anyway for the calendar i18n, so at least you'll just have one file to
change.
> And how do make changes to e.g. xforms.js in resources JAR if I have
> minimized resources turned on?
Make your changes in xforms.js. Place your xforms.js in your
WEB-INF/resources/ops/javascript. Compress it using the YUI Compressor
(
http://developer.yahoo.com/yui/compressor/). You can download it and
run it from the command line, or you can use one of the online
versions that people put up (do a search for "yui compressor online").
Name the compressed file xforms-min.js, and put it in the same
directory as xforms.js. Or if you have the Orbeon Forms source code
checked out, you can run "ant orbeon-minify-js".
Alex
--
Orbeon Forms - Web forms, open-source, for the Enterprise
Orbeon's Blog:
http://www.orbeon.com/blog/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