cannot submit a form with a missing/empty action attribute for the submission element

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

cannot submit a form with a missing/empty action attribute for the submission element

Jean Luc-2
Hi [Erik],

I'm using Orbeon (3.6.0.200712061930) deployed as a separate WAR. I'm using a simple form in whose <submission> element I don't want to specify the action attribute - the submission would happen at the same URL. The attribute is optional as per the XForms spec.

However, I get the following errors. Please advise.

Thanks,
JL


With an empty value for the action attribute:

<xf:submission id="form-submit" action="" method="post" omit-xml-declaration="true" indent="true"/>


Exception Class java.lang.IllegalArgumentException
Message path must begin with a "/"
Servlet Stack Trace
(96 method calls)  Class Name Method Name File Name Line Number
com.evermind.server.http.HttpApplication getRequestDispatcher HttpApplication.java 1668
org.orbeon.oxf.servlet.ServletExternalContext getRequestDispatcher ServletExternalContext.java 857
org.orbeon.oxf.xforms.XFormsSubmissionUtils doOptimized XFormsSubmissionUtils.java 92
org.orbeon.oxf.xforms.XFormsModelSubmission performDefaultAction XFormsModelSubmission.java 686
org.orbeon.oxf.xforms.XFormsContainingDocument dispatchEvent XFormsContainingDocument.java 980
org.orbeon.oxf.xforms.XFormsContainingDocument executeExternalEvent XFormsContainingDocument.java 809
org.orbeon.oxf.xforms.processor.XFormsServer executeExternalEventPrepareIfNecessary XFormsServer.java 283
org.orbeon.oxf.xforms.processor.XFormsServer doIt XFormsServer.java 223
org.orbeon.oxf.xforms.processor.XFormsServer start XFormsServer.java 84
org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run PipelineProcessor.java 650
 


org.orbeon.oxf.xforms.XFormsModelSubmission$XFormsSubmissionException 
Exception Class org.orbeon.oxf.xforms.XFormsModelSubmission$XFormsSubmissionException
Message Error while processing xforms:submission
Resource URL oxf:/config/xforms- widgets.xsl
Line 27
Column N/A
Servlet Stack Trace
(93 method calls)  Class Name Method Name File Name Line Number
org.orbeon.oxf.xforms.XFormsModelSubmission performDefaultAction XFormsModelSubmission.java 872
org.orbeon.oxf.xforms.XFormsContainingDocument dispatchEvent XFormsContainingDocument.java 980
org.orbeon.oxf.xforms.XFormsContainingDocument executeExternalEvent XFormsContainingDocument.java 809
org.orbeon.oxf.xforms.processor.XFormsServer executeExternalEventPrepareIfNecessary XFormsServer.java 283
org.orbeon.oxf.xforms.processor.XFormsServer doIt XFormsServer.java 223
org.orbeon.oxf.xforms.processor.XFormsServer start XFormsServer.java 84
org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run PipelineProcessor.java 650
org.orbeon.oxf.processor.ProcessorImpl executeChildren ProcessorImpl.java 554
org.orbeon.oxf.processor.pipeline.PipelineProcessor start PipelineProcessor.java 647
org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run PipelineProcessor.java 650
 More... 
 

With a missing action atribute

<xf:submission id="form-submit" method="post" omit-xml-declaration="true" indent="true"/>

xforms:submission: action attribute or resource attribute is missing.

Resource URL Line Column Description XML Element
oxf:/config/xforms-widgets.xsl 27 N/A processing xforms:submission attributes
dispatching XForms event
event → xforms-submit
target id → form-submit
dispatching XForms event
event → DOMActivate
target id → xforms-element-12  <xf:submission id="form-submit" indent="true" method="post" omit-xml-declaration="true"/>
oxf:/ops/xforms/xforms-server.xpl 55 103 reading processor output
name → response
id → xml-response  <p:output name="response" id="xml-response" schema-href=" xforms-server-response.rng"/>
oxf:/ops/xforms/xforms-server.xpl 61 52 executing processor
name → {http://www.orbeon.com/oxf/processors}xml-serializer <p:processor name="oxf:xml-serializer">...</p:processor>



--
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
Reply | Threaded
Open this post in threaded view
|

Re: cannot submit a form with a missing/empty action attribute for the submission element

StephR
Did you try action="." ?

Jean Luc a écrit :
Hi [Erik],

I'm using Orbeon (3.6.0.200712061930) deployed as a separate WAR. I'm using a simple form in whose <submission> element I don't want to specify the action attribute - the submission would happen at the same URL. The attribute is optional as per the XForms spec.

However, I get the following errors. Please advise.

Thanks,
JL


With an empty value for the action attribute:

<xf:submission id="form-submit" action="" method="post" omit-xml-declaration="true" indent="true"/>


Exception Class java.lang.IllegalArgumentException
Message path must begin with a "/"
Servlet Stack Trace
(96 method calls)  Class Name Method Name File Name Line Number
com.evermind.server.http.HttpApplication getRequestDispatcher HttpApplication.java 1668
org.orbeon.oxf.servlet.ServletExternalContext getRequestDispatcher ServletExternalContext.java 857
org.orbeon.oxf.xforms.XFormsSubmissionUtils doOptimized XFormsSubmissionUtils.java 92
org.orbeon.oxf.xforms.XFormsModelSubmission performDefaultAction XFormsModelSubmission.java 686
org.orbeon.oxf.xforms.XFormsContainingDocument dispatchEvent XFormsContainingDocument.java 980
org.orbeon.oxf.xforms.XFormsContainingDocument executeExternalEvent XFormsContainingDocument.java 809
org.orbeon.oxf.xforms.processor.XFormsServer executeExternalEventPrepareIfNecessary XFormsServer.java 283
org.orbeon.oxf.xforms.processor.XFormsServer doIt XFormsServer.java 223
org.orbeon.oxf.xforms.processor.XFormsServer start XFormsServer.java 84
org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run PipelineProcessor.java 650
 


org.orbeon.oxf.xforms.XFormsModelSubmission$XFormsSubmissionException 
Exception Class org.orbeon.oxf.xforms.XFormsModelSubmission$XFormsSubmissionException
Message Error while processing xforms:submission
Resource URL oxf:/config/xforms- widgets.xsl
Line 27
Column N/A
Servlet Stack Trace
(93 method calls)  Class Name Method Name File Name Line Number
org.orbeon.oxf.xforms.XFormsModelSubmission performDefaultAction XFormsModelSubmission.java 872
org.orbeon.oxf.xforms.XFormsContainingDocument dispatchEvent XFormsContainingDocument.java 980
org.orbeon.oxf.xforms.XFormsContainingDocument executeExternalEvent XFormsContainingDocument.java 809
org.orbeon.oxf.xforms.processor.XFormsServer executeExternalEventPrepareIfNecessary XFormsServer.java 283
org.orbeon.oxf.xforms.processor.XFormsServer doIt XFormsServer.java 223
org.orbeon.oxf.xforms.processor.XFormsServer start XFormsServer.java 84
org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run PipelineProcessor.java 650
org.orbeon.oxf.processor.ProcessorImpl executeChildren ProcessorImpl.java 554
org.orbeon.oxf.processor.pipeline.PipelineProcessor start PipelineProcessor.java 647
org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run PipelineProcessor.java 650
 More... 
 

With a missing action atribute

<xf:submission id="form-submit" method="post" omit-xml-declaration="true" indent="true"/>

xforms:submission: action attribute or resource attribute is missing.

Resource URL Line Column Description XML Element
oxf:/config/xforms-widgets.xsl 27 N/A processing xforms:submission attributes
dispatching XForms event
event → xforms-submit
target id → form-submit
dispatching XForms event
event → DOMActivate
target id → xforms-element-12  <xf:submission id="form-submit" indent="true" method="post" omit-xml-declaration="true"/>
oxf:/ops/xforms/xforms-server.xpl 55 103 reading processor output
name → response
id → xml-response  <p:output name="response" id="xml-response" schema-href=" xforms-server-response.rng"/>
oxf:/ops/xforms/xforms-server.xpl 61 52 executing processor
name → {http://www.orbeon.com/oxf/processors}xml-serializer <p:processor name="oxf:xml-serializer">...</p:processor>



--
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
Reply | Threaded
Open this post in threaded view
|

Re: cannot submit a form with a missing/empty action attribute for the submission element

Jean Luc-2
Yes, I've tried now. Same error. I've also tried "/." just to see if it makes a difference, but it doesn't either.

On Dec 14, 2007 5:10 PM, Stephane Ruchet <[hidden email]> wrote:
Did you try action="." ?

Jean Luc a écrit :
Hi [Erik],

I'm using Orbeon (3.6.0.200712061930) deployed as a separate WAR. I'm using a simple form in whose <submission> element I don't want to specify the action attribute - the submission would happen at the same URL. The attribute is optional as per the XForms spec.

However, I get the following errors. Please advise.

Thanks,
JL


With an empty value for the action attribute:

<xf:submission id="form-submit" action="" method="post" omit-xml-declaration="true" indent="true"/>


Exception Class java.lang.IllegalArgumentException
Message path must begin with a "/"
Servlet Stack Trace
(96 method calls)  Class Name Method Name File Name Line Number
com.evermind.server.http.HttpApplication getRequestDispatcher HttpApplication.java 1668
org.orbeon.oxf.servlet.ServletExternalContext getRequestDispatcher ServletExternalContext.java 857
org.orbeon.oxf.xforms.XFormsSubmissionUtils doOptimized XFormsSubmissionUtils.java 92
org.orbeon.oxf.xforms.XFormsModelSubmission performDefaultAction XFormsModelSubmission.java 686
org.orbeon.oxf.xforms.XFormsContainingDocument dispatchEvent XFormsContainingDocument.java 980
org.orbeon.oxf.xforms.XFormsContainingDocument executeExternalEvent XFormsContainingDocument.java 809
org.orbeon.oxf.xforms.processor.XFormsServer executeExternalEventPrepareIfNecessary XFormsServer.java 283
org.orbeon.oxf.xforms.processor.XFormsServer doIt XFormsServer.java 223
org.orbeon.oxf.xforms.processor.XFormsServer start XFormsServer.java 84
org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run PipelineProcessor.java 650
 


org.orbeon.oxf.xforms.XFormsModelSubmission$XFormsSubmissionException 
Exception Class org.orbeon.oxf.xforms.XFormsModelSubmission$XFormsSubmissionException
Message Error while processing xforms:submission
Resource URL oxf:/config/xforms- widgets.xsl
Line 27
Column N/A
Servlet Stack Trace
(93 method calls)  Class Name Method Name File Name Line Number
org.orbeon.oxf.xforms.XFormsModelSubmission performDefaultAction XFormsModelSubmission.java 872
org.orbeon.oxf.xforms.XFormsContainingDocument dispatchEvent XFormsContainingDocument.java 980
org.orbeon.oxf.xforms.XFormsContainingDocument executeExternalEvent XFormsContainingDocument.java 809
org.orbeon.oxf.xforms.processor.XFormsServer executeExternalEventPrepareIfNecessary XFormsServer.java 283
org.orbeon.oxf.xforms.processor.XFormsServer doIt XFormsServer.java 223
org.orbeon.oxf.xforms.processor.XFormsServer start XFormsServer.java 84
org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run PipelineProcessor.java 650
org.orbeon.oxf.processor.ProcessorImpl executeChildren ProcessorImpl.java 554
org.orbeon.oxf.processor.pipeline.PipelineProcessor start PipelineProcessor.java 647
org.orbeon.oxf.processor.pipeline.PipelineProcessor$11 run PipelineProcessor.java 650
 More... 
 

With a missing action atribute

<xf:submission id="form-submit" method="post" omit-xml-declaration="true" indent="true"/>

xforms:submission: action attribute or resource attribute is missing.

Resource URL Line Column Description XML Element
oxf:/config/xforms-widgets.xsl 27 N/A processing xforms:submission attributes
dispatching XForms event
event → xforms-submit
target id → form-submit
dispatching XForms event
event → DOMActivate
target id → xforms-element-12  <xf:submission id="form-submit" indent="true" method="post" omit-xml-declaration="true"/>
oxf:/ops/xforms/xforms-server.xpl 55 103 reading processor output
name → response
id → xml-response  <p:output name="response" id="xml-response" schema-href=" xforms-server-response.rng"/>
oxf:/ops/xforms/xforms-server.xpl 61 52 executing processor
name → {http://www.orbeon.com/oxf/processors}xml-serializer <p:processor name="oxf:xml-serializer">...</p:processor>



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




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