How to retrieve the generated code ?

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

How to retrieve the generated code ?

Loceka
Hello,

I would like to include an XForm in one of our pages but, in order to do that, I have no other choice than to retrieve the XForm HTML code server side.

The problem is I have no clue how to do that.
I've tryied to use the « request.setAttribute("oxf.xforms.renderer.document", xformsDocument); » method but I don't know what to write before/after and where to put it.

I guess there is actually a way to retrieve the HTML generated code so could you help me do that please ?

Thanks,
Loceka.
Reply | Threaded
Open this post in threaded view
|

Re: How to retrieve the generated code ?

Alessandro Vernet
Administrator
On Mon, Aug 25, 2008 at 5:29 AM, Loceka <[hidden email]> wrote:
> The problem is I have no clue how to do that.
> I've tryied to use the «
> request.setAttribute("oxf.xforms.renderer.document", xformsDocument); »
> method but I don't know what to write before/after and where to put it.

If you haven't read this section already see 4.2 on
http://www.orbeon.com/ops/doc/reference-xforms-java.

You are expected to store there a W3C DOM, dom4j, or a string with the
serialized XML.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
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
Reply | Threaded
Open this post in threaded view
|

Re: How to retrieve the generated code ?

Loceka

Thank you,
Actually I've used a mere string with the XForms code in it and it worked well but, as I described it in this post : http://www.nabble.com/Problem-retrieving-the-Orbeon-form-answer-td19251016.html I cannot have the submission to work. :(

Alessandro Vernet wrote
On Mon, Aug 25, 2008 at 5:29 AM, Loceka <Loceka@gmail.com> wrote:
> The problem is I have no clue how to do that.
> I've tryied to use the «
> request.setAttribute("oxf.xforms.renderer.document", xformsDocument); »
> method but I don't know what to write before/after and where to put it.

If you haven't read this section already see 4.2 on
http://www.orbeon.com/ops/doc/reference-xforms-java.

You are expected to store there a W3C DOM, dom4j, or a string with the
serialized XML.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet



--
You receive this message as a subscriber of the ops-users@ow2.org mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
For general help: mailto:sympa@ow2.org?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws


-----
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
http://www.orbeon.com/