Hi,
ich tried to experiment with XPLs ones more. Ich have an document-instance on my page and a simple trigger, to call a xpl-file. Inside the xpl i just use the identity processor to output the input as it is. Just to mention it, i tried the xslt-processor too, just to get my input through the pipeline to the output. But when i call the trigger, the xpl seems to load an i got the following error-message. Nowhere in my page or xpl i used the yui or any date-field. So i'm getting a bit confused with that error :-( Any suggestions? Exception in client-side code. * Message: C has no properties * File: http://unrz231vm.rrze.uni-erlangen.de:8085/kkbib/xforms-server/xforms-htmlarea-dialog-yuicalendar-min.js * Line number: 303 BTW: I tried also not to use a normal submission but something like that: <xforms:trigger id="xpl_test"> <xforms:label>Test-Call</xforms:label> <xforms:action ev:event="DOMActivate"> <xforms:setvalue ref="xxforms:instance('document-instance')" value="xxforms:call-xpl(('oxf:/apps/admin/forms/test_new.xpl'),('instance'),(xxforms:instance('document-instance')/*),('data'))"/> </xforms:action> </xforms:trigger> But when i pull that trigger, nothing happens! Am i doing something wrnong hiere? Thanks a lot, best regards, Marcus -- 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 |
Administrator
|
> Exception in client-side code.
> > * Message: C has no properties > * File: > http://unrz231vm.rrze.uni-erlangen.de:8085/kkbib/xforms-server/xforms-htmlarea-dialog-yuicalendar-min.js > * Line number: 303 Set the following properties in RESOURCES/config/properties-local.xml (with a recent nightly): <property as="xs:boolean" name="oxf.xforms.minimal- resources" value="false"/> <property as="xs:boolean" name="oxf.xforms.combine- resources" value="false"/> Then restart Tomcat. You should get a better JavaScript exception. Even better, use Firebug's JS debugger to figure out exactly where the error occurred. > BTW: > I tried also not to use a normal submission but something like that: > > <xforms:trigger id="xpl_test"> > <xforms:label>Test-Call</xforms:label> > <xforms:action ev:event="DOMActivate"> > <xforms:setvalue > ref="xxforms:instance('document-instance')" > value="xxforms:call-xpl(('oxf:/apps/ > admin/forms/test_new.xpl'),('instance'),(xxforms:instance('document- > instance')/*),('data'))"/> > </xforms:action> > </xforms:trigger> > > But when i pull that trigger, nothing happens! > Am i doing something wrnong hiere? Seems that the above should do something. Enable XForms logging: http://www.orbeon.com/ops/doc/reference-xforms-2#xforms-logging then check what operations occur when you press the trigger. Note that xforms:setvalue will just copy the string value of the resulting document. Use xforms:insert to actually insert an XML tree. -Erik -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.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 |
Hi Erik,
i updated to a newly nightly build (todays source) made the changes in properties, but still nearly the same error: Exception in client-side code. * Message: element is undefined * File: http://localhost:8085/kkbib/ops/javascript/xforms.js * Line number: 431 So, I'm still having the same problem without coming any further here :-( Erik Bruchez schrieb: >> Exception in client-side code. >> >> * Message: C has no properties >> * File: >> >> http://unrz231vm.rrze.uni-erlangen.de:8085/kkbib/xforms-server/xforms-htmlarea-dialog-yuicalendar-min.js >> >> * Line number: 303 > > Set the following properties in RESOURCES/config/properties-local.xml > (with a recent nightly): > > <property as="xs:boolean" > name="oxf.xforms.minimal-resources" value="false"/> > <property as="xs:boolean" > name="oxf.xforms.combine-resources" value="false"/> > > Then restart Tomcat. You should get a better JavaScript exception. > Even better, use Firebug's JS debugger to figure out exactly where the > error occurred. >> I tried also not to use a normal submission but something like that: >> >> <xforms:trigger id="xpl_test"> >> <xforms:label>Test-Call</xforms:label> >> <xforms:action ev:event="DOMActivate"> >> <xforms:setvalue >> ref="xxforms:instance('document-instance')" >> >> value="xxforms:call-xpl(('oxf:/apps/admin/forms/test_new.xpl'),('instance'),(xxforms:instance('document-instance')/*),('data'))"/> >> >> </xforms:action> >> </xforms:trigger> >> >> But when i pull that trigger, nothing happens! >> Am i doing something wrnong hiere? > BTW: > Seems that the above should do something. Enable XForms logging: > http://www.orbeon.com/ops/doc/reference-xforms-2#xforms-logging > > then check what operations occur when you press the trigger. > > Note that xforms:setvalue will just copy the string value of the > resulting document. Use xforms:insert to actually insert an XML tree. <xforms:setvalue ref="xxforms:instance('parameters-instance')" /> <xforms:insert context="xxforms:instance('document-instance')/form" nodeset="form" origin="xxforms:call-xpl('oxf:/apps/admin/forms/save_SYN_new.xpl',('data'),(xxforms:instance('document-instance'))/*,('data'))/*"/> </xforms:action> Until i can't get the new submissions to work, i have to try to do it this way! I need those XPLs to load new docs and to save them, because we are having many troubles using the direct Rest-Submissions! From time to time when we save a new doc our hole directory we try to store in is deleted! We don't know why this happens, but just to be sure i'd like to change vom Rest to XPL for Loading and Storing data. Regards, Marcus -- 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 |
Administrator
|
Is there a way to reproduce this in the sandbox?
-Erik On Dec 4, 2008, at 5:18 PM, Marcus wrote: > Hi Erik, > > i updated to a newly nightly build (todays source) made the changes > in properties, but still nearly the same error: > > Exception in client-side code. > > * Message: element is undefined > * File: http://localhost:8085/kkbib/ops/javascript/xforms.js > * Line number: 431 > > So, I'm still having the same problem without coming any further > here :-( > > Erik Bruchez schrieb: >>> Exception in client-side code. >>> >>> * Message: C has no properties >>> * File: >>> http://unrz231vm.rrze.uni-erlangen.de:8085/kkbib/xforms-server/xforms-htmlarea-dialog-yuicalendar-min.js >>> * Line number: 303 >> >> Set the following properties in RESOURCES/config/properties- >> local.xml (with a recent nightly): >> >> <property as="xs:boolean" name="oxf.xforms.minimal- >> resources" value="false"/> >> <property as="xs:boolean" name="oxf.xforms.combine- >> resources" value="false"/> >> >> Then restart Tomcat. You should get a better JavaScript exception. >> Even better, use Firebug's JS debugger to figure out exactly where >> the error occurred. > Firebug did not tell my anything special about this, but just gave > me the same line inside the xforms.js >>> I tried also not to use a normal submission but something like that: >>> >>> <xforms:trigger id="xpl_test"> >>> <xforms:label>Test-Call</xforms:label> >>> <xforms:action ev:event="DOMActivate"> >>> <xforms:setvalue >>> ref="xxforms:instance('document-instance')" >>> value="xxforms:call-xpl(('oxf:/ >>> apps/admin/forms/test_new.xpl'),('instance'), >>> (xxforms:instance('document-instance')/*),('data'))"/> >>> </xforms:action> >>> </xforms:trigger> >>> >>> But when i pull that trigger, nothing happens! >>> Am i doing something wrnong hiere? >> BTW: >> Seems that the above should do something. Enable XForms logging: >> http://www.orbeon.com/ops/doc/reference-xforms-2#xforms-logging >> >> then check what operations occur when you press the trigger. >> >> Note that xforms:setvalue will just copy the string value of the >> resulting document. Use xforms:insert to actually insert an XML tree. > Right, i changed that to the following and will try to come forward > here: > <xforms:action ev:event="DOMActivate"> > <xforms:setvalue ref="xxforms:instance('parameters-instance')" /> > <xforms:insert context="xxforms:instance('document-instance')/ > form" nodeset="form" origin="xxforms:call-xpl('oxf:/apps/admin/forms/ > save_SYN_new.xpl',('data'),(xxforms:instance('document-instance'))/*, > ('data'))/*"/> > </xforms:action> > > Until i can't get the new submissions to work, i have to try to do > it this way! I need those XPLs to load new docs and to save them, > because we are having many troubles using the direct Rest- > Submissions! From time to time when we save a new doc our hole > directory we try to store in is deleted! We don't know why this > happens, but just to be sure i'd like to change vom Rest to XPL for > Loading and Storing data. > > Regards, Marcus > > -- > 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 Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.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 |
Hi Erik,
to be honest, i don't know how to do this. My webapp is kind of complex and i made some changes to the themes. I can try, but i don't know that will work in a sandbox. I can give you the url to my webapp and try to get the logfile available over the net too. I'll keep in touch as long as you don't have any other suggestions. Regards, Marcus Erik Bruchez schrieb: > Is there a way to reproduce this in the sandbox? > > -Erik > > On Dec 4, 2008, at 5:18 PM, Marcus wrote: > >> Hi Erik, >> >> i updated to a newly nightly build (todays source) made the changes >> in properties, but still nearly the same error: >> >> Exception in client-side code. >> >> * Message: element is undefined >> * File: http://localhost:8085/kkbib/ops/javascript/xforms.js >> * Line number: 431 >> >> So, I'm still having the same problem without coming any further here >> :-( >> >> Erik Bruchez schrieb: >>>> Exception in client-side code. >>>> >>>> * Message: C has no properties >>>> * File: >>>> >>>> http://unrz231vm.rrze.uni-erlangen.de:8085/kkbib/xforms-server/xforms-htmlarea-dialog-yuicalendar-min.js >>>> >>>> * Line number: 303 >>> >>> Set the following properties in >>> RESOURCES/config/properties-local.xml (with a recent nightly): >>> >>> <property as="xs:boolean" >>> name="oxf.xforms.minimal-resources" value="false"/> >>> <property as="xs:boolean" >>> name="oxf.xforms.combine-resources" value="false"/> >>> >>> Then restart Tomcat. You should get a better JavaScript exception. >>> Even better, use Firebug's JS debugger to figure out exactly where >>> the error occurred. >> Firebug did not tell my anything special about this, but just gave me >> the same line inside the xforms.js >>>> I tried also not to use a normal submission but something like that: >>>> >>>> <xforms:trigger id="xpl_test"> >>>> <xforms:label>Test-Call</xforms:label> >>>> <xforms:action ev:event="DOMActivate"> >>>> <xforms:setvalue >>>> ref="xxforms:instance('document-instance')" >>>> >>>> value="xxforms:call-xpl(('oxf:/apps/admin/forms/test_new.xpl'),('instance'),(xxforms:instance('document-instance')/*),('data'))"/> >>>> >>>> </xforms:action> >>>> </xforms:trigger> >>>> >>>> But when i pull that trigger, nothing happens! >>>> Am i doing something wrnong hiere? >>> BTW: >>> Seems that the above should do something. Enable XForms logging: >>> http://www.orbeon.com/ops/doc/reference-xforms-2#xforms-logging >>> >>> then check what operations occur when you press the trigger. >>> >>> Note that xforms:setvalue will just copy the string value of the >>> resulting document. Use xforms:insert to actually insert an XML tree. >> Right, i changed that to the following and will try to come forward >> here: >> <xforms:action ev:event="DOMActivate"> >> <xforms:setvalue ref="xxforms:instance('parameters-instance')" /> >> <xforms:insert >> context="xxforms:instance('document-instance')/form" nodeset="form" >> origin="xxforms:call-xpl('oxf:/apps/admin/forms/save_SYN_new.xpl',('data'),(xxforms:instance('document-instance'))/*,('data'))/*"/> >> >> </xforms:action> >> >> Until i can't get the new submissions to work, i have to try to do it >> this way! I need those XPLs to load new docs and to save them, >> because we are having many troubles using the direct >> Rest-Submissions! From time to time when we save a new doc our hole >> directory we try to store in is deleted! We don't know why this >> happens, but just to be sure i'd like to change vom Rest to XPL for >> Loading and Storing data. >> >> Regards, Marcus >> >> -- >> 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 > > -- > Orbeon Forms - Web Forms for the Enterprise Done the Right Way > http://www.orbeon.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 |
Free forum by Nabble | Edit this page |