Troubleshooting placing a new form definition in /resources/forms/
Following some advice I was given in a recent thread ... here ... http://orbeon-forms-ops-users.24843.n4.nabble.com/Scrolling-through-multiple-horizontal-cells-in-an-xform-td4655163.html ... I'm trying to place and test a new form definition - form.xhtml - under /resources/forms/ I added a new folder (foo) under /resources/forms/ I copied one of the working examples (bookshelf) from /resources/forms/orbeon/bookshelf/form/form.xhtml into /resources/forms/foo/bookshelf/form/form.xhtml I added this new property into properties-local.xml <property as="xs:string" name="oxf.fr.persistence.provider.foo.bookshelf.form" value="resource"/> I restarted the server. I tried running the "cloned" bookshelf form definition. http://localhost:8080/orbeon/fr/foo/bookshelf/edit but I just get a blank page in browser .. I tried the default bookshelf form definition under /resources/forms/orbeon folder http://localhost:8080/orbeon/fr/orbeon/bookshelf/edit and this works as expected (as does dmv-14). So my question is .. what have I missed in setting up the "cloned" form definition in "foo" folder? All I've done is to create an additional namefolder "foo" under /resources/forms/ /resources/forms/ ....../orbeon/bookshelf/form/form.xhtml ....../foo/bookshelf/form/form.xhtml and added a new property. |
Administrator
|
I am not sure why, but I tried the exact same thing and the following work:
http://localhost:8080/orbeon/fr/foo/bookshelf/new http://localhost:8080/orbeon/fr/foo/bookshelf/summary The following won't work because it's not a valid Form Runner URL http://localhost:8080/orbeon/fr/foo/bookshelf/edit -Erik On Wed, Jun 6, 2012 at 1:51 PM, DL <[hidden email]> wrote: > *Troubleshooting placing a new form definition in /resources/forms/* > > Following some advice I was given in a recent thread ... here ... > > http://orbeon-forms-ops-users.24843.n4.nabble.com/Scrolling-through-multiple-horizontal-cells-in-an-xform-td4655163.html > > ... I'm trying to place and test a new form definition - form.xhtml - under > /resources/forms/ > > I added a new folder (foo) under /resources/forms/ > > I copied one of the working examples (bookshelf) > > from /resources/forms/orbeon/bookshelf/form/form.xhtml > into /resources/forms/foo/bookshelf/form/form.xhtml > > I added this new property into properties-local.xml > > <property as="xs:string" > name="oxf.fr.persistence.provider.foo.bookshelf.form" value="resource"/> > > I restarted the server. > > I tried running the "cloned" bookshelf form definition. > > http://localhost:8080/orbeon/fr/foo/bookshelf/edit > > but I just get a blank page in browser .. > > I tried the default bookshelf form definition under /resources/forms/orbeon > folder > > http://localhost:8080/orbeon/fr/orbeon/bookshelf/edit > > and this works as expected (as does dmv-14). > > So my question is .. what have I missed in setting up the "cloned" form > definition in "foo" folder? > > All I've done is to create an additional namefolder "foo" under > /resources/forms/ > > /resources/forms/ > ....../orbeon/bookshelf/form/form.xhtml > ....../foo/bookshelf/form/form.xhtml > > and added a new property. > > > > > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/placing-form-definition-in-resources-forms-tp4655218.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 > -- 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'm still trying to understand how to get this to persistence-api to work ..
http://wiki.orbeon.com/forms/doc/developer-guide/form-runner/persistence-api "A scenario This scenario describes how company Acme [foo] can go about implementing their own persistence service". What parameters must I place in properties-local.xml for this URI to work .. http://localhost:8080/orbeon/fr/foo/bookshelf/new This is the edit suggested in persistence-api doc .. With Orbeon Forms post-3.9: <property as="xs:string" name="oxf.fr.persistence.provider.acme.*.data" value="my-persistence"/> <property as="xs:anyURI" name="oxf.fr.persistence.my-persistence.uri" value="http://example.com/my-persistence"/> Should my scenario for /foo/bookshelf/ be .. <property as="xs:string" name="oxf.fr.persistence.provider.foo.*.data" value="my-persistence"/> <property as="xs:anyURI" name="oxf.fr.persistence.my-persistence.uri" value="http://localhost:8080/orbeon/fr/foo/bookshelf"/> Thanks. |
Administrator
|
> I'm still trying to understand how to get this to persistence-api to work ..
> > http://wiki.orbeon.com/forms/doc/developer-guide/form-runner/persistence-api > Should my scenario for /foo/bookshelf/ be .. > > > <property as="xs:string" > name="oxf.fr.persistence.provider.foo.*.data" > value="my-persistence"/> > > <property as="xs:anyURI" > name="oxf.fr.persistence.my-persistence.uri" > value="http://localhost:8080/orbeon/fr/foo/bookshelf"/> persistence API. Here you make it point back to Orbeon Forms! -Erik -- 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 |