<xforms:submission id="save-submission"
ref="instance('manualScript-instance')" f:url-type="resource" action="/exist/rest/db/orbeon/score-script/{{xxforms:instance('manualScript-instance')/st:name}}" method="put" replace="none"> I got this syntax in the action attribute from the sample apps. I figured the {{ }} construct would allow an xpath expression, that I would use to return the name of the object I want to save. And that would save each object under a different name. But it doesn't work, I get 2007-05-08 10:22:34,304 http-8080-2 DEBUG processor.XFormsServer null - XForms - opening URL connection for: http://localhost:8080/ops/exist/rest/db/orbeon/score-script/%7Bxxforms:instance('manualScript-instance')/st:name%7D and 2007-05-08 10:22:34,320 http-8080-2 ERROR processor.XFormsServer null - XForms - submission - xforms-submit-error throwable: org.orbeon.oxf.common.OXFException: Error code received when submitting instance: 500 at org.orbeon.oxf.xforms.XFormsModelSubmission.performDefaultAction(XFormsModelSubmission.java:799) at org.orbeon.oxf.xforms.XFormsContainingDocument.dispatchEvent(XFormsContainingDocument.java:920) at org.orbeon.oxf.xforms.control.controls.XFormsSubmitControl.performDefaultAction(XFormsSubmitControl.java:48) ... in my logs. The substitution doesn't seem to be happening, anyone know how to do this properly? THanks, Jeff |
Administrator
|
Jeff,
Using double brackets "...{{...}}..." is only necessary if your document is first processed by XSLT. If it is not, just use single brackets "...{...}...". -Erik weissjeffm wrote: > <xforms:submission id="save-submission" > ref="instance('manualScript-instance')" f:url-type="resource" > > action="/exist/rest/db/orbeon/score-script/{{xxforms:instance('manualScript-instance')/st:name}}" > method="put" replace="none"> > > I got this syntax in the action attribute from the sample apps. I figured > the {{ }} construct would allow an xpath expression, that I would use to > return the name of the object I want to save. > > And that would save each object under a different name. > > But it doesn't work, I get > 2007-05-08 10:22:34,304 http-8080-2 DEBUG processor.XFormsServer null - > XForms - opening URL connection for: > http://localhost:8080/ops/exist/rest/db/orbeon/score-script/%7Bxxforms:instance('manualScript-instance')/st:name%7D > > and > > 2007-05-08 10:22:34,320 http-8080-2 ERROR processor.XFormsServer null - > XForms - submission - xforms-submit-error throwable: > org.orbeon.oxf.common.OXFException: Error code received when submitting > instance: 500 > at > org.orbeon.oxf.xforms.XFormsModelSubmission.performDefaultAction(XFormsModelSubmission.java:799) > at > org.orbeon.oxf.xforms.XFormsContainingDocument.dispatchEvent(XFormsContainingDocument.java:920) > at > org.orbeon.oxf.xforms.control.controls.XFormsSubmitControl.performDefaultAction(XFormsSubmitControl.java:48) > ... > > in my logs. The substitution doesn't seem to be happening, anyone know how > to do this properly? > > THanks, > > Jeff > -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |