This post was updated on .
Hi folks,
I'd like to ask if there is a way to "activate" some code in a xhtml file on submission. What I have now is a form that generates some xml code and gets sent in the exist db. The code shows up if I enter the url manually into the browser, but I'd like to let the content show up on the same page as the form after the user pushed the submit button. Something like that: <xhtml:table> ... <form code> ... </xhtml:table> <xforms:submit submission="foobar"> <xforms:label>Submit</xforms:label> </xforms:submit> <if submit submission="foobar"> ... <xml code> ... </if> Thanx in advance, please be gentle though, I'm new to xhtml and Orbeon. Edit: And by the way, how would you display xml code in a xhtml file? I've been looking the whole day and google just gave me some results regarding xslt and applying changes to static xml code to display in html. I can't imagine it being very hard, since I see it in the Orbeon source code viewer. Sadly, The source code of the source code viewer is like chinese to me. |
Administrator
|
Are you saying that after users submit the form, you want to show them
the XML of the data they have submitted? Do you just want to send the XML to the browser, or do you want to have a web page that contains the XML? Alex On Mon, Mar 29, 2010 at 12:55 AM, ISOmorph <[hidden email]> wrote: > > Hi folks, > > I'd like to ask if there is a way to "activate" some code in a xhtml file on > submission. > What I have now is a form that generates some xml code and gets sent in the > exist db. > The code shows up if I enter the url manually into the browser, but I'd like > to let the content show up on the same page as the form after the user > pushed the submit button. > > Something like that: > > <xhtml:table> > ... > <form code> > ... > </xhtml:table> > > <xforms:submit submission="foobar"> > <xforms:label>Submit</xforms:label> > </xforms:submit> > > <if submit submission="foobar"> > ... > <xml code> > ... > </if> > > Thanx in advance, please be gentle though, I'm new to xhtml and Orbeon. > -- > View this message in context: http://n4.nabble.com/Extend-page-on-submit-tp1694817p1694817.html > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.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 > OW2 mailing lists service home page: http://www.ow2.org/wws > > -- Orbeon Forms - Web forms, open-source, for the Enterprise - http://www.orbeon.com/ My Twitter: http://twitter.com/avernet -- 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
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Well my goal is actually a little more complicated. And luckily I'm a step further.
I'd like to test the capabilities of Orbeon to see if it fits the needs of a project I need to work on. And to test this, I'm trying to create a small scenario where a user can enter his data in a form, send it, and get a response. To be precise, in this example the user will enter some numbers that will added, substracted, etc... Those will be sent into a pipeline, which calls a processor, which in turn computes the output (the pipeline/processor combo is what is interesting to me). I already managed to show the input data, like I was asking at the beginning. Sadly, something seems not to be working with my processor, since only the input data is shown, and no output is processed. For a better understanding, I'll post my files. Hopefully this isn't to much to ask to go through them, but luckily they aren't very complicated, and I'm pretty sure the problem lays within the ComputeOutput.java. Either with the way the input is read, or the output written. I just can't figure out what exactly. As always, thanks in advance and happy easter :) ComputeOutput.java compute-output.xpl page-flow.xml pipeline.xpl view-form.xhtml view-result.xsl |
Free forum by Nabble | Edit this page |