Hi,
Easy question (I hope!) - Why when I do a POST on a submission in my XForm does the submission go to: /ops/xforms-server-submit My XForms submission looks like: <xforms:submission id="search" method="post" action="http://www.google.com/search" ref="instance('instance_model_Document')" replace="all"/> -- Colin Seaman Senior Developer Tradocs Ltd, Tower Point, 44 North Road, Brighton, BN1 1YR email: [hidden email] skype: colin,seaman telephone: 0870-1417031 website: http://www.tradocs.net This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please contact Tradocs. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. This content of this email is without prejudice. -- 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 |
ah, actually it does go to the correct place but the url always shows
/ops/xforms-server-submit ..
any reason for that? Colin Seaman Senior Developer Tradocs Ltd, Tower Point, 44 North Road, Brighton, BN1 1YR email: [hidden email] skype: colin,seaman telephone: 0870-1417031 website: http://www.tradocs.net This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please contact Tradocs. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. This content of this email is without prejudice. Colin Seaman wrote: Hi, -- 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 |
Administrator
|
In reply to this post by Colin Seaman
Colin,
The XForms submission is actually performed by the server, not the client. So the client (web browser) has to do a submission the XForms server, which in turn does a submission to http://www.google.com/search. The XForms server acts as an intermediary and forward the returned HTML content back to the client. This could be improved if there was a way in HTML to submit an XML document and get a new HTML page in return, but as far as I know this is not possible. -Erik Colin Seaman wrote: > Hi, > > Easy question (I hope!) - > > Why when I do a POST on a submission in my XForm does the submission go > to: /ops/xforms-server-submit > > My XForms submission looks like: > <xforms:submission id="search" > method="post" action="http://www.google.com/search" > ref="instance('instance_model_Document')" > replace="all"/> 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 |
Erik, thanks.
On slightly the same note, how can I set a global property to default actions to on XForms submissions? Say for instance I have 10 XForm files, all with submissions to "http://www.something.com/anotherthing", could I set "http://www.something.com" as a variable somewhere and include it dynamically on the xforms:submission tag in all of my forms? I'm not sure I like the idea of hard coding paths everywhere, especially when my app is distributed to different servers! Colin Seaman Senior Developer Tradocs Ltd, Tower Point, 44 North Road, Brighton, BN1 1YR email: [hidden email] skype: colin,seaman telephone: 0870-1417031 website: http://www.tradocs.net This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please contact Tradocs. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. This content of this email is without prejudice. Erik Bruchez wrote: Colin, -- 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 |
Administrator
|
Colin,
> On slightly the same note, how can I set a global property to default > actions to on XForms submissions? Say for instance I have 10 XForm > files, all with submissions to "http://www.something.com/anotherthing", > could I set "http://www.something.com" as a variable somewhere and > include it dynamically on the xforms:submission tag in all of my forms? > > I'm not sure I like the idea of hard coding paths everywhere, especially > when my app is distributed to different servers! Understood. There is no such property at this point. Btu the XForms engine rewrites paths against xml:base, and the default xml:base is the external URL that produced the page. If you have the same xforms:submission in multiple files, you could XInclude it in all your pages. If xforms:submission has an @xml:base attribute, like this: <xforms:submission xml:base="http://www.something.com/gaga" ...> then you would have only once place to change. Note that if you write: <xforms:submission action="/gaga", this is resolved by default against the Servlet context into which Orbeon Forms is installed. -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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Erik,
Unfortunately that still gives me a problem when deploying to multiple servers. What about if I created an XML instance from in incoming POST operation, mapped it to an instance and done something like this: action="{{xxforms:instance('instance_model_Document')/Document/myreturnplace}}" where the xml would be: <Document> <myreturnplace>http://www.somthing.com/blah/</myreturnplace> </Document> would that work? Colin Seaman Senior Developer Tradocs Ltd, Tower Point, 44 North Road, Brighton, BN1 1YR email: [hidden email] skype: colin,seaman telephone: 0870-1417031 website: http://www.tradocs.net This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please contact Tradocs. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. This content of this email is without prejudice. Erik Bruchez wrote: Colin, -- 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 |
If you have the URL of the server stored in an XML Pipeline, you could
always run your final page through an XSLT transformation. (say in your epilogue, or wherever you are applying other common themes) Just pass that pipeline in as an extra input, and then output your value into the xml:base attribute. Assuming you name the input "base": <xsl:template match="/"> <html:html xml:base="{doc('input:base')/Document/myreturnplace}"> <!-- all of your other stuff --> </html:html> </xsl:template> You won't be able to change the base at runtime (after the page has been loaded) but you'll be able to make it different for every page view. (Which I assume meets your requirements) Hope this helps, Daniel E. Renfer http://kronkltd.net/ On 12/19/06, Colin Seaman <[hidden email]> wrote: > > Erik, > Unfortunately that still gives me a problem when deploying to multiple > servers. > > What about if I created an XML instance from in incoming POST operation, > mapped it to an instance and done something like this: > > action="{{xxforms:instance('instance_model_Document')/Document/myreturnplace}}" > > where the xml would be: > <Document> > <myreturnplace>http://www.somthing.com/blah/</myreturnplace> > </Document> > > would that work? > Colin Seaman > Senior Developer > > Tradocs Ltd, > Tower Point, > 44 North Road, > Brighton, > BN1 1YR > > email: [hidden email] > skype: colin,seaman > telephone: 0870-1417031 > website: http://www.tradocs.net > > This email and any files transmitted with it are confidential > and intended solely for the use of the individual or entity to > whom they are addressed. If you have received this email in > error please contact Tradocs. Please note that any views or > opinions presented in this email are solely those of the author > and do not necessarily represent those of the company. Finally, > the recipient should check this email and any attachments for > the presence of viruses. The company accepts no liability for > any damage caused by any virus transmitted by this email. > This content of this email is without prejudice. > > > Erik Bruchez wrote: > Colin, > > > On slightly the same note, how can I set a global property to default > > actions to on XForms submissions? Say for instance I have 10 XForm > > files, all with submissions to > "http://www.something.com/anotherthing", > > could I set "http://www.something.com" as a variable somewhere and > > include it dynamically on the xforms:submission tag in all of my forms? > > > > I'm not sure I like the idea of hard coding paths everywhere, especially > > when my app is distributed to different servers! > > Understood. There is no such property at this point. > > Btu the XForms engine rewrites paths against xml:base, and the default > xml:base is the external URL that produced the page. If you have the > same xforms:submission in multiple files, you could XInclude it in all > your pages. If xforms:submission has an @xml:base attribute, like > this: > > <xforms:submission xml:base="http://www.something.com/gaga" ...> > > then you would have only once place to change. > > Note that if you write: > > <xforms:submission action="/gaga", this is resolved by default against > the Servlet context into which Orbeon Forms is installed. > > -Erik > > > ________________________________ > > > -- > 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 > > > > -- > 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 > > > -- 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 |
Administrator
|
In reply to this post by Colin Seaman
On 12/19/06, Colin Seaman <[hidden email]> wrote:
> action="{{xxforms:instance('instance_model_Document')/Document/myreturnplace}}" > > where the xml would be: > <Document> > <myreturnplace>http://www.somthing.com/blah/</myreturnplace> > </Document> > > would that work? Colin, Yes, this should work. Except you just need {...} for AVTs, instead of {{..}}. Alex -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- 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
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |