Hi,
We are currently using Orbeon Forms 3.8.0.201012070338 PE as a filter along with a custom WAR file which will retrieve the form from a file and push it through Orbeon before sending it to the browser. Both the Orbeon war file and custom WAR file are deployed in the same Tomcat 6 instance and crossContext has been enabled. The template contains, among other things, a HTML text area and a custom component which includes a HTML text area along with the spell-check component. When running the form in IE 8, we have been noticing that sometimes the HTML text area control does not fully load. Instead of either the YUI control or FCK control, the page is loaded with a text area containing the value, complete with markup, of the field. Also, once the page has been loaded, we are getting javascript errors like the following whenever we change focus of any of the controls on the page: Message: 'undefined' is null or not an object Line: 140 Char: 89165 Code: 0 URI: http://10.64.33.136/eforms-viewer/orbeon-viewer/xforms-server/xforms-yuirte-dialog-yuicalendar-min.js This has been occurring 1 out of 20 times. I was wondering if anyone else has experienced this before and what they have done to fix it. Any information about this would be welcome. Please see below the template, the source to the custom control and the extract from the custom WAR file's web.xml. Regards, Leon P.S. Apologies for any formatting issues with the below files. ------- template <?xml version="1.0" encoding="UTF-8"?><xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:exforms="http://www.exforms.org/exf/1-0" xmlns:fr="http://orbeon.org/oxf/xml/form-runner" xmlns:im="http://www.infomedix.com.au/cpf/forms" xmlns:saxon="http://saxon.sf.net/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sql="http://orbeon.org/oxf/xml/sql" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"> <xhtml:head> <xhtml:title>Untitled Form</xhtml:title> <xforms:model id="fr-form-model" xxforms:readonly-appearance="static"> <xforms:instance id="fr-form-instance" src="loadDocument?documentTxnId=2010121516&documentIntId=2010121510"> <form> <section-1> <control-1/> <control-2/> <control-3/> <control-4/> <control-5/> </section-1> </form> </xforms:instance> <xforms:bind id="fr-form-binds" nodeset="instance('fr-form-instance')"> <xforms:bind id="section-1-bind" nodeset="section-1"> <xforms:bind id="control-1-bind" name="control-1" nodeset="control-1" required="true()" type="xs:string"/> <xforms:bind id="control-2-bind" name="control-2" nodeset="control-2"/> <xforms:bind id="control-3-bind" name="control-3" nodeset="control-3"/> <xforms:bind id="control-4-bind" name="control-4" nodeset="control-4" type="xforms:date"/> <xforms:bind id="control-5-bind" name="control-5" nodeset="control-5" type="xforms:string"/> </xforms:bind> </xforms:bind> <xforms:instance id="fr-form-metadata" xxforms:readonly="true"> <metadata> <application-name>CPF</application-name> <form-name>tidDavesTest</form-name> <title xml:lang="en">Untitled Form</title> <description xml:lang="en"/> <author/> <logo filename="" mediatype="" size=""/> <im:version>8</im:version> </metadata> </xforms:instance> <xforms:instance id="fr-form-attachments"> <attachments> <css filename="" mediatype="text/css" size=""/> <pdf filename="" mediatype="application/pdf" size=""/> </attachments> </xforms:instance> <xforms:instance id="fr-form-resources"> <resources> <resource xml:lang="en"> <section-1> <label>Untitled Section</label> <help/> </section-1> <control-1> <label/> <hint/> <help/> <alert>test</alert> </control-1> <control-2> <label>Testing without a value:</label> <hint/> <help/> <alert/> <item> <label>version1</label> <value/> </item> </control-2> <control-3> <label>testing HTML IMTEST-1799:</label> <hint/> <help/> <alert/> </control-3> <control-4> <label>test 2</label> <hint/> <help/> <alert/> </control-4> <control-5> <label>HTML with Spell Check IMTEST-1799</label> <hint/> <help/> <alert/> </control-5> </resource> </resources> </xforms:instance> <xforms:instance id="fr-service-request-instance" xxforms:exclude-result-prefixes="#all"> <request/> </xforms:instance> <xforms:instance id="fr-service-response-instance" xxforms:exclude-result-prefixes="#all"> <response/> </xforms:instance> <xf:bind xmlns:xf="http://www.w3.org/2002/xforms" xmlns:html="http://www.w3.org/1999/xhtml" nodeset="/" readonly="true()"/></xforms:model> <xhtml:link xmlns:xf="http://www.w3.org/2002/xforms" href="stylesheets/udr-xforms.css" rel="stylesheet" type="text/css"/></xhtml:head> <xhtml:body><h1 xmlns:xf="http://www.w3.org/2002/xforms">Dave</h1><div xmlns:xf="http://www.w3.org/2002/xforms" class="view"> <xforms:label ref="instance('fr-form-metadata')/title"/> <xforms:group bind="section-1-bind" class="section" id="section-1-section"> <xforms:label ref="instance('fr-form-resources')/resource/section-1/label"/> <xforms:help ref="instance('fr-form-resources')/resource/section-1/help"/> <xhtml:table cellspacing="4px" class="grid grid2"> <xhtml:tr> <xhtml:td> <xforms:output xmlns:html="http://www.w3.org/1999/xhtml" bind="control-1-bind" id="control-1-control"> <xforms:label ref="instance('fr-form-resources')/resource/control-1/label"/> <xforms:hint ref="instance('fr-form-resources')/resource/control-1/hint"/> <xforms:help ref="instance('fr-form-resources')/resource/control-1/help"/> <xforms:alert ref="instance('fr-form-resources')/resource/control-1/alert"/> </xforms:output> </xhtml:td> <xhtml:td> <xforms:select1 xmlns:fb="http://orbeon.org/oxf/xml/form-builder" xmlns:pipeline="java:org.orbeon.oxf.processor.pipeline.PipelineFunctionLibrary" xmlns:xbl="http://www.w3.org/ns/xbl" appearance="full" bind="control-2-bind" id="control-2-control"> <xforms:label ref="instance('fr-form-resources')/resource/control-2/label"/> <xforms:hint ref="instance('fr-form-resources')/resource/control-2/hint"/> <xforms:help ref="instance('fr-form-resources')/resource/control-2/help"/> <xforms:alert ref="/detail/labels/alert"/> <xforms:itemset ref="instance('fr-form-resources')/resource/control-2/item"> <xforms:label ref="label"/> <xforms:value ref="value"/> </xforms:itemset> </xforms:select1> </xhtml:td> </xhtml:tr> <xhtml:tr> <xhtml:td> <xforms:textarea xmlns:fb="http://orbeon.org/oxf/xml/form-builder" xmlns:pipeline="java:org.orbeon.oxf.processor.pipeline.PipelineFunctionLibrary" xmlns:xbl="http://www.w3.org/ns/xbl" bind="control-3-bind" id="control-3-control" mediatype="text/html"> <xforms:label ref="instance('fr-form-resources')/resource/control-3/label"/> <xforms:hint ref="instance('fr-form-resources')/resource/control-3/hint"/> <xforms:help ref="instance('fr-form-resources')/resource/control-3/help"/> <xforms:alert ref="/detail/labels/alert"/> </xforms:textarea> </xhtml:td> <xhtml:td> <xforms:output xmlns:html="http://www.w3.org/1999/xhtml" bind="control-4-bind" id="control-4-control"> <xforms:label xmlns:fb="http://orbeon.org/oxf/xml/form-builder" xmlns:pipeline="java:org.orbeon.oxf.processor.pipeline.PipelineFunctionLibrary" xmlns:xbl="http://www.w3.org/ns/xbl" ref="instance('fr-form-resources')/resource/control-4/label"/> <xforms:hint xmlns:fb="http://orbeon.org/oxf/xml/form-builder" xmlns:pipeline="java:org.orbeon.oxf.processor.pipeline.PipelineFunctionLibrary" xmlns:xbl="http://www.w3.org/ns/xbl" ref="instance('fr-form-resources')/resource/control-4/hint"/> <xforms:help xmlns:fb="http://orbeon.org/oxf/xml/form-builder" xmlns:pipeline="java:org.orbeon.oxf.processor.pipeline.PipelineFunctionLibrary" xmlns:xbl="http://www.w3.org/ns/xbl" ref="instance('fr-form-resources')/resource/control-4/help"/> <xforms:alert xmlns:fb="http://orbeon.org/oxf/xml/form-builder" xmlns:pipeline="java:org.orbeon.oxf.processor.pipeline.PipelineFunctionLibrary" xmlns:xbl="http://www.w3.org/ns/xbl" ref="/detail/labels/alert"/> </xforms:output> </xhtml:td> </xhtml:tr> <xhtml:tr> <xhtml:td> <fr:im-spellcheckable-htmlarea xmlns:fb="http://orbeon.org/oxf/xml/form-builder" xmlns:pipeline="java:org.orbeon.oxf.processor.pipeline.PipelineFunctionLibrary" xmlns:xbl="http://www.w3.org/ns/xbl" xmlns:xxbl="http://orbeon.org/oxf/xml/xbl" bind="control-5-bind" id="control-5-control"> <xforms:label ref="instance('fr-form-resources')/resource/control-5/label"/> <xforms:hint ref="instance('fr-form-resources')/resource/control-5/hint"/> <xforms:help ref="instance('fr-form-resources')/resource/control-5/help"/> <xforms:alert ref="/detail/labels/alert"/> </fr:im-spellcheckable-htmlarea> </xhtml:td> <xhtml:td/> </xhtml:tr> </xhtml:table> </xforms:group> </div><div xmlns:html="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms" id="submissionPanel"><xf:trigger><xf:label>Print Preview</xf:label><xf:load ev:event="DOMActivate" resource="..//eforms-viewer/2010121510.xform?documentTxnId=2010121516&resultstemplate=print" show="replace"/></xf:trigger><xf:trigger><xf:label>Edit</xf:label><xf:load ev:event="DOMActivate" resource="..//eforms-viewer/2010121510.xform?documentTxnId=2010121516&resultstemplate=edit" show="replace"/></xf:trigger></div><br xmlns:html="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms"/></xhtml:body> </xhtml:html> -------- im-spellcheckable-htmlarea.xbl <xbl:xbl xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xxi="http://orbeon.org/oxf/xml/xinclude" xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" xmlns:exforms="http://www.exforms.org/exf/1-0" xmlns:fr="http://orbeon.org/oxf/xml/form-runner" xmlns:saxon="http://saxon.sf.net/" xmlns:im="http://www.infomedix.com.au/cpf/forms" xmlns:xbl="http://www.w3.org/ns/xbl" xmlns:xxbl="http://orbeon.org/oxf/xml/xbl"> <!-- SPELLCHECKABLE TEXT AREA This control is essentially a wrapper around a text area with the spell checker component included. --> <xbl:binding id="im-spellcheckable-htmlarea" element="fr|im-spellcheckable-htmlarea"> <metadata xmlns="http://orbeon.org/oxf/xml/form-builder"> <display-name lang="en">HTML Text with Spellcheck</display-name> <display-name lang="fr">HTML Text with Spellcheck</display-name> <icon lang="en"> <small-icon>/apps/fr/style/images/silk/html.png</small-icon> <large-icon>/apps/fr/style/images/silk/html.png</large-icon> </icon> <datatype>xforms:string</datatype> <template> <fr:im-spellcheckable-htmlarea id="" ref="" xmlns=""> <xforms:label ref=""/> <xforms:hint ref=""/> <xforms:help ref=""/> <xforms:alert ref="$fr-resources/detail/labels/alert"/> </fr:im-spellcheckable-htmlarea> </template> </metadata> <xbl:template> <xforms:model id="local-model"> <!-- Instance used to control various properties of the spell-checker control --> <xforms:instance id="spellcheck-control"> <spellcheck-control> <placeholder> <text>[ Spellcheck ]</text> </placeholder> <visable>true</visable> </spellcheck-control> </xforms:instance> <xforms:bind ref="instance('spellcheck-control')/visable" relevant=". = 'true'"/> <xforms:bind ref="instance('spellcheck-control')/placeholder" relevant="xxforms:instance('fr-parameters-instance')/mode = 'test'"/> </xforms:model> <!-- Outer group implementing the single-node binding --> <xforms:group xbl:attr="model context ref bind" xxbl:scope="outer"> <!-- Copy LHHA elements if any --> <xbl:content includes="xforms|label,xforms|help,xforms|hint,xforms|alert"/> <!-- Inner group --> <xforms:group id="component-group" xxbl:scope="inner" model="local-model"> <!-- Instance binding --> <xxforms:variable name="binding" as="node()?"> <xxforms:sequence select="." xxbl:scope="outer"/> </xxforms:variable> <xhtml:div style="width:100%"> <xhtml:div style="display:block"> <xforms:textarea ref="$binding" mediatype="text/html"/> </xhtml:div> <xforms:group ref="instance('spellcheck-control')/visable"> <xhtml:div style="display:block"> <!-- For some, unknown reason, the spell-check control is not displayed when the form is tested in the designer. So added some placeholder text which should only be displayed in test mode. --> <fr:spell-checker ref="$binding"/> <xforms:output ref="instance('spellcheck-control')/placeholder/text" xhtml:title="Spellchecker not available in test mode"/> </xhtml:div> </xforms:group> </xhtml:div> <xforms:action ev:event="xforms-enabled" ev:observer="component-group"> <xforms:setvalue ref="instance('spellcheck-control')/visable" value="'false'" if="exforms:readonly($binding)"/> </xforms:action> <xforms:setvalue ref="instance('spellcheck-control')/visable" value="'false'" ev:event="xforms-readonly"/> <xforms:setvalue ref="instance('spellcheck-control')/visable" value="'true'" ev:event="xforms-readwrite"/> </xforms:group> </xforms:group> </xbl:template> </xbl:binding> </xbl:xbl> -------- web.xml <filter> <filter-name>orbeon-xforms-filter</filter-name> <filter-class>org.orbeon.oxf.servlet.OrbeonXFormsFilter</filter-class> <init-param> <param-name>oxf.xforms.renderer.context</param-name> <param-value>/orbeon-viewer</param-value> </init-param> </filter> <filter-mapping> <filter-name>orbeon-xforms-filter</filter-name> <url-pattern>*.form</url-pattern> <dispatcher>REQUEST</dispatcher> <dispatcher>FORWARD</dispatcher> </filter-mapping> <filter-mapping> <filter-name>orbeon-xforms-filter</filter-name> <url-pattern>*.xform</url-pattern> <dispatcher>REQUEST</dispatcher> <dispatcher>FORWARD</dispatcher> </filter-mapping> <filter-mapping> <filter-name>orbeon-xforms-filter</filter-name> <url-pattern>/orbeon-viewer/*</url-pattern> <dispatcher>REQUEST</dispatcher> <dispatcher>FORWARD</dispatcher> </filter-mapping> -- 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 |
Free forum by Nabble | Edit this page |