xforms:repeat with HTML text area

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

xforms:repeat with HTML text area

Ethan Gruber
I want to be able to attach the textarea mediatype=text/html input to a repeatable element (paragraph).  I'm getting an error with this, not dissimilar to the one documented in the link http://n4.nabble.com/issue-when-adding-html-editor-inside-repeat-control-td36674.html#a36674 .  It has been two years since this post.  Is this still an issue?  I could have sworn I had this working a few weeks ago before the holiday, but maybe I'm wrong.

What are potential solutions for the problem?

Ethan


--
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
Reply | Threaded
Open this post in threaded view
|

Re: xforms:repeat with HTML text area

Ethan Gruber
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

On Wed, Jan 6, 2010 at 1:45 PM, Ethan Gruber <[hidden email]> wrote:
I want to be able to attach the textarea mediatype=text/html input to a repeatable element (paragraph).  I'm getting an error with this, not dissimilar to the one documented in the link http://n4.nabble.com/issue-when-adding-html-editor-inside-repeat-control-td36674.html#a36674 .  It has been two years since this post.  Is this still an issue?  I could have sworn I had this working a few weeks ago before the holiday, but maybe I'm wrong.

What are potential solutions for the problem?

Ethan



--
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

test.xhtml (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Re: xforms:repeat with HTML text area

Alessandro  Vernet
Administrator
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


On Jan 6, 2010, at 11:34 AM, Ethan Gruber <[hidden email]> wrote:

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

On Wed, Jan 6, 2010 at 1:45 PM, Ethan Gruber <[hidden email]> wrote:
I want to be able to attach the textarea mediatype=text/html input to a repeatable element (paragraph).  I'm getting an error with this, not dissimilar to the one documented in the link http://n4.nabble.com/issue-when-adding-html-editor-inside-repeat-control-td36674.html#a36674 .  It has been two years since this post.  Is this still an issue?  I could have sworn I had this working a few weeks ago before the holiday, but maybe I'm wrong.

What are potential solutions for the problem?

Ethan

<test.xhtml>

--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: [hidden email]
For general help: [hidden email]
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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: xforms:repeat with HTML text area

Ethan Gruber
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


On Jan 6, 2010, at 11:34 AM, Ethan Gruber <[hidden email]> wrote:

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

On Wed, Jan 6, 2010 at 1:45 PM, Ethan Gruber <[hidden email][hidden email]> wrote:
I want to be able to attach the textarea mediatype=text/html input to a repeatable element (paragraph).  I'm getting an error with this, not dissimilar to the one documented in the link http://n4.nabble.com/issue-when-adding-html-editor-inside-repeat-control-td36674.html#a36674 .  It has been two years since this post.  Is this still an issue?  I could have sworn I had this working a few weeks ago before the holiday, but maybe I'm wrong.

What are potential solutions for the problem?

Ethan

<test.xhtml>

--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: [hidden email][hidden email]
For general help: [hidden email][hidden email]
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




--
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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: xforms:repeat with HTML text area

Alessandro  Vernet
Administrator
Ethan,

I'm glad this workaround works for you. And we'll do our best here to fix this one as quickly as possible.

Alex



On Jan 6, 2010, at 5:56 PM, Ethan Gruber <[hidden email]> wrote:

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


On Jan 6, 2010, at 11:34 AM, Ethan Gruber <[hidden email]> wrote:

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

On Wed, Jan 6, 2010 at 1:45 PM, Ethan Gruber <[hidden email][hidden email]> wrote:
I want to be able to attach the textarea mediatype=text/html input to a repeatable element (paragraph).  I'm getting an error with this, not dissimilar to the one documented in the link http://n4.nabble.com/issue-when-adding-html-editor-inside-repeat-control-td36674.html#a36674 .  It has been two years since this post.  Is this still an issue?  I could have sworn I had this working a few weeks ago before the holiday, but maybe I'm wrong.

What are potential solutions for the problem?

Ethan

<test.xhtml>

--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: [hidden email][hidden email]
For general help: [hidden email][hidden email]
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



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: [hidden email]
For general help: [hidden email]
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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet