Login  Register

Error when using xforms:action with xforms:setValue

Posted by Stephanie Hall (TT) on Nov 10, 2009; 10:24pm
URL: https://discuss.orbeon.com/Error-when-using-xforms-action-with-xforms-setValue-tp585594.html

Hi,

 

I keep running into errors when trying to run the following code:

 

<xforms:action ev:event="xforms-ready">

      <xforms:setValue ref="instance('categories-instance')/categories"

            value="xxforms:call-xpl('http://localhost:8080/forms/categories.xpl', instance('categories-instance'),'formatted-output')/*, 'output')"/>

</xforms:action>

 

The exact error I get each time is: Invalid action: {http://www.w3.org/2002/xforms}setValue.  My purpose here is try to populate an instance using a pipeline, but I don’t think it’s even getting there. Can anyone tell me what I am doing wrong to cause this error?   It would probably be better if the error message told me what I was doing wrong, because I’ve seen people use xforms:action with setValue in some of the archives with no errors.

 

More detail, from the logs:

 

009-11-10 16:18:51,910 ERROR ProcessorService  - Exception at line 24 of oxf:/config/xforms-widgets.xsl (running XForms action: action name='{http://www.w3.org/2002/xforms}setValue')

org.orbeon.oxf.common.ValidationException: line 24 of oxf:/config/xforms-widgets.xsl (running XForms action: action name='{http://www.w3.org/2002/xforms}setValue'): Invalid action: {http://www.w3.org/2002/xforms}setValue

oxf:/config/xforms-widgets.xsl, line 24, column -1: Invalid action: {http://www.w3.org/2002/xforms}setValue

                at org.orbeon.oxf.xforms.action.XFormsActionInterpreter.runAction(XFormsActionInterpreter.java:166)

                at org.orbeon.oxf.xforms.action.actions.XFormsActionAction.execute(XFormsActionAction.java:62)

                at org.orbeon.oxf.xforms.action.XFormsActionInterpreter.runSingleIteration(XFormsActionInterpreter.java:286)

                at org.orbeon.oxf.xforms.action.XFormsActionInterpreter.runAction(XFormsActionInterpreter.java:246)

                at org.orbeon.oxf.xforms.event.XFormsEventHandlerImpl.handleEvent(XFormsEventHandlerImpl.java:153)

                at org.orbeon.oxf.xforms.xbl.XBLContainer.dispatchEvent(XBLContainer.java:878)

                at org.orbeon.oxf.xforms.XFormsContainingDocument.dispatchEvent(XFormsContainingDocument.java:999)

                at org.orbeon.oxf.xforms.xbl.XBLContainer.initializeModels(XBLContainer.java:289)

                at org.orbeon.oxf.xforms.xbl.XBLContainer.initializeModels(XBLContainer.java:267)

                at org.orbeon.oxf.xforms.XFormsContainingDocument.initialize(XFormsContainingDocument.java:1414)

                at org.orbeon.oxf.xforms.XFormsContainingDocument.<init>(XFormsContainingDocument.java:179)

                at org.orbeon.oxf.xforms.processor.XFormsToXHTML.createCacheContainingDocument(XFormsToXHTML.java:325)

 

Thanks!

Stephanie



--
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