Hello,
I have created a form using the Orbeon Form builder tool. Is it possible to use that form on Orbeon {VERSION: 3.5.1.200703310056} without the need of Form Runner? For example, I have created with Orbeon form builder a simple form, having just one input field -- view-builder.xhtml : =============================================================================================== <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:saxon="http://saxon.sf.net/" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xxi="http://orbeon.org/oxf/xml/xinclude" xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:fr="http://orbeon.org/oxf/xml/form-runner" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms"> <xhtml:head> <xhtml:title>Test</xhtml:title> <xforms:model id="fr-form-model"> <xforms:instance id="fr-form-instance"> <form> <section-1> <name/> </section-1> </form> </xforms:instance> <xforms:bind id="fr-form-binds" nodeset="instance('fr-form-instance')"> <xforms:bind id="section-1-bind" nodeset="section-1"> <xforms:bind id="name-bind" nodeset="name" name="name" type="xs:string" required="true()"/> </xforms:bind> </xforms:bind> <xforms:instance id="fr-form-metadata" xxforms:readonly="true"> <metadata> <application-name>Test</application-name> <form-name>Testing</form-name> <title xml:lang="en">Test</title> <description xml:lang="en">Testing</description> <author/> <logo mediatype="" filename="" size=""/> </metadata> </xforms:instance> <xforms:instance id="fr-form-attachments"> <attachments> <css mediatype="text/css" filename="" size=""/> <pdf mediatype="application/pdf" filename="" size=""/> </attachments> </xforms:instance> <xforms:instance id="fr-form-resources" xxforms:readonly="true"> <resources> <resource xml:lang="en"> <section-1> <label/> <help/> </section-1> <name> <label>Name</label> <hint/> <help/> <alert/> </name> </resource> </resources> </xforms:instance> <xforms:instance id="fr-service-request-instance" xxforms:exclude-result-prefixes="#all"> <request/> </xforms:instance> <xforms:instance id="fr-service-response-instance" xxforms:exclude-result-prefixes="#all"> <response/> </xforms:instance> </xforms:model> </xhtml:head> <xhtml:body> <fr:view> <xforms:label ref="instance('fr-form-metadata')/title"/> <fr:body> <fr:section id="section-1-section" context="section-1"> <xforms:label ref="$form-resources/section-1/label"/> <xforms:help ref="$form-resources/section-1/help"/> <fr:grid columns="2"> <xhtml:tr> <xhtml:td> <xforms:input incremental="true" id="name-control" bind="name-bind"> <xforms:label ref="$form-resources/name/label"/> <xforms:hint ref="$form-resources/name/hint"/> <xforms:help ref="$form-resources/name/help"/> <xforms:alert ref="$fr-resources/detail/labels/alert"/> </xforms:input> </xhtml:td> <xhtml:td/> </xhtml:tr> </fr:grid> </fr:section> </fr:body> </fr:view> </xhtml:body> </xhtml:html> ====================================================================================== Also i have created another form by hand, having again one input field -- view-own.xhtml: ==================================================================================== <html xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Test</title> <xforms:model> <xforms:instance id="books-instance"> <tests xmlns=""> <test> <name/> </test> </tests> </xforms:instance> </xforms:model> <xforms:bind nodeset="test"> <xforms:bind nodeset="name" required="true()"/> </xforms:bind> </head> <body> <xforms:group ref="test"> <xforms:input ref="name"> <xforms:label>Name</xforms:label> </xforms:input> </xforms:group> </body> </html> =========================================================================================================== And in both cases i have created the page-flow.xml file: ========================================================================================================== <config xmlns="http://www.orbeon.com/oxf/controller"> <page path-info="/test/" view="view-own.xhtml"/> <epilogue url="oxf:/config/epilogue.xpl"/> </config> =========================================================================================================== I have created a new folder: {APACHE-TOMCAT}\webapps\orbeon\WEB-INF\resources\apps\test and i have put there the 3 files i mentioned before.(page-flow.xml, view-own.xhtml, view-builder.xhtml) When i try to load the view-own.xhtml file (by hitting on: http://localhost:8080/orbeon/test/ ) everything works fine, but when i load the view-builder.xhtml form (just change the page-flow.xml file so as to use the: view="view-builder.xhtml"), nothing works and i get an error (probably something is wrong when trying to "converti XHTML+XForms document to XHTML"). So, I am wondering, is there a way to use the form that Orbeon form builder creates in an "out-of-the-box" manner, without the need of Form Runner runtime environment? |
Administrator
|
Form Runner adds a lot on top of the base XForms engine, including:
* support for the elements fr:view, etc. which you see there * handling of persistence If you want to take that Form Builder-generated form and run it without Form Runner, you will have to write your own XSLT stylesheet to handle the fr:* elements, and then add your own handling of persistence. -Erik On May 6, 2009, at 5:32 AM, mariannag wrote: > > Hello, > > I have created a form using the Orbeon Form builder tool. Is it > possible > to use that form on Orbeon {VERSION: 3.5.1.200703310056} without the > need of > Form Runner? > > For example, I have created with Orbeon form builder a simple form, > having > just one > input field -- view-builder.xhtml : > > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > ====================================================================== > <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" > xmlns:saxon="http://saxon.sf.net/" > xmlns:xi="http://www.w3.org/2001/XInclude" > xmlns:xs="http://www.w3.org/2001/XMLSchema" > xmlns:xxi="http://orbeon.org/oxf/xml/xinclude" > xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:fr="http://orbeon.org/oxf/xml/form-runner" > xmlns:ev="http://www.w3.org/2001/xml-events" > xmlns:xforms="http://www.w3.org/2002/xforms"> > <xhtml:head> > <xhtml:title>Test</xhtml:title> > <xforms:model id="fr-form-model"> > <xforms:instance id="fr-form-instance"> > <form> > <section-1> > <name/> > </section-1> > </form> > </xforms:instance> > <xforms:bind id="fr-form-binds" > nodeset="instance('fr-form-instance')"> > <xforms:bind id="section-1-bind" nodeset="section-1"> > <xforms:bind id="name-bind" nodeset="name" > name="name" type="xs:string" required="true()"/> > </xforms:bind> > </xforms:bind> > <xforms:instance id="fr-form-metadata" > xxforms:readonly="true"> > <metadata> > <application-name>Test</application-name> > <form-name>Testing</form-name> > <title xml:lang="en">Test</title> > <description xml:lang="en">Testing</description> > <author/> > <logo mediatype="" filename="" size=""/> > </metadata> > </xforms:instance> > <xforms:instance id="fr-form-attachments"> > <attachments> > <css mediatype="text/css" filename="" size=""/> > <pdf mediatype="application/pdf" filename="" > size=""/> > </attachments> > </xforms:instance> > <xforms:instance id="fr-form-resources" > xxforms:readonly="true"> > <resources> > <resource xml:lang="en"> > <section-1> > <label/> > <help/> > </section-1> > <name> > <label>Name</label> > <hint/> > <help/> > <alert/> > </name> > </resource> > </resources> > </xforms:instance> > <xforms:instance id="fr-service-request-instance" > xxforms:exclude-result-prefixes="#all"> > <request/> > </xforms:instance> > <xforms:instance id="fr-service-response-instance" > xxforms:exclude-result-prefixes="#all"> > <response/> > </xforms:instance> > </xforms:model> > </xhtml:head> > <xhtml:body> > <fr:view> > <xforms:label ref="instance('fr-form-metadata')/title"/> > <fr:body> > <fr:section id="section-1-section" context="section-1"> > <xforms:label ref="$form-resources/section-1/ > label"/> > <xforms:help ref="$form-resources/section-1/help"/> > <fr:grid columns="2"> > <xhtml:tr> > <xhtml:td> > <xforms:input incremental="true" > id="name-control" bind="name-bind"> > <xforms:label > ref="$form-resources/name/label"/> > <xforms:hint > ref="$form-resources/name/hint"/> > <xforms:help > ref="$form-resources/name/help"/> > <xforms:alert > ref="$fr-resources/detail/labels/alert"/> > </xforms:input> > </xhtml:td> > <xhtml:td/> > </xhtml:tr> > </fr:grid> > </fr:section> > </fr:body> > </fr:view> > </xhtml:body> > </xhtml:html> > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > ====================================================================== > > > Also i have created another form by hand, having again one input > field -- > view-own.xhtml: > = > = > = > = > = > = > = > = > = > = > = > = > = > = > ====================================================================== > <html xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" > xmlns:xs="http://www.w3.org/2001/XMLSchema" > xmlns:xforms="http://www.w3.org/2002/xforms" > xmlns:xhtml="http://www.w3.org/1999/xhtml" > xmlns:ev="http://www.w3.org/2001/xml-events" > xmlns="http://www.w3.org/1999/xhtml"> > <head> > <title>Test</title> > <xforms:model> > <xforms:instance id="books-instance"> > <tests xmlns=""> > <test> > <name/> > </test> > </tests> > </xforms:instance> > </xforms:model> > > <xforms:bind nodeset="test"> > <xforms:bind nodeset="name" required="true()"/> > </xforms:bind> > </head> > <body> > > <xforms:group ref="test"> > <xforms:input ref="name"> > <xforms:label>Name</xforms:label> > </xforms:input> > </xforms:group> > </body> > </html> > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > ====================================================================== > > And in both cases i have created the page-flow.xml file: > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > ====================================================================== > <config xmlns="http://www.orbeon.com/oxf/controller"> > <page path-info="/test/" view="view-own.xhtml"/> > <epilogue url="oxf:/config/epilogue.xpl"/> > </config> > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > ====================================================================== > > I have created a new folder: > {APACHE-TOMCAT}\webapps\orbeon\WEB-INF\resources\apps\test > and i have put there the 3 files i mentioned before.(page-flow.xml, > view-own.xhtml, view-builder.xhtml) > > When i try to load the view-own.xhtml file (by hitting on: > http://localhost:8080/orbeon/test/ ) everything works fine, but when i > load the view-builder.xhtml form (just change the page-flow.xml file > so > as to use the: view="view-builder.xhtml"), nothing works and i get > an error > (probably something is wrong > when trying to "converti XHTML+XForms document to XHTML"). > > So, I am wondering, is there a way to use the form that Orbeon form > builder > creates in an "out-of-the-box" manner, without the need of Form Runner > runtime environment? > > -- > View this message in context: http://www.nabble.com/Orbeon-Form-Builder---use-a-form-without-the-need-of-Form-Runner-tp23405730p23405730.html > Sent from the ObjectWeb 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 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |