Bug found - two textareas on one page both with mediatype="text/html"

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

Bug found - two textareas on one page both with mediatype="text/html"

JohnBampton
I have this simple example below.  Two textareas on the one page.  The model is only updating with one textareas contents.  If they are both not set to mediatype="text/html" then it works.  It seems when there are two mediatype="text/html" it doesn't!

Any ideas around this as I need multiple on on some of my forms.


<xhtml:html xmlns:xforms="http://www.w3.org/2002/xforms"
        xmlns:f="http://orbeon.org/oxf/xml/formatting" xmlns:xhtml="http://www.w3.org/1999/xhtml"
        xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" xmlns:xi="http://www.w3.org/2001/XInclude"
        xmlns:xxi="http://orbeon.org/oxf/xml/xinclude" xmlns:xs="http://www.w3.org/2001/XMLSchema"
        xmlns:widget="http://orbeon.org/oxf/xml/widget" xmlns:ev="http://www.w3.org/2001/xml-events"
        xmlns:xdt="http://www.w3.org/2005/xpath-datatypes" xmlns:xbl="http://www.w3.org/ns/xbl"
        xmlns:fr="http://orbeon.org/oxf/xml/form-runner" lang="en">
        <xhtml:head>
                <xhtml:meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
                <xforms:model id="main-model">
                        <xforms:instance id="data-instance">
                                <data>
                <comments2/>
                    <comments1/>
                    <ticketno/>
                                </data>
                        </xforms:instance>
                </xforms:model>
        </xhtml:head>
        <xhtml:body>
                        <widget:xforms-instance-inspector xmlns:widget="http://orbeon.org/oxf/xml/widget"/>
                        Comments2:
                                                <xforms:textarea ref="comments2" id="comments2" incremental="true"
                                                        mediatype="text/html">
                                                        <xforms:alert/>
                                                </xforms:textarea>
                        <xhtml:br/>
                                        Comments1:<xhtml:br/>
                                                <xforms:textarea ref="comments1" id="comments1" incremental="true"
                                                        mediatype="text/html">
                                                        <xforms:alert/>
                                                </xforms:textarea>
                        Ticket No: <xforms:input id="ticketno" ref="ticketno"
                                                                incremental="true" class="input"/> - <xforms:input id="insuredname"
                                                                ref="insuredname" incremental="true" class="input"/>
        </xhtml:body>
</xhtml:html>
Reply | Threaded
Open this post in threaded view
|

Re: Bug found - two textareas on one page both with mediatype="text/html"

JohnBampton
you actually have to click on another field in the form after you use the text area to get it to display.  It is not incremental it seems
Reply | Threaded
Open this post in threaded view
|

Re: Bug found - two textareas on one page both with mediatype="text/html"

Erik Bruchez
Administrator
In reply to this post by JohnBampton
John,

Which version of Orbeon Forms are you using? Which browser?

This seems to work fine here with Firefox and Chrome.

-Erik

On Wed, Feb 17, 2010 at 11:15 PM, JohnBampton <[hidden email]> wrote:

>
> I have this simple example below.  Two textareas on the one page.  The model
> is only updating with one textareas contents.  If they are both not set to
> mediatype="text/html" then it works.  It seems when there are two
> mediatype="text/html" it doesn't!
>
> Any ideas around this as I need multiple on on some of my forms.
>
>
> <xhtml:html xmlns:xforms="http://www.w3.org/2002/xforms"
>        xmlns:f="http://orbeon.org/oxf/xml/formatting"
> xmlns:xhtml="http://www.w3.org/1999/xhtml"
>        xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
> xmlns:xi="http://www.w3.org/2001/XInclude"
>        xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
> xmlns:xs="http://www.w3.org/2001/XMLSchema"
>        xmlns:widget="http://orbeon.org/oxf/xml/widget"
> xmlns:ev="http://www.w3.org/2001/xml-events"
>        xmlns:xdt="http://www.w3.org/2005/xpath-datatypes"
> xmlns:xbl="http://www.w3.org/ns/xbl"
>        xmlns:fr="http://orbeon.org/oxf/xml/form-runner" lang="en">
>        <xhtml:head>
>                <xhtml:meta http-equiv="Content-Type" content="text/html;
> charset=iso-8859-1"/>
>                <xforms:model id="main-model">
>                        <xforms:instance id="data-instance">
>                                <data>
>                        <comments2/>
>                    <comments1/>
>                    <ticketno/>
>                                </data>
>                        </xforms:instance>
>                </xforms:model>
>        </xhtml:head>
>        <xhtml:body>
>                        <widget:xforms-instance-inspector
> xmlns:widget="http://orbeon.org/oxf/xml/widget"/>
>                        Comments2:
>                                                <xforms:textarea ref="comments2" id="comments2" incremental="true"
>                                                        mediatype="text/html">
>                                                        <xforms:alert/>
>                                                </xforms:textarea>
>                        <xhtml:br/>
>                                        Comments1:<xhtml:br/>
>                                                <xforms:textarea ref="comments1" id="comments1" incremental="true"
>                                                        mediatype="text/html">
>                                                        <xforms:alert/>
>                                                </xforms:textarea>
>                        Ticket No: <xforms:input id="ticketno"
> ref="ticketno"
>                                                                incremental="true" class="input"/> - <xforms:input id="insuredname"
>                                                                ref="insuredname" incremental="true" class="input"/>
>        </xhtml:body>
> </xhtml:html>
> --
> View this message in context: http://n4.nabble.com/Bug-found-two-textareas-on-one-page-both-with-mediatype-text-html-tp1559722p1559722.html
> Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.com.
>
>
> --
> 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