Hello,
I have a problem with xforms:submission. The example is like that:
page-flow.xml
<config xmlns="http://www.orbeon.com/oxf/controller">
<page path-info="/treebug/bug" view="view.xpl"/>
<page path-info="/treebug/" view="view.xhtml"/> <epilogue url="oxf:/config/epilogue.xpl"/> </config> view.xpl
<?xml version="1.0" encoding="UTF-8"?>
<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline" xmlns:oxf="http://www.orbeon.com/oxf/processors" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xslt="http://www.orbeon.com/oxf/processors"> <p:param name="instance" type="input"/> <p:param name="data" type="output"/> <p:processor name="oxf:identity"> <p:input name="data" href="#instance"/> <p:output name="data" ref="data"/> </p:processor> </p:config> view.xhtml
<?xml version="1.0" encoding="UTF-8"?>
<xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xxforms="http://orbeonorg/oxf/xml/xforms" xmlns:xbl="http://www.w3.org/ns/xbl" xmlns:f="http://orbeon.org/oxf/xml/formatting" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:widget="http://orbeonorg/oxf/xml/widget" xmlns="http://www.w3.org/1999/xhtml" xmlns:justep="http://www.justep.com/x5#" xmlns:ajx="http://www.ajaxforms.net/2006/ajx" xmlns:ns="http://www.justep.com/x5#">
<xhtml:head id="head"> <xforms:model> <xforms:instance id="action-result"> <form xmlns=""></form> </xforms:instance> <xforms:instance id="Community"> <rdf:RDF xmlns="" > <ns:SCM_Community rdf:id="http://www.justep.com/x5#SCM_Community:5"> <ns:name >coummunity 5</ns:name> </ns:SCM_Community> </rdf:RDF> </xforms:instance> <xforms:instance id="noCommunity"> <rdf:RDF xmlns="" > <ns:SCM_Community id="http://www.justep.com/x5#SCM_Community:5"> <ns:name>coummunity 5</ns:name> </ns:SCM_Community> </rdf:RDF> </xforms:instance> <xforms:submission id="purview-dialog-submission" ref="instance('Community')/ns:SCM_Community" replace="instance" instance="action-result" method="post" action="/treebug/bug"> <xforms:action ev:event="xforms-submit-done"> <xxforms:script>alert('ok');</xxforms:script> </xforms:action> <xforms:action ev:event="xforms-submit-error"> <xxforms:script>alert('error');</xxforms:script> </xforms:action> </xforms:submission> <xforms:submission id="no" ref="instance('noCommunity')/ns:SCM_Community" replace="instance" instance="action-result" method="post" action="/treebug/bug"> <xforms:action ev:event="xforms-submit-done"> <xxforms:script>alert('ok');</xxforms:script> </xforms:action> <xforms:action ev:event="xforms-submit-error"> <xxforms:script>alert('error');</xxforms:script> </xforms:action> </xforms:submission> </xforms:model> </xhtml:head> <xhtml:body> <xforms:trigger> <xforms:label>has rdf:id</xforms:label> <xforms:action ev:event="DOMActivate"> <xforms:send submission="purview-dialog-submission"/> </xforms:action> </xforms:trigger> <xforms:trigger> <xforms:label>hasn't rdf:id</xforms:label> <xforms:action ev:event="DOMActivate"> <xforms:send submission="no"/> </xforms:action> </xforms:trigger> </xhtml:body> </xhtml:html> trigger 'has rdf:id' is error! but trigger 'has not rdf:id' is right. where is that error?
网 易 有 道 词 典 -- 全 球 最 强 大 的 免 费 英 汉 互 译 词 典 ( 只 有 2 兆 ) -- 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 page-flow.xml (1K) Download Attachment view.xhtml (3K) Download Attachment view.xpl (1K) Download Attachment |
Free forum by Nabble | Edit this page |