By-hand form don't show anything inside <fr:> tags

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

By-hand form don't show anything inside <fr:> tags

fritz
Hi all,
I'm trying to implement my own app , I've created under /resources/apps my folder where index.xhtm and page-flow
resides.
I've created a very basic form copying pieces form FB into index.xhtml but when I run  the form from
localhost:8080/orbeon/my-app/ only header and <xh:> items outside <fr:> tags  are shown.

Can someone help me??
bye F

index.xhtml
.
Reply | Threaded
Open this post in threaded view
|

Re: By-hand form don't show anything inside <fr:> tags

Erik Bruchez
Administrator
You can't directly take a form created by Form Runner and expect it to run outside of Form Runner, because the form relies on support from Form Runner.

Specifically, in your view, the elements <fr:view> and <fr:body> are purely Form Runner constructs.

<fr:section> and <fr:grid> are XBL components so will work, although CSS styling might be off.

There are other things that will not work. For example, the $form-resources is defined by Form Runner, and if you run the form outside of Form Runner it is not present.

-Erik
Reply | Threaded
Open this post in threaded view
|

Re: By-hand form don't show anything inside <fr:> tags

fritz
Thank you for answer Erik,
ok now it's more clear, I was thinking all /apps where processed by form runner engine too.

Fritz
Reply | Threaded
Open this post in threaded view
|

Re: By-hand form don't show anything inside <fr:> tags

Alessandro  Vernet
Administrator
Hi Fritz,

BTW, if you want to have your forms "on disk", so maybe you can edit them more easily by hand, you can place them under resources/forms, and configure Form Runner to use the resource persistence to read their form definition from there. I.e. if you app is gaga:

<property as="xs:string"  name="oxf.fr.persistence.provider.gaga.*.form" value="resource"/>

And we do have some demo forms loaded that way:

https://github.com/orbeon/orbeon-forms/tree/master/src/resources/forms

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: By-hand form don't show anything inside <fr:> tags

fritz
Thank you Alex , i'll try that