Re: Re: Re: xforms:repeat with HTML text area
Posted by
Ethan Gruber on
Jan 07, 2010; 1:56am
URL: https://discuss.orbeon.com/xforms-repeat-with-HTML-text-area-tp1008273p1008557.html
Alex,
Thanks. I played around and inserted a <p/> into the <publicationstmt> in the main instance, and didn't have any problems after that. The reason I came across this today and not a few weeks ago when I first started to experiment with the RTE is because I was loading files that already had paragraphs rather than creating new files from scratch. <p/> is optional and repeatable, so it's important that it can occur zero or more times.
Ethan
On Wed, Jan 6, 2010 at 8:44 PM, Alessandro Vernet
<[hidden email]> wrote:
Ethan,
Thank you for the reproducible test case. Indeed, this is a bug. The problem is that in this case, we don't include the necessary JavaScript file.
We determine what to include by looking at the tree of controls that is getting built, and since you don't have any iteration, there is no editor in the tree, and so the JavaScript is not included. This is obviously wrong, and I opened a P9 bug for this (our highest priority):
In the meantime, you can get arround this by adding a "dummy" HTML editor somewhere in your page that you hide with CSS. You might want to bind that editor to a dummy node (or even dummy instance) that doesn't contain anything. E.g.:
<xhtml:div style="display: none"><xforms:textarea ref="instance('dummy')" mediatype="text/html"/></xhtml:div>
Alex
As a followup, attached is a test case for the sandbox. It fails on my work machine, a web server, and Orbeon's sandbox.
The error is this:
Exception in client-side code.
I have gotten it in Firefox 3.5.6 and Opera 9.62. The error text is a bit more detailed in Opera.
Ethan
<test.xhtml>
--
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
--
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