Skip to content

Instantly share code, notes, and snippets.

@ebruchez
Created August 18, 2010 01:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ebruchez/533026 to your computer and use it in GitHub Desktop.
Save ebruchez/533026 to your computer and use it in GitHub Desktop.
[ #315263 ] Regression: RTE doesn't initially appear readonly when needed
<html xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xforms="http://www.w3.org/2002/xforms"
xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns="http://www.w3.org/1999/xhtml">
<head>
<xforms:model id="main-model" xxforms:xhtml-layout="nospan">
<xforms:instance id="control">
<instance xmlns="">
<text>Hello, world!</text>
<readonly>true</readonly>
</instance>
</xforms:instance>
<xforms:bind nodeset="instance()/text" readonly="../readonly = 'true'"/>
<xforms:bind nodeset="instance()/readonly" type="xs:boolean"/>
</xforms:model>
</head>
<body>
<xforms:textarea ref="text" mediatype="text/html"/>
<xforms:input ref="readonly"/>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment