Re: problem with orbeon form builder
Posted by
Alessandro Vernet on
Sep 10, 2009; 5:36am
URL: https://discuss.orbeon.com/problem-with-orbeon-form-builder-tp45206p45208.html
Suvedhan,
Tech Dig wrote
I am new to the orbeon and doing a research on that. I created a page using the form builder and got the XHTML code through the Edit Source option. Then i pasted the code in my app as a jsp page and added the filter mapping in web.xml as per the orbeon documentation.I also added the orbeon filter jar to the WEB-INF\lib directory. When i try to run the jsp from the browser, it displays a blank page. It renders the page if i remove all the form rendered tags (Ex : fr:view,fr:grid etc.) from the jsp. It also displays an error with description as something like $form-resources undeclared variable. So i replaced the $form-resources\details... with the Xforms notation of referring the xml instance (instance('name')\data....). It was rendering the page but the data is not getting submitted . Its because the form instance declaration, bindings inside the model needs to be in a order. Is there a way we can run the form builder generated page outside the orbeon war with the XHTML code remains unchanged?.
You can't quite do that. What is produced by Form Builder is expected to run inside Form Runner. Form Runner is mostly implemented in XSLT and pipelines, and defines constructs that are common to all the forms, so they don't need to be repeated in every single form. This has some benefits, but as you noticed, one drawback is that you can't just take a form produced by Form Builder and run it outside of Form Runner.
Alex