Exception in client-side code.- Message: Result of expression 'this._getDoc().body' [undefined] is not an object.
This happens when I insert a new element, that causes the repeat that the textarea is in to reprocess itself. even when the textarea is not going to be shown because it doesn't match a group ref.
whenever I insert a viewType to the instance I get the exception.
<xforms:repeat nodeset="instance('view')//viewType">
<xxforms:variable name="currentNodeSet" select="@nodeSet"/>
<xxforms:variable name="currentViewType" select="."/>
<xxforms:variable name="currentType" select="instance('types')/types/type[name() = $current]"/>
<!-- Check and make sure that we have everything we need before trying to render anything -->
<xforms:group ref=".[not(@type = '') and exists(@type) and not(@nodeSet = '') and exists(@nodeSet)]">
<xforms:group ref=".[@type = 'contentdata']">
...
<xforms:group ref=".[$style = 'edit']">
<xforms:group ref=".[$currentType/@contentType = 'html']">
<xforms:textarea ref="instance('data')/query/*/*[name() = $currentNodeSet]" class="textarea" style="width: 100%; height: 400px;" mediatype="text/html">
<xforms:hint ref="$currentType/hint"/>
<xforms:alert ref="$currentType/alert"/>
</xforms:textarea>
</xforms:group>
<xforms:group ref=".[$currentType/@contentType = 'xs:string']">
<xforms:textarea ref="instance('data')/query/*/*[name() = $currentNodeSet]" class="textarea" style="width: 100%; height: 400px;">
<xforms:hint ref="$currentType/hint"/>
<xforms:alert ref="$currentType/alert"/>
</xforms:textarea>
</xforms:group>
</xforms:group>
...
</xforms:group>
</xforms:group>
</xforms:repeat>
--
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