I've integrated orbeon xforms filter into a java webapp as per
documentation. My servlet reads an xforms file and then writes it response's PrintWriter. The xform is attached if needed. I'm getting an exception, which is also attached. Please let me know if I'm missing something? Thanks. Ilya -- 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 |
Sorry, I posted this twice, first from Nabble, second from my email account, since I thought Nabble didn't let it go through.
I tried this setup with a very simple xform and it seemed to work, but I'm still not sure why the attached xform is not working. I created it using the Form Builder, then just copied the source of that. The attached file works fine within the forms builder, but not within my own app. I'm wondering how one would use the form builder process and integrate the building of the forms into their own app, embedding the xform filter inside a custom webapp. Any information would be very appreciated. Thanks. Ilya Sterin
|
In reply to this post by Ilya Sterin
Any ideas? Sorry for the rush, but I've been at a standstill trying
to figure out how the integration of Forms Builder works with separate deployment and custom java app that needs to serve these forms and then process submissions. Ilya On Sat, Jun 27, 2009 at 12:19 AM, Ilya Sterin<[hidden email]> wrote: > I've integrated orbeon xforms filter into a java webapp as per > documentation. My servlet reads an xforms file and then writes it > response's PrintWriter. The xform is attached if needed. > > I'm getting an exception, which is also attached. Please let me know > if I'm missing something? > > > Thanks. > > Ilya > -- 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 |
I do get similar exception with a simple form generated by Form Builder. I tried the same way ;copying source from editsource and saving it in file under my web application.
I also tried saving/publishing the form into oracle database from form builder. Use servlet in our own web application to output the xhtml. I found another problem here that orbeon filter not getting triggered for below url pattern. Controller is my servlet which reads form from oracle. <filter-name>orbeon-xforms-filter</filter-name> <url-pattern>/controller?*</url-pattern> test.xhtmlI do get similar exception with a simple form generated by Form Builder |
Administrator
|
In reply to this post by Ilya Sterin
Ilya,
A form produced by Form Builder must be run through Form Runner. The reason this fails is that elements like fr:body, fr:section, etc. are not resolved before reaching the XForms engine. In general we recommend using Form Runner, but if you can't, you will have to first apply some kind of transformation on the resulting form, e.g. with XSLT, to produce plain XHTML+XForms. -Erik On Jun 26, 2009, at 9:19 PM, Ilya Sterin wrote: > I've integrated orbeon xforms filter into a java webapp as per > documentation. My servlet reads an xforms file and then writes it > response's PrintWriter. The xform is attached if needed. > > I'm getting an exception, which is also attached. Please let me know > if I'm missing something? > > > Thanks. > > Ilya > <exception.png><simple-form.xform> > -- > 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 |
Erik,
Thanks and also I also came across this thread http://www.opensubscriber.com/message/ops-users@ow2.org/9206799.html So in cases where we cant use form runner, but still want render form builder source with our own app+orbeon xforms engine, we need to apply transformation on form source with components.xsl which includes view.xsl,buttons.xsl,grid.xsl,repeat.xsl,inplace.xsl, section.xsl Do you think transformation with above xsls is just enough before sending it to xforms engine? thanks hithesh |
Applying transformation with those xsl's and copy-mode.xsl . i get following expcetions
javax.xml.transform.TransformerException: Illegal value: #all used for QNAME attribute: mode at orbeon.apache.xalan.processor.StylesheetHandler.error(StylesheetHandler.java:934) java.lang.IllegalArgumentException: Localname in QNAME should be a valid NCName at orbeon.apache.xml.utils.QName.<init>(QName.java:499) at orbeon.apache.xalan.processor.XSLTAttributeDef.processQNAME(XSLTAttributeDef.java:968) Any directions you can point me to? |
In reply to this post by Erik Bruchez
Eric, I'm fine with running it through form runner, but can form
runner be embedded inside my application? If so, can you tell me where to find more info? If this is not the case, is there a way to customize submissions? The idea is that I want to be able to build a form using form builder, but I really don't care about the extra controls, views, persistence, I just want to submit the data to a service and have a service return the response, which will be rendered by browser. I know that using forms builder you can process the return and bind those values to elements on the form, but I want the form to be redirected and I haven't been able to accomplish this. Any help would be appreciated. Thanks. Ilya On Tue, Jun 30, 2009 at 5:29 PM, Erik Bruchez<[hidden email]> wrote: > Ilya, > > A form produced by Form Builder must be run through Form Runner. The reason > this fails is that elements like fr:body, fr:section, etc. are not resolved > before reaching the XForms engine. > > In general we recommend using Form Runner, but if you can't, you will have > to first apply some kind of transformation on the resulting form, e.g. with > XSLT, to produce plain XHTML+XForms. > > -Erik > > On Jun 26, 2009, at 9:19 PM, Ilya Sterin wrote: > >> I've integrated orbeon xforms filter into a java webapp as per >> documentation. My servlet reads an xforms file and then writes it >> response's PrintWriter. The xform is attached if needed. >> >> I'm getting an exception, which is also attached. Please let me know >> if I'm missing something? >> >> >> Thanks. >> >> Ilya >> <exception.png><simple-form.xform> >> -- >> 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 > > -- 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 |
Eric, even I have settled with form runner now trying to integrate into our health system application.
1) How can we customize submit button; to submit to custom servlet which saves to different database tables( I have hidden other buttons by doing <property as="xs:string" name="oxf.fr.detail.buttons.*.*" value="submit"/>) 2) How to write own button control on detail page apart from http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties#TOC-Detail-Page? Thanks Hithesh |
Hithesh,
Regarding persistence, the best is to implement your own persistence layer. It's a simple REST API: http://wiki.orbeon.com/forms/doc/contributor-guide/form-builder-integration-notes#TOC-Persistence-API -Erik On Wed, Jul 1, 2009 at 3:57 PM, hithesh gazzala<[hidden email]> wrote: > > Eric, even I have settled with form runner now trying to integrate into our > health system application. > > 1) How can we customize submit button; to submit to custom servlet which > saves to different database tables( I have hidden other buttons by doing > <property as="xs:string" name="oxf.fr.detail.buttons.*.*" value="submit"/>) > > 2) How to write own button control on detail page apart from > http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties#TOC-Detail-Page? > > Thanks > Hithesh > -- > View this message in context: http://www.nabble.com/3.7.1-Exception-tp24230355p24298450.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 > > -- 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 |