textarea behaving inconsistently

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

textarea behaving inconsistently

SD
This post was updated on .
Hi,

I have an instance (custom-fields) that is populated with value 'xxxxx...' on click of button A and with value 'yyyyy....' on click of button B. Both the values 'xxxxx...' and 'yyyyy...' are html.

This instance is referenced by 2 <xforms:textarea> as follows

<!-- lets call this textarea 1 -->
<xforms:textarea mediatype="text/html" ref="instance('custom- fields')" > 
     <xforms:label>Specify the header information on the form</xforms:label>
</xforms:textarea> 

<!-- lets call this textarea 2 -->
<xforms:textarea ref="instance('custom-fields')" xxforms:cols="50" xxforms:rows="20">
        <xforms:label>HTML</xforms:label>
</xforms:textarea>

The only difference is the mediatype attribute on the first text area.

The behavior that I'm observing

On click of Button A, textarea 1 and 2 are loaded fine and both point to content 'xxxxx...'
On click of button B, textarea 1 points to the old content ('xxxxx...')while textarea 2 points to the new content ('yyyyy...')

I'm totally lost on this. Can anyone help me on this (please find the snapshot textarea inconsistency.jpg attached).

regards
--SD
Reply | Threaded
Open this post in threaded view
|

Re: textarea behaving inconsistently

Alessandro  Vernet
Administrator
Hi SD,

From what you describe, It seems that the first time the RTE (HTML text area) receives an update, it updates fine, but the update doesn't happen the second time. I am not aware of a problem like this. Would you be able to attach a simple example that does what you described, and that we could use to reproduce this?

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet