PL: Dummy in Form Builder

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

PL: Dummy in Form Builder

Bruno
Hi,

In which situation the Form Builder will set the form source to:
<dummy xmlns:xbl="http://www.w3.org/ns/xbl" xmlns:xxf="http://orbeon.org/oxf/xml/xforms"
       xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
       xmlns:saxon="http://saxon.sf.net/"
       xmlns:fbf="java:org.orbeon.oxf.fb.FormBuilderXPathApi"
       xmlns:fr="http://orbeon.org/oxf/xml/form-runner"
       xmlns:secure="java:org.orbeon.oxf.util.SecureUtils"
       xmlns:xf="http://www.w3.org/2002/xforms"
       xmlns:xh="http://www.w3.org/1999/xhtml"
       xmlns:p="http://www.orbeon.com/oxf/pipeline"
       xmlns:ev="http://www.w3.org/2001/xml-events"
       xmlns:xi="http://www.w3.org/2001/XInclude"
       xmlns:toolboxOps="java:org.orbeon.oxf.fb.ToolboxOps"
       xmlns:xs="http://www.w3.org/2001/XMLSchema"
       xmlns:frf="java:org.orbeon.oxf.fr.FormRunner"
       xmlns:fb="http://orbeon.org/oxf/xml/form-builder"/>

There is a bug in my Persistence Layer for any form that use a section library:
1) Create the form
2) Add a section from any library
3) Publish the form
4) Goto to summary
5) Edit the form
And now the form is not displayed and if I "Edit Source" in the Form Builder it display the HTML code above (with the dummy mode).

It is also strange that only happen with Publish because if it is only Save it can be edit normaly.

regards,
bruno

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/CALjxVcSx1Gs-vRMAQA6o6FGZxDtPXMKaLspHUp3neZOb670E_w%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: PL: Dummy in Form Builder

Alessandro  Vernet
Administrator
Hi Bruno,

The `fb-form-instance` starts with `<dummy/>`, but it should always be
replaced by something else, so I suspect that some problem happened during
that process. Have you tried to see if you can find any relevant error in
the `orbeon.log`, if necessary increasing the log level (e.g. per the dev
config)?

https://doc.orbeon.com/configuration/advanced/xforms-logging#development-configuration

-Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1611279619513-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: PL: Dummy in Form Builder

Bruno
In reply to this post by Bruno
Hi,

I think it is a problem of Form formats.

Because I executed some old TestCases that for sure had an old format (4.0, 4.8 i think) and also created some forms online so they were stored with 2019.1.0 format.

And is not supported to have different formats in the same PL.

I think this is because if I delete the old forms and only use the one created online then all forms are displayed correctly.

When different formats are mixed then the problems start.

Is there any way to transform old formats to new one with a script ?}

regards,
bruno






El jue, 21 ene 2021 a las 16:31, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Hi,

In which situation the Form Builder will set the form source to:
<dummy xmlns:xbl="http://www.w3.org/ns/xbl" xmlns:xxf="http://orbeon.org/oxf/xml/xforms"
       xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
       xmlns:saxon="http://saxon.sf.net/"
       xmlns:fbf="java:org.orbeon.oxf.fb.FormBuilderXPathApi"
       xmlns:fr="http://orbeon.org/oxf/xml/form-runner"
       xmlns:secure="java:org.orbeon.oxf.util.SecureUtils"
       xmlns:xf="http://www.w3.org/2002/xforms"
       xmlns:xh="http://www.w3.org/1999/xhtml"
       xmlns:p="http://www.orbeon.com/oxf/pipeline"
       xmlns:ev="http://www.w3.org/2001/xml-events"
       xmlns:xi="http://www.w3.org/2001/XInclude"
       xmlns:toolboxOps="java:org.orbeon.oxf.fb.ToolboxOps"
       xmlns:xs="http://www.w3.org/2001/XMLSchema"
       xmlns:frf="java:org.orbeon.oxf.fr.FormRunner"
       xmlns:fb="http://orbeon.org/oxf/xml/form-builder"/>

There is a bug in my Persistence Layer for any form that use a section library:
1) Create the form
2) Add a section from any library
3) Publish the form
4) Goto to summary
5) Edit the form
And now the form is not displayed and if I "Edit Source" in the Form Builder it display the HTML code above (with the dummy mode).

It is also strange that only happen with Publish because if it is only Save it can be edit normaly.

regards,
bruno

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/CALjxVcQrVk2cFHxzwbA0NmjDiGxXbXpodeWfNM4P6ZrDqVV-EA%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: PL: Dummy in Form Builder

Alessandro  Vernet
Administrator
Hi Bruno,

A few things:

1. When opening a form in Form Builder, the form definition is automatically
upgraded to a format that your new version of Form Builder supports.
2. When running a form, Form Runner is expected to be backward compatible
with your form definition.
3. If you want to upgrade or or subset of your form definitions, instead
doing it one by one, you can do it for several forms from the Form Runner
home page (see section linked below).

https://doc.orbeon.com/form-runner/features/home-page#upgrading-form-definitions

If you're having this problem in Form Builder, since Form Builder upgrades
forms when they are opened, manually upgrading the form most likely won't
solve the problem, and you're most likely hitting a problem related to the
upgrade, either caused by a bug or something in your form definition that is
unexpected.

If you'd like us to look at it, we'll need a form, if possible minimal, that
we can use to reproduce this.

-Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1611548428454-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: PL: Dummy in Form Builder

Bruno
In reply to this post by Bruno
Alex,

Still checking this error but the problem is only on Form Builder.

The form runner correctly renders the form in the NEW url. Also the EDIT page the form is correctly rendered.
Only the Form Builder does not display the form definition.

The root of the problem is unknown yet but if I found something I would let you know.

regards,
bruno



El vie, 22 ene 2021 a las 17:40, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Hi,

I think it is a problem of Form formats.

Because I executed some old TestCases that for sure had an old format (4.0, 4.8 i think) and also created some forms online so they were stored with 2019.1.0 format.

And is not supported to have different formats in the same PL.

I think this is because if I delete the old forms and only use the one created online then all forms are displayed correctly.

When different formats are mixed then the problems start.

Is there any way to transform old formats to new one with a script ?}

regards,
bruno






El jue, 21 ene 2021 a las 16:31, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Hi,

In which situation the Form Builder will set the form source to:
<dummy xmlns:xbl="http://www.w3.org/ns/xbl" xmlns:xxf="http://orbeon.org/oxf/xml/xforms"
       xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
       xmlns:saxon="http://saxon.sf.net/"
       xmlns:fbf="java:org.orbeon.oxf.fb.FormBuilderXPathApi"
       xmlns:fr="http://orbeon.org/oxf/xml/form-runner"
       xmlns:secure="java:org.orbeon.oxf.util.SecureUtils"
       xmlns:xf="http://www.w3.org/2002/xforms"
       xmlns:xh="http://www.w3.org/1999/xhtml"
       xmlns:p="http://www.orbeon.com/oxf/pipeline"
       xmlns:ev="http://www.w3.org/2001/xml-events"
       xmlns:xi="http://www.w3.org/2001/XInclude"
       xmlns:toolboxOps="java:org.orbeon.oxf.fb.ToolboxOps"
       xmlns:xs="http://www.w3.org/2001/XMLSchema"
       xmlns:frf="java:org.orbeon.oxf.fr.FormRunner"
       xmlns:fb="http://orbeon.org/oxf/xml/form-builder"/>

There is a bug in my Persistence Layer for any form that use a section library:
1) Create the form
2) Add a section from any library
3) Publish the form
4) Goto to summary
5) Edit the form
And now the form is not displayed and if I "Edit Source" in the Form Builder it display the HTML code above (with the dummy mode).

It is also strange that only happen with Publish because if it is only Save it can be edit normaly.

regards,
bruno

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/CALjxVcTLYuOFrfv80YOnhmc%2Bv9r4SSYg5TAC58UZ1NS1E6iPEg%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: PL: Dummy in Form Builder

Bruno
Alex,

I found the culprit but not sure yet why this is happening...
After Publishing a form an extra XML is added after <xf:model> node. Also the problems are forms with references to library forms.
(This does not happen when the form definition is Saved only after Publishing).

The node is the following (not sure if it is a bug on my PL or is an Orbeon thing):
<xbl:xbl xmlns:xbl="http://www.w3.org/ns/xbl" xmlns:fbf="java:org.orbeon.oxf.fb.FormBuilderXPathApi" xmlns:xxbl="http://orbeon.org/oxf/xml/xbl" xmlns:frf="java:org.orbeon.oxf.fr.FormRunner" xmlns:component="http://orbeon.org/oxf/xml/form-builder/component/gs/library" xmlns:p="http://www.orbeon.com/oxf/pipeline"><xbl:binding id="gs-section-1-component" element="component|section-1" class="fr-section-component"><xbl:implementation><xf:model id="section-1-model"><xf:instance id="fr-form-instance" xxbl:mirror="true" xxf:index="id"><empty/></xf:instance><xf:instance id="fr-form-template"><section-1>
                        <grid-1>
                            <gs_name/>
                        </grid-1>
                    </section-1></xf:instance><xf:bind id="fr-form-binds" ref="instance(''fr-form-instance'')"><xf:bind id="grid-1-bind" ref="grid-1" name="grid-1">
                        <xf:bind id="gs_name-bind" name="gs_name" ref="gs_name" xxf:whitespace="trim"/>
                    </xf:bind></xf:bind><xf:instance id="fr-form-resources" xxf:readonly="true"><resources><resource xml:lang="en"><section-1>
                            <label>Untitled Section</label>
                        </section-1><gs_name>
                            <label>GS Name</label>
                            <hint/>
                        </gs_name></resource></resources></xf:instance><xf:instance id="readonly"><readonly/></xf:instance><xf:var name="fr-params" value="xxf:instance(''fr-parameters-instance'')"/><xf:var name="fr-mode" value="$fr-params/mode"/><xf:bind ref="instance(''fr-form-instance'')" readonly="                             fr:is-readonly-mode()         or                             instance(''readonly'') = ''true'' or                             fr:is-design-time()"/><xf:action event="xforms-model-construct-done" class="fr-design-time-preserve"><xf:var name="is-empty" value="empty(instance()/*)"/><xf:action if="$is-empty"><xf:insert context="instance()" origin="instance(''fr-form-template'')/*"/><xf:rebuild/><xf:recalculate xxf:defaults="true"/></xf:action><xf:action if="not($is-empty)"><xf:var xmlns:migration="java:org.orbeon.oxf.fr.SimpleDataMigration" name="simply-migrated" value="                                     migration:dataMaybeWithSimpleMigration(                                         event(''xxf:absolute-targetid''),                                         instance(''fr-form-template''),                                         instance()                                     )"/><xf:action if="exists($simply-migrated)"><xf:delete ref="instance()/*"/><xf:insert context="instance()" origin="$simply-migrated/*"/><xf:rebuild/><xf:recalculate xxf:defaults="true"/></xf:action></xf:action></xf:action><xf:action event="xforms-model-construct-done"><xf:insert xmlns:migration="java:org.orbeon.oxf.fr.SimpleDataMigration" iterate="migration:iterateBinds(event(''xxf:absolute-targetid''), instance())" context="." origin="xf:attribute(''fr:relevant'', ''false'')"/></xf:action><xf:insert observer="fr-section-template-view" event="xforms-disabled" xxf:phantom="true" if="event(''xxf:binding'')/root()/* is instance(''fr-form-instance'')" context="event(''xxf:binding'')" origin="xf:attribute(''fr:relevant'', ''false'')"/><xf:delete observer="fr-section-template-view" event="xforms-enabled" xxf:phantom="true" if="event(''xxf:binding'')/root() is instance(''fr-form-instance'')/root()" ref="event(''xxf:binding'')/@fr:relevant"/></xf:model></xbl:implementation><xbl:template><xf:group appearance="xxf:internal" model="section-1-model" id="fr-section-template-view"><xf:var name="context" id="context" value="xxf:binding-context(''gs-section-1-component'')"/><xf:var name="readonly" as="xs:boolean" value="exf:readonly($context)"><xf:setvalue event="xforms-enabled xforms-value-changed" ref="instance(''readonly'')" value="exf:readonly($context)" class="fr-design-time-preserve"/></xf:var><xf:var name="fr-resources" as="element()?"><xxf:value value="$fr-resources" xxbl:scope="outer"/></xf:var><xf:var name="form-resources" value="instance(''fr-form-resources'')/(resource[@xml:lang = xxf:instance(''fr-language-instance'')], resource[1])[1]" as="element(resource)"/><xf:label xmlns:oxf="http://www.orbeon.com/oxf/processors" ref="$form-resources/section-1/label"/><fr:grid xmlns:oxf="http://www.orbeon.com/oxf/processors" id="grid-1-grid" bind="grid-1-bind">
                        <fr:c y="1" x="1" w="12">
                            <xf:input id="gs_name-control" bind="gs_name-bind" class="fr-summary fr-search">
                                <xf:label ref="$form-resources/gs_name/label"/>
                                <xf:hint ref="$form-resources/gs_name/hint"/>
                                <xf:alert ref="$fr-resources/detail/labels/alert"/>
                            </xf:input>
                        </fr:c>
                    </fr:grid></xf:group></xbl:template></xbl:binding></xbl:xbl>


El lun, 25 ene 2021 a las 17:15, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Alex,

Still checking this error but the problem is only on Form Builder.

The form runner correctly renders the form in the NEW url. Also the EDIT page the form is correctly rendered.
Only the Form Builder does not display the form definition.

The root of the problem is unknown yet but if I found something I would let you know.

regards,
bruno



El vie, 22 ene 2021 a las 17:40, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Hi,

I think it is a problem of Form formats.

Because I executed some old TestCases that for sure had an old format (4.0, 4.8 i think) and also created some forms online so they were stored with 2019.1.0 format.

And is not supported to have different formats in the same PL.

I think this is because if I delete the old forms and only use the one created online then all forms are displayed correctly.

When different formats are mixed then the problems start.

Is there any way to transform old formats to new one with a script ?}

regards,
bruno






El jue, 21 ene 2021 a las 16:31, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Hi,

In which situation the Form Builder will set the form source to:
<dummy xmlns:xbl="http://www.w3.org/ns/xbl" xmlns:xxf="http://orbeon.org/oxf/xml/xforms"
       xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
       xmlns:saxon="http://saxon.sf.net/"
       xmlns:fbf="java:org.orbeon.oxf.fb.FormBuilderXPathApi"
       xmlns:fr="http://orbeon.org/oxf/xml/form-runner"
       xmlns:secure="java:org.orbeon.oxf.util.SecureUtils"
       xmlns:xf="http://www.w3.org/2002/xforms"
       xmlns:xh="http://www.w3.org/1999/xhtml"
       xmlns:p="http://www.orbeon.com/oxf/pipeline"
       xmlns:ev="http://www.w3.org/2001/xml-events"
       xmlns:xi="http://www.w3.org/2001/XInclude"
       xmlns:toolboxOps="java:org.orbeon.oxf.fb.ToolboxOps"
       xmlns:xs="http://www.w3.org/2001/XMLSchema"
       xmlns:frf="java:org.orbeon.oxf.fr.FormRunner"
       xmlns:fb="http://orbeon.org/oxf/xml/form-builder"/>

There is a bug in my Persistence Layer for any form that use a section library:
1) Create the form
2) Add a section from any library
3) Publish the form
4) Goto to summary
5) Edit the form
And now the form is not displayed and if I "Edit Source" in the Form Builder it display the HTML code above (with the dummy mode).

It is also strange that only happen with Publish because if it is only Save it can be edit normaly.

regards,
bruno

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/CALjxVcSPUzw_Cz%3Dsi2mjd_47Lzog8V82PkseySyttmA3ZV0T3w%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: PL: Dummy in Form Builder

Bruno
Hi Alex,

Just to confirm that is Orbeon that adds the extra <xbl:xbl> node and only does this on Publishing.
Because my services receive the XML string with that node added.

The workaround is to Save the form once after the Publishing and this action removes the extra node and the form can be edited from the Summary without problems.

regards,
bruno


El lun, 25 ene 2021 a las 18:13, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Alex,

I found the culprit but not sure yet why this is happening...
After Publishing a form an extra XML is added after <xf:model> node. Also the problems are forms with references to library forms.
(This does not happen when the form definition is Saved only after Publishing).

The node is the following (not sure if it is a bug on my PL or is an Orbeon thing):
<xbl:xbl xmlns:xbl="http://www.w3.org/ns/xbl" xmlns:fbf="java:org.orbeon.oxf.fb.FormBuilderXPathApi" xmlns:xxbl="http://orbeon.org/oxf/xml/xbl" xmlns:frf="java:org.orbeon.oxf.fr.FormRunner" xmlns:component="http://orbeon.org/oxf/xml/form-builder/component/gs/library" xmlns:p="http://www.orbeon.com/oxf/pipeline"><xbl:binding id="gs-section-1-component" element="component|section-1" class="fr-section-component"><xbl:implementation><xf:model id="section-1-model"><xf:instance id="fr-form-instance" xxbl:mirror="true" xxf:index="id"><empty/></xf:instance><xf:instance id="fr-form-template"><section-1>
                        <grid-1>
                            <gs_name/>
                        </grid-1>
                    </section-1></xf:instance><xf:bind id="fr-form-binds" ref="instance(''fr-form-instance'')"><xf:bind id="grid-1-bind" ref="grid-1" name="grid-1">
                        <xf:bind id="gs_name-bind" name="gs_name" ref="gs_name" xxf:whitespace="trim"/>
                    </xf:bind></xf:bind><xf:instance id="fr-form-resources" xxf:readonly="true"><resources><resource xml:lang="en"><section-1>
                            <label>Untitled Section</label>
                        </section-1><gs_name>
                            <label>GS Name</label>
                            <hint/>
                        </gs_name></resource></resources></xf:instance><xf:instance id="readonly"><readonly/></xf:instance><xf:var name="fr-params" value="xxf:instance(''fr-parameters-instance'')"/><xf:var name="fr-mode" value="$fr-params/mode"/><xf:bind ref="instance(''fr-form-instance'')" readonly="                             fr:is-readonly-mode()         or                             instance(''readonly'') = ''true'' or                             fr:is-design-time()"/><xf:action event="xforms-model-construct-done" class="fr-design-time-preserve"><xf:var name="is-empty" value="empty(instance()/*)"/><xf:action if="$is-empty"><xf:insert context="instance()" origin="instance(''fr-form-template'')/*"/><xf:rebuild/><xf:recalculate xxf:defaults="true"/></xf:action><xf:action if="not($is-empty)"><xf:var xmlns:migration="java:org.orbeon.oxf.fr.SimpleDataMigration" name="simply-migrated" value="                                     migration:dataMaybeWithSimpleMigration(                                         event(''xxf:absolute-targetid''),                                         instance(''fr-form-template''),                                         instance()                                     )"/><xf:action if="exists($simply-migrated)"><xf:delete ref="instance()/*"/><xf:insert context="instance()" origin="$simply-migrated/*"/><xf:rebuild/><xf:recalculate xxf:defaults="true"/></xf:action></xf:action></xf:action><xf:action event="xforms-model-construct-done"><xf:insert xmlns:migration="java:org.orbeon.oxf.fr.SimpleDataMigration" iterate="migration:iterateBinds(event(''xxf:absolute-targetid''), instance())" context="." origin="xf:attribute(''fr:relevant'', ''false'')"/></xf:action><xf:insert observer="fr-section-template-view" event="xforms-disabled" xxf:phantom="true" if="event(''xxf:binding'')/root()/* is instance(''fr-form-instance'')" context="event(''xxf:binding'')" origin="xf:attribute(''fr:relevant'', ''false'')"/><xf:delete observer="fr-section-template-view" event="xforms-enabled" xxf:phantom="true" if="event(''xxf:binding'')/root() is instance(''fr-form-instance'')/root()" ref="event(''xxf:binding'')/@fr:relevant"/></xf:model></xbl:implementation><xbl:template><xf:group appearance="xxf:internal" model="section-1-model" id="fr-section-template-view"><xf:var name="context" id="context" value="xxf:binding-context(''gs-section-1-component'')"/><xf:var name="readonly" as="xs:boolean" value="exf:readonly($context)"><xf:setvalue event="xforms-enabled xforms-value-changed" ref="instance(''readonly'')" value="exf:readonly($context)" class="fr-design-time-preserve"/></xf:var><xf:var name="fr-resources" as="element()?"><xxf:value value="$fr-resources" xxbl:scope="outer"/></xf:var><xf:var name="form-resources" value="instance(''fr-form-resources'')/(resource[@xml:lang = xxf:instance(''fr-language-instance'')], resource[1])[1]" as="element(resource)"/><xf:label xmlns:oxf="http://www.orbeon.com/oxf/processors" ref="$form-resources/section-1/label"/><fr:grid xmlns:oxf="http://www.orbeon.com/oxf/processors" id="grid-1-grid" bind="grid-1-bind">
                        <fr:c y="1" x="1" w="12">
                            <xf:input id="gs_name-control" bind="gs_name-bind" class="fr-summary fr-search">
                                <xf:label ref="$form-resources/gs_name/label"/>
                                <xf:hint ref="$form-resources/gs_name/hint"/>
                                <xf:alert ref="$fr-resources/detail/labels/alert"/>
                            </xf:input>
                        </fr:c>
                    </fr:grid></xf:group></xbl:template></xbl:binding></xbl:xbl>


El lun, 25 ene 2021 a las 17:15, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Alex,

Still checking this error but the problem is only on Form Builder.

The form runner correctly renders the form in the NEW url. Also the EDIT page the form is correctly rendered.
Only the Form Builder does not display the form definition.

The root of the problem is unknown yet but if I found something I would let you know.

regards,
bruno



El vie, 22 ene 2021 a las 17:40, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Hi,

I think it is a problem of Form formats.

Because I executed some old TestCases that for sure had an old format (4.0, 4.8 i think) and also created some forms online so they were stored with 2019.1.0 format.

And is not supported to have different formats in the same PL.

I think this is because if I delete the old forms and only use the one created online then all forms are displayed correctly.

When different formats are mixed then the problems start.

Is there any way to transform old formats to new one with a script ?}

regards,
bruno






El jue, 21 ene 2021 a las 16:31, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Hi,

In which situation the Form Builder will set the form source to:
<dummy xmlns:xbl="http://www.w3.org/ns/xbl" xmlns:xxf="http://orbeon.org/oxf/xml/xforms"
       xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
       xmlns:saxon="http://saxon.sf.net/"
       xmlns:fbf="java:org.orbeon.oxf.fb.FormBuilderXPathApi"
       xmlns:fr="http://orbeon.org/oxf/xml/form-runner"
       xmlns:secure="java:org.orbeon.oxf.util.SecureUtils"
       xmlns:xf="http://www.w3.org/2002/xforms"
       xmlns:xh="http://www.w3.org/1999/xhtml"
       xmlns:p="http://www.orbeon.com/oxf/pipeline"
       xmlns:ev="http://www.w3.org/2001/xml-events"
       xmlns:xi="http://www.w3.org/2001/XInclude"
       xmlns:toolboxOps="java:org.orbeon.oxf.fb.ToolboxOps"
       xmlns:xs="http://www.w3.org/2001/XMLSchema"
       xmlns:frf="java:org.orbeon.oxf.fr.FormRunner"
       xmlns:fb="http://orbeon.org/oxf/xml/form-builder"/>

There is a bug in my Persistence Layer for any form that use a section library:
1) Create the form
2) Add a section from any library
3) Publish the form
4) Goto to summary
5) Edit the form
And now the form is not displayed and if I "Edit Source" in the Form Builder it display the HTML code above (with the dummy mode).

It is also strange that only happen with Publish because if it is only Save it can be edit normaly.

regards,
bruno

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/CALjxVcROPM9kMMJZqGwd00Ay0v6t33B%3DoW-giSBqWd0hQZGdJA%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: PL: Dummy in Form Builder

Alessandro  Vernet
Administrator
Hi Bruno,

Are you saying that you:

1. Open the form in Form Builder, the form shows properly.
2. If you open edit source, that additional section does not show in the
source.
3. You publish the form.
4. You edit the source again, and now that additional section does show in
the source.
5. You reload the form in Form Builder, and the page shows empty.

Is this what is happening?

-Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1611692293650-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: PL: Dummy in Form Builder

Bruno
In reply to this post by Bruno
Alex,
1) Create the form
2) Add a section from the App library
3) Publish the form
4) Goto to summary
5) Edit the form
Orbeon 2020.1

At 3) Orbeon is sending the extra node in the XML string. Then in 5) the form is not displayed because of the extra node.

It does NOT happen with Save.

regards,
bruno

El lun, 25 ene 2021 a las 18:21, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Hi Alex,

Just to confirm that is Orbeon that adds the extra <xbl:xbl> node and only does this on Publishing.
Because my services receive the XML string with that node added.

The workaround is to Save the form once after the Publishing and this action removes the extra node and the form can be edited from the Summary without problems.

regards,
bruno


El lun, 25 ene 2021 a las 18:13, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Alex,

I found the culprit but not sure yet why this is happening...
After Publishing a form an extra XML is added after <xf:model> node. Also the problems are forms with references to library forms.
(This does not happen when the form definition is Saved only after Publishing).

The node is the following (not sure if it is a bug on my PL or is an Orbeon thing):
<xbl:xbl xmlns:xbl="http://www.w3.org/ns/xbl" xmlns:fbf="java:org.orbeon.oxf.fb.FormBuilderXPathApi" xmlns:xxbl="http://orbeon.org/oxf/xml/xbl" xmlns:frf="java:org.orbeon.oxf.fr.FormRunner" xmlns:component="http://orbeon.org/oxf/xml/form-builder/component/gs/library" xmlns:p="http://www.orbeon.com/oxf/pipeline"><xbl:binding id="gs-section-1-component" element="component|section-1" class="fr-section-component"><xbl:implementation><xf:model id="section-1-model"><xf:instance id="fr-form-instance" xxbl:mirror="true" xxf:index="id"><empty/></xf:instance><xf:instance id="fr-form-template"><section-1>
                        <grid-1>
                            <gs_name/>
                        </grid-1>
                    </section-1></xf:instance><xf:bind id="fr-form-binds" ref="instance(''fr-form-instance'')"><xf:bind id="grid-1-bind" ref="grid-1" name="grid-1">
                        <xf:bind id="gs_name-bind" name="gs_name" ref="gs_name" xxf:whitespace="trim"/>
                    </xf:bind></xf:bind><xf:instance id="fr-form-resources" xxf:readonly="true"><resources><resource xml:lang="en"><section-1>
                            <label>Untitled Section</label>
                        </section-1><gs_name>
                            <label>GS Name</label>
                            <hint/>
                        </gs_name></resource></resources></xf:instance><xf:instance id="readonly"><readonly/></xf:instance><xf:var name="fr-params" value="xxf:instance(''fr-parameters-instance'')"/><xf:var name="fr-mode" value="$fr-params/mode"/><xf:bind ref="instance(''fr-form-instance'')" readonly="                             fr:is-readonly-mode()         or                             instance(''readonly'') = ''true'' or                             fr:is-design-time()"/><xf:action event="xforms-model-construct-done" class="fr-design-time-preserve"><xf:var name="is-empty" value="empty(instance()/*)"/><xf:action if="$is-empty"><xf:insert context="instance()" origin="instance(''fr-form-template'')/*"/><xf:rebuild/><xf:recalculate xxf:defaults="true"/></xf:action><xf:action if="not($is-empty)"><xf:var xmlns:migration="java:org.orbeon.oxf.fr.SimpleDataMigration" name="simply-migrated" value="                                     migration:dataMaybeWithSimpleMigration(                                         event(''xxf:absolute-targetid''),                                         instance(''fr-form-template''),                                         instance()                                     )"/><xf:action if="exists($simply-migrated)"><xf:delete ref="instance()/*"/><xf:insert context="instance()" origin="$simply-migrated/*"/><xf:rebuild/><xf:recalculate xxf:defaults="true"/></xf:action></xf:action></xf:action><xf:action event="xforms-model-construct-done"><xf:insert xmlns:migration="java:org.orbeon.oxf.fr.SimpleDataMigration" iterate="migration:iterateBinds(event(''xxf:absolute-targetid''), instance())" context="." origin="xf:attribute(''fr:relevant'', ''false'')"/></xf:action><xf:insert observer="fr-section-template-view" event="xforms-disabled" xxf:phantom="true" if="event(''xxf:binding'')/root()/* is instance(''fr-form-instance'')" context="event(''xxf:binding'')" origin="xf:attribute(''fr:relevant'', ''false'')"/><xf:delete observer="fr-section-template-view" event="xforms-enabled" xxf:phantom="true" if="event(''xxf:binding'')/root() is instance(''fr-form-instance'')/root()" ref="event(''xxf:binding'')/@fr:relevant"/></xf:model></xbl:implementation><xbl:template><xf:group appearance="xxf:internal" model="section-1-model" id="fr-section-template-view"><xf:var name="context" id="context" value="xxf:binding-context(''gs-section-1-component'')"/><xf:var name="readonly" as="xs:boolean" value="exf:readonly($context)"><xf:setvalue event="xforms-enabled xforms-value-changed" ref="instance(''readonly'')" value="exf:readonly($context)" class="fr-design-time-preserve"/></xf:var><xf:var name="fr-resources" as="element()?"><xxf:value value="$fr-resources" xxbl:scope="outer"/></xf:var><xf:var name="form-resources" value="instance(''fr-form-resources'')/(resource[@xml:lang = xxf:instance(''fr-language-instance'')], resource[1])[1]" as="element(resource)"/><xf:label xmlns:oxf="http://www.orbeon.com/oxf/processors" ref="$form-resources/section-1/label"/><fr:grid xmlns:oxf="http://www.orbeon.com/oxf/processors" id="grid-1-grid" bind="grid-1-bind">
                        <fr:c y="1" x="1" w="12">
                            <xf:input id="gs_name-control" bind="gs_name-bind" class="fr-summary fr-search">
                                <xf:label ref="$form-resources/gs_name/label"/>
                                <xf:hint ref="$form-resources/gs_name/hint"/>
                                <xf:alert ref="$fr-resources/detail/labels/alert"/>
                            </xf:input>
                        </fr:c>
                    </fr:grid></xf:group></xbl:template></xbl:binding></xbl:xbl>


El lun, 25 ene 2021 a las 17:15, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Alex,

Still checking this error but the problem is only on Form Builder.

The form runner correctly renders the form in the NEW url. Also the EDIT page the form is correctly rendered.
Only the Form Builder does not display the form definition.

The root of the problem is unknown yet but if I found something I would let you know.

regards,
bruno



El vie, 22 ene 2021 a las 17:40, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Hi,

I think it is a problem of Form formats.

Because I executed some old TestCases that for sure had an old format (4.0, 4.8 i think) and also created some forms online so they were stored with 2019.1.0 format.

And is not supported to have different formats in the same PL.

I think this is because if I delete the old forms and only use the one created online then all forms are displayed correctly.

When different formats are mixed then the problems start.

Is there any way to transform old formats to new one with a script ?}

regards,
bruno






El jue, 21 ene 2021 a las 16:31, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Hi,

In which situation the Form Builder will set the form source to:
<dummy xmlns:xbl="http://www.w3.org/ns/xbl" xmlns:xxf="http://orbeon.org/oxf/xml/xforms"
       xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
       xmlns:saxon="http://saxon.sf.net/"
       xmlns:fbf="java:org.orbeon.oxf.fb.FormBuilderXPathApi"
       xmlns:fr="http://orbeon.org/oxf/xml/form-runner"
       xmlns:secure="java:org.orbeon.oxf.util.SecureUtils"
       xmlns:xf="http://www.w3.org/2002/xforms"
       xmlns:xh="http://www.w3.org/1999/xhtml"
       xmlns:p="http://www.orbeon.com/oxf/pipeline"
       xmlns:ev="http://www.w3.org/2001/xml-events"
       xmlns:xi="http://www.w3.org/2001/XInclude"
       xmlns:toolboxOps="java:org.orbeon.oxf.fb.ToolboxOps"
       xmlns:xs="http://www.w3.org/2001/XMLSchema"
       xmlns:frf="java:org.orbeon.oxf.fr.FormRunner"
       xmlns:fb="http://orbeon.org/oxf/xml/form-builder"/>

There is a bug in my Persistence Layer for any form that use a section library:
1) Create the form
2) Add a section from any library
3) Publish the form
4) Goto to summary
5) Edit the form
And now the form is not displayed and if I "Edit Source" in the Form Builder it display the HTML code above (with the dummy mode).

It is also strange that only happen with Publish because if it is only Save it can be edit normaly.

regards,
bruno

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/CALjxVcSL5aiaOhB_NWpdWB%3DRZwkrogP%2BKJ_ejGMwu1yDLsczOw%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: PL: Dummy in Form Builder

Alessandro  Vernet
Administrator
Got it Bruno, thank you for the precision. But I'm afraid I don't have much
of an idea of what could be going wrong. To get to the bottom of this, we'd
need to have minimal form that we can use to reproduce and debug this.

-Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1611810734713-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: PL: Dummy in Form Builder

Bruno
Hi,

Let me know when you deploy Orbeon 2020.1 on https://www.orbeon.com/try

I will try it there ...

regards,
bruno

--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1611851818418-0.post%40n4.nabble.com.
Reply | Threaded
Open this post in threaded view
|

Re: PL: Dummy in Form Builder

Bruno
In reply to this post by Bruno
Hi,

Let me know when you deploy Orbeon 2020.1 on https://www.orbeon.com/try

I will try it there ...

regards,
bruno

El mié, 27 ene 2021 a las 15:59, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Alex,
1) Create the form
2) Add a section from the App library
3) Publish the form
4) Goto to summary
5) Edit the form
Orbeon 2020.1

At 3) Orbeon is sending the extra node in the XML string. Then in 5) the form is not displayed because of the extra node.

It does NOT happen with Save.

regards,
bruno

El lun, 25 ene 2021 a las 18:21, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Hi Alex,

Just to confirm that is Orbeon that adds the extra <xbl:xbl> node and only does this on Publishing.
Because my services receive the XML string with that node added.

The workaround is to Save the form once after the Publishing and this action removes the extra node and the form can be edited from the Summary without problems.

regards,
bruno


El lun, 25 ene 2021 a las 18:13, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Alex,

I found the culprit but not sure yet why this is happening...
After Publishing a form an extra XML is added after <xf:model> node. Also the problems are forms with references to library forms.
(This does not happen when the form definition is Saved only after Publishing).

The node is the following (not sure if it is a bug on my PL or is an Orbeon thing):
<xbl:xbl xmlns:xbl="http://www.w3.org/ns/xbl" xmlns:fbf="java:org.orbeon.oxf.fb.FormBuilderXPathApi" xmlns:xxbl="http://orbeon.org/oxf/xml/xbl" xmlns:frf="java:org.orbeon.oxf.fr.FormRunner" xmlns:component="http://orbeon.org/oxf/xml/form-builder/component/gs/library" xmlns:p="http://www.orbeon.com/oxf/pipeline"><xbl:binding id="gs-section-1-component" element="component|section-1" class="fr-section-component"><xbl:implementation><xf:model id="section-1-model"><xf:instance id="fr-form-instance" xxbl:mirror="true" xxf:index="id"><empty/></xf:instance><xf:instance id="fr-form-template"><section-1>
                        <grid-1>
                            <gs_name/>
                        </grid-1>
                    </section-1></xf:instance><xf:bind id="fr-form-binds" ref="instance(''fr-form-instance'')"><xf:bind id="grid-1-bind" ref="grid-1" name="grid-1">
                        <xf:bind id="gs_name-bind" name="gs_name" ref="gs_name" xxf:whitespace="trim"/>
                    </xf:bind></xf:bind><xf:instance id="fr-form-resources" xxf:readonly="true"><resources><resource xml:lang="en"><section-1>
                            <label>Untitled Section</label>
                        </section-1><gs_name>
                            <label>GS Name</label>
                            <hint/>
                        </gs_name></resource></resources></xf:instance><xf:instance id="readonly"><readonly/></xf:instance><xf:var name="fr-params" value="xxf:instance(''fr-parameters-instance'')"/><xf:var name="fr-mode" value="$fr-params/mode"/><xf:bind ref="instance(''fr-form-instance'')" readonly="                             fr:is-readonly-mode()         or                             instance(''readonly'') = ''true'' or                             fr:is-design-time()"/><xf:action event="xforms-model-construct-done" class="fr-design-time-preserve"><xf:var name="is-empty" value="empty(instance()/*)"/><xf:action if="$is-empty"><xf:insert context="instance()" origin="instance(''fr-form-template'')/*"/><xf:rebuild/><xf:recalculate xxf:defaults="true"/></xf:action><xf:action if="not($is-empty)"><xf:var xmlns:migration="java:org.orbeon.oxf.fr.SimpleDataMigration" name="simply-migrated" value="                                     migration:dataMaybeWithSimpleMigration(                                         event(''xxf:absolute-targetid''),                                         instance(''fr-form-template''),                                         instance()                                     )"/><xf:action if="exists($simply-migrated)"><xf:delete ref="instance()/*"/><xf:insert context="instance()" origin="$simply-migrated/*"/><xf:rebuild/><xf:recalculate xxf:defaults="true"/></xf:action></xf:action></xf:action><xf:action event="xforms-model-construct-done"><xf:insert xmlns:migration="java:org.orbeon.oxf.fr.SimpleDataMigration" iterate="migration:iterateBinds(event(''xxf:absolute-targetid''), instance())" context="." origin="xf:attribute(''fr:relevant'', ''false'')"/></xf:action><xf:insert observer="fr-section-template-view" event="xforms-disabled" xxf:phantom="true" if="event(''xxf:binding'')/root()/* is instance(''fr-form-instance'')" context="event(''xxf:binding'')" origin="xf:attribute(''fr:relevant'', ''false'')"/><xf:delete observer="fr-section-template-view" event="xforms-enabled" xxf:phantom="true" if="event(''xxf:binding'')/root() is instance(''fr-form-instance'')/root()" ref="event(''xxf:binding'')/@fr:relevant"/></xf:model></xbl:implementation><xbl:template><xf:group appearance="xxf:internal" model="section-1-model" id="fr-section-template-view"><xf:var name="context" id="context" value="xxf:binding-context(''gs-section-1-component'')"/><xf:var name="readonly" as="xs:boolean" value="exf:readonly($context)"><xf:setvalue event="xforms-enabled xforms-value-changed" ref="instance(''readonly'')" value="exf:readonly($context)" class="fr-design-time-preserve"/></xf:var><xf:var name="fr-resources" as="element()?"><xxf:value value="$fr-resources" xxbl:scope="outer"/></xf:var><xf:var name="form-resources" value="instance(''fr-form-resources'')/(resource[@xml:lang = xxf:instance(''fr-language-instance'')], resource[1])[1]" as="element(resource)"/><xf:label xmlns:oxf="http://www.orbeon.com/oxf/processors" ref="$form-resources/section-1/label"/><fr:grid xmlns:oxf="http://www.orbeon.com/oxf/processors" id="grid-1-grid" bind="grid-1-bind">
                        <fr:c y="1" x="1" w="12">
                            <xf:input id="gs_name-control" bind="gs_name-bind" class="fr-summary fr-search">
                                <xf:label ref="$form-resources/gs_name/label"/>
                                <xf:hint ref="$form-resources/gs_name/hint"/>
                                <xf:alert ref="$fr-resources/detail/labels/alert"/>
                            </xf:input>
                        </fr:c>
                    </fr:grid></xf:group></xbl:template></xbl:binding></xbl:xbl>


El lun, 25 ene 2021 a las 17:15, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Alex,

Still checking this error but the problem is only on Form Builder.

The form runner correctly renders the form in the NEW url. Also the EDIT page the form is correctly rendered.
Only the Form Builder does not display the form definition.

The root of the problem is unknown yet but if I found something I would let you know.

regards,
bruno



El vie, 22 ene 2021 a las 17:40, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Hi,

I think it is a problem of Form formats.

Because I executed some old TestCases that for sure had an old format (4.0, 4.8 i think) and also created some forms online so they were stored with 2019.1.0 format.

And is not supported to have different formats in the same PL.

I think this is because if I delete the old forms and only use the one created online then all forms are displayed correctly.

When different formats are mixed then the problems start.

Is there any way to transform old formats to new one with a script ?}

regards,
bruno






El jue, 21 ene 2021 a las 16:31, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Hi,

In which situation the Form Builder will set the form source to:
<dummy xmlns:xbl="http://www.w3.org/ns/xbl" xmlns:xxf="http://orbeon.org/oxf/xml/xforms"
       xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
       xmlns:saxon="http://saxon.sf.net/"
       xmlns:fbf="java:org.orbeon.oxf.fb.FormBuilderXPathApi"
       xmlns:fr="http://orbeon.org/oxf/xml/form-runner"
       xmlns:secure="java:org.orbeon.oxf.util.SecureUtils"
       xmlns:xf="http://www.w3.org/2002/xforms"
       xmlns:xh="http://www.w3.org/1999/xhtml"
       xmlns:p="http://www.orbeon.com/oxf/pipeline"
       xmlns:ev="http://www.w3.org/2001/xml-events"
       xmlns:xi="http://www.w3.org/2001/XInclude"
       xmlns:toolboxOps="java:org.orbeon.oxf.fb.ToolboxOps"
       xmlns:xs="http://www.w3.org/2001/XMLSchema"
       xmlns:frf="java:org.orbeon.oxf.fr.FormRunner"
       xmlns:fb="http://orbeon.org/oxf/xml/form-builder"/>

There is a bug in my Persistence Layer for any form that use a section library:
1) Create the form
2) Add a section from any library
3) Publish the form
4) Goto to summary
5) Edit the form
And now the form is not displayed and if I "Edit Source" in the Form Builder it display the HTML code above (with the dummy mode).

It is also strange that only happen with Publish because if it is only Save it can be edit normaly.

regards,
bruno

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/CALjxVcRME6q%2BMrRCs%2BcHx_LgMSHt1k1%2ByJ70J_3Z339%2BmddvSw%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: PL: Dummy in Form Builder

Alessandro  Vernet
Administrator
Bruno, will do.

-Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1611899349290-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: PL: Dummy in Form Builder

Alessandro  Vernet
Administrator
Bruno, here you go: 2020.1.1 is now deployed on https://demo.orbeon.com.

-Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1612461146657-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: PL: Dummy in Form Builder

Bruno
In reply to this post by Bruno
Alex,

Orbeon 2020.1.1 behave as expected.

My local installation is 2020.1, so i will upgrade and check if it is happening.

regards,
bruno

El jue, 28 ene 2021 a las 13:38, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Hi,

Let me know when you deploy Orbeon 2020.1 on https://www.orbeon.com/try

I will try it there ...

regards,
bruno

El mié, 27 ene 2021 a las 15:59, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Alex,
1) Create the form
2) Add a section from the App library
3) Publish the form
4) Goto to summary
5) Edit the form
Orbeon 2020.1

At 3) Orbeon is sending the extra node in the XML string. Then in 5) the form is not displayed because of the extra node.

It does NOT happen with Save.

regards,
bruno

El lun, 25 ene 2021 a las 18:21, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Hi Alex,

Just to confirm that is Orbeon that adds the extra <xbl:xbl> node and only does this on Publishing.
Because my services receive the XML string with that node added.

The workaround is to Save the form once after the Publishing and this action removes the extra node and the form can be edited from the Summary without problems.

regards,
bruno


El lun, 25 ene 2021 a las 18:13, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Alex,

I found the culprit but not sure yet why this is happening...
After Publishing a form an extra XML is added after <xf:model> node. Also the problems are forms with references to library forms.
(This does not happen when the form definition is Saved only after Publishing).

The node is the following (not sure if it is a bug on my PL or is an Orbeon thing):
<xbl:xbl xmlns:xbl="http://www.w3.org/ns/xbl" xmlns:fbf="java:org.orbeon.oxf.fb.FormBuilderXPathApi" xmlns:xxbl="http://orbeon.org/oxf/xml/xbl" xmlns:frf="java:org.orbeon.oxf.fr.FormRunner" xmlns:component="http://orbeon.org/oxf/xml/form-builder/component/gs/library" xmlns:p="http://www.orbeon.com/oxf/pipeline"><xbl:binding id="gs-section-1-component" element="component|section-1" class="fr-section-component"><xbl:implementation><xf:model id="section-1-model"><xf:instance id="fr-form-instance" xxbl:mirror="true" xxf:index="id"><empty/></xf:instance><xf:instance id="fr-form-template"><section-1>
                        <grid-1>
                            <gs_name/>
                        </grid-1>
                    </section-1></xf:instance><xf:bind id="fr-form-binds" ref="instance(''fr-form-instance'')"><xf:bind id="grid-1-bind" ref="grid-1" name="grid-1">
                        <xf:bind id="gs_name-bind" name="gs_name" ref="gs_name" xxf:whitespace="trim"/>
                    </xf:bind></xf:bind><xf:instance id="fr-form-resources" xxf:readonly="true"><resources><resource xml:lang="en"><section-1>
                            <label>Untitled Section</label>
                        </section-1><gs_name>
                            <label>GS Name</label>
                            <hint/>
                        </gs_name></resource></resources></xf:instance><xf:instance id="readonly"><readonly/></xf:instance><xf:var name="fr-params" value="xxf:instance(''fr-parameters-instance'')"/><xf:var name="fr-mode" value="$fr-params/mode"/><xf:bind ref="instance(''fr-form-instance'')" readonly="                             fr:is-readonly-mode()         or                             instance(''readonly'') = ''true'' or                             fr:is-design-time()"/><xf:action event="xforms-model-construct-done" class="fr-design-time-preserve"><xf:var name="is-empty" value="empty(instance()/*)"/><xf:action if="$is-empty"><xf:insert context="instance()" origin="instance(''fr-form-template'')/*"/><xf:rebuild/><xf:recalculate xxf:defaults="true"/></xf:action><xf:action if="not($is-empty)"><xf:var xmlns:migration="java:org.orbeon.oxf.fr.SimpleDataMigration" name="simply-migrated" value="                                     migration:dataMaybeWithSimpleMigration(                                         event(''xxf:absolute-targetid''),                                         instance(''fr-form-template''),                                         instance()                                     )"/><xf:action if="exists($simply-migrated)"><xf:delete ref="instance()/*"/><xf:insert context="instance()" origin="$simply-migrated/*"/><xf:rebuild/><xf:recalculate xxf:defaults="true"/></xf:action></xf:action></xf:action><xf:action event="xforms-model-construct-done"><xf:insert xmlns:migration="java:org.orbeon.oxf.fr.SimpleDataMigration" iterate="migration:iterateBinds(event(''xxf:absolute-targetid''), instance())" context="." origin="xf:attribute(''fr:relevant'', ''false'')"/></xf:action><xf:insert observer="fr-section-template-view" event="xforms-disabled" xxf:phantom="true" if="event(''xxf:binding'')/root()/* is instance(''fr-form-instance'')" context="event(''xxf:binding'')" origin="xf:attribute(''fr:relevant'', ''false'')"/><xf:delete observer="fr-section-template-view" event="xforms-enabled" xxf:phantom="true" if="event(''xxf:binding'')/root() is instance(''fr-form-instance'')/root()" ref="event(''xxf:binding'')/@fr:relevant"/></xf:model></xbl:implementation><xbl:template><xf:group appearance="xxf:internal" model="section-1-model" id="fr-section-template-view"><xf:var name="context" id="context" value="xxf:binding-context(''gs-section-1-component'')"/><xf:var name="readonly" as="xs:boolean" value="exf:readonly($context)"><xf:setvalue event="xforms-enabled xforms-value-changed" ref="instance(''readonly'')" value="exf:readonly($context)" class="fr-design-time-preserve"/></xf:var><xf:var name="fr-resources" as="element()?"><xxf:value value="$fr-resources" xxbl:scope="outer"/></xf:var><xf:var name="form-resources" value="instance(''fr-form-resources'')/(resource[@xml:lang = xxf:instance(''fr-language-instance'')], resource[1])[1]" as="element(resource)"/><xf:label xmlns:oxf="http://www.orbeon.com/oxf/processors" ref="$form-resources/section-1/label"/><fr:grid xmlns:oxf="http://www.orbeon.com/oxf/processors" id="grid-1-grid" bind="grid-1-bind">
                        <fr:c y="1" x="1" w="12">
                            <xf:input id="gs_name-control" bind="gs_name-bind" class="fr-summary fr-search">
                                <xf:label ref="$form-resources/gs_name/label"/>
                                <xf:hint ref="$form-resources/gs_name/hint"/>
                                <xf:alert ref="$fr-resources/detail/labels/alert"/>
                            </xf:input>
                        </fr:c>
                    </fr:grid></xf:group></xbl:template></xbl:binding></xbl:xbl>


El lun, 25 ene 2021 a las 17:15, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Alex,

Still checking this error but the problem is only on Form Builder.

The form runner correctly renders the form in the NEW url. Also the EDIT page the form is correctly rendered.
Only the Form Builder does not display the form definition.

The root of the problem is unknown yet but if I found something I would let you know.

regards,
bruno



El vie, 22 ene 2021 a las 17:40, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Hi,

I think it is a problem of Form formats.

Because I executed some old TestCases that for sure had an old format (4.0, 4.8 i think) and also created some forms online so they were stored with 2019.1.0 format.

And is not supported to have different formats in the same PL.

I think this is because if I delete the old forms and only use the one created online then all forms are displayed correctly.

When different formats are mixed then the problems start.

Is there any way to transform old formats to new one with a script ?}

regards,
bruno






El jue, 21 ene 2021 a las 16:31, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Hi,

In which situation the Form Builder will set the form source to:
<dummy xmlns:xbl="http://www.w3.org/ns/xbl" xmlns:xxf="http://orbeon.org/oxf/xml/xforms"
       xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
       xmlns:saxon="http://saxon.sf.net/"
       xmlns:fbf="java:org.orbeon.oxf.fb.FormBuilderXPathApi"
       xmlns:fr="http://orbeon.org/oxf/xml/form-runner"
       xmlns:secure="java:org.orbeon.oxf.util.SecureUtils"
       xmlns:xf="http://www.w3.org/2002/xforms"
       xmlns:xh="http://www.w3.org/1999/xhtml"
       xmlns:p="http://www.orbeon.com/oxf/pipeline"
       xmlns:ev="http://www.w3.org/2001/xml-events"
       xmlns:xi="http://www.w3.org/2001/XInclude"
       xmlns:toolboxOps="java:org.orbeon.oxf.fb.ToolboxOps"
       xmlns:xs="http://www.w3.org/2001/XMLSchema"
       xmlns:frf="java:org.orbeon.oxf.fr.FormRunner"
       xmlns:fb="http://orbeon.org/oxf/xml/form-builder"/>

There is a bug in my Persistence Layer for any form that use a section library:
1) Create the form
2) Add a section from any library
3) Publish the form
4) Goto to summary
5) Edit the form
And now the form is not displayed and if I "Edit Source" in the Form Builder it display the HTML code above (with the dummy mode).

It is also strange that only happen with Publish because if it is only Save it can be edit normaly.

regards,
bruno

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/CALjxVcSEYNHQYkzkm_5xxhbgs7560-_muOcvzt1bX52QA-77wA%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: PL: Dummy in Form Builder

Bruno
Alex,

I have made a video with the problem:
1) It shows the library
2) Create a new form using a section of 1)
3) Publish it
4) With a breakpoint it show the extra XBL node that is inserted in the XML of the form (with Save this does not happend)
5) Try to edit 3) but nothing is displayed

Maybe the video gives you some clues of the cause:


El vie, 5 feb 2021 a las 16:44, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Alex,

Orbeon 2020.1.1 behave as expected.

My local installation is 2020.1, so i will upgrade and check if it is happening.

regards,
bruno

El jue, 28 ene 2021 a las 13:38, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Hi,

Let me know when you deploy Orbeon 2020.1 on https://www.orbeon.com/try

I will try it there ...

regards,
bruno

El mié, 27 ene 2021 a las 15:59, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Alex,
1) Create the form
2) Add a section from the App library
3) Publish the form
4) Goto to summary
5) Edit the form
Orbeon 2020.1

At 3) Orbeon is sending the extra node in the XML string. Then in 5) the form is not displayed because of the extra node.

It does NOT happen with Save.

regards,
bruno

El lun, 25 ene 2021 a las 18:21, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Hi Alex,

Just to confirm that is Orbeon that adds the extra <xbl:xbl> node and only does this on Publishing.
Because my services receive the XML string with that node added.

The workaround is to Save the form once after the Publishing and this action removes the extra node and the form can be edited from the Summary without problems.

regards,
bruno


El lun, 25 ene 2021 a las 18:13, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Alex,

I found the culprit but not sure yet why this is happening...
After Publishing a form an extra XML is added after <xf:model> node. Also the problems are forms with references to library forms.
(This does not happen when the form definition is Saved only after Publishing).

The node is the following (not sure if it is a bug on my PL or is an Orbeon thing):
<xbl:xbl xmlns:xbl="http://www.w3.org/ns/xbl" xmlns:fbf="java:org.orbeon.oxf.fb.FormBuilderXPathApi" xmlns:xxbl="http://orbeon.org/oxf/xml/xbl" xmlns:frf="java:org.orbeon.oxf.fr.FormRunner" xmlns:component="http://orbeon.org/oxf/xml/form-builder/component/gs/library" xmlns:p="http://www.orbeon.com/oxf/pipeline"><xbl:binding id="gs-section-1-component" element="component|section-1" class="fr-section-component"><xbl:implementation><xf:model id="section-1-model"><xf:instance id="fr-form-instance" xxbl:mirror="true" xxf:index="id"><empty/></xf:instance><xf:instance id="fr-form-template"><section-1>
                        <grid-1>
                            <gs_name/>
                        </grid-1>
                    </section-1></xf:instance><xf:bind id="fr-form-binds" ref="instance(''fr-form-instance'')"><xf:bind id="grid-1-bind" ref="grid-1" name="grid-1">
                        <xf:bind id="gs_name-bind" name="gs_name" ref="gs_name" xxf:whitespace="trim"/>
                    </xf:bind></xf:bind><xf:instance id="fr-form-resources" xxf:readonly="true"><resources><resource xml:lang="en"><section-1>
                            <label>Untitled Section</label>
                        </section-1><gs_name>
                            <label>GS Name</label>
                            <hint/>
                        </gs_name></resource></resources></xf:instance><xf:instance id="readonly"><readonly/></xf:instance><xf:var name="fr-params" value="xxf:instance(''fr-parameters-instance'')"/><xf:var name="fr-mode" value="$fr-params/mode"/><xf:bind ref="instance(''fr-form-instance'')" readonly="                             fr:is-readonly-mode()         or                             instance(''readonly'') = ''true'' or                             fr:is-design-time()"/><xf:action event="xforms-model-construct-done" class="fr-design-time-preserve"><xf:var name="is-empty" value="empty(instance()/*)"/><xf:action if="$is-empty"><xf:insert context="instance()" origin="instance(''fr-form-template'')/*"/><xf:rebuild/><xf:recalculate xxf:defaults="true"/></xf:action><xf:action if="not($is-empty)"><xf:var xmlns:migration="java:org.orbeon.oxf.fr.SimpleDataMigration" name="simply-migrated" value="                                     migration:dataMaybeWithSimpleMigration(                                         event(''xxf:absolute-targetid''),                                         instance(''fr-form-template''),                                         instance()                                     )"/><xf:action if="exists($simply-migrated)"><xf:delete ref="instance()/*"/><xf:insert context="instance()" origin="$simply-migrated/*"/><xf:rebuild/><xf:recalculate xxf:defaults="true"/></xf:action></xf:action></xf:action><xf:action event="xforms-model-construct-done"><xf:insert xmlns:migration="java:org.orbeon.oxf.fr.SimpleDataMigration" iterate="migration:iterateBinds(event(''xxf:absolute-targetid''), instance())" context="." origin="xf:attribute(''fr:relevant'', ''false'')"/></xf:action><xf:insert observer="fr-section-template-view" event="xforms-disabled" xxf:phantom="true" if="event(''xxf:binding'')/root()/* is instance(''fr-form-instance'')" context="event(''xxf:binding'')" origin="xf:attribute(''fr:relevant'', ''false'')"/><xf:delete observer="fr-section-template-view" event="xforms-enabled" xxf:phantom="true" if="event(''xxf:binding'')/root() is instance(''fr-form-instance'')/root()" ref="event(''xxf:binding'')/@fr:relevant"/></xf:model></xbl:implementation><xbl:template><xf:group appearance="xxf:internal" model="section-1-model" id="fr-section-template-view"><xf:var name="context" id="context" value="xxf:binding-context(''gs-section-1-component'')"/><xf:var name="readonly" as="xs:boolean" value="exf:readonly($context)"><xf:setvalue event="xforms-enabled xforms-value-changed" ref="instance(''readonly'')" value="exf:readonly($context)" class="fr-design-time-preserve"/></xf:var><xf:var name="fr-resources" as="element()?"><xxf:value value="$fr-resources" xxbl:scope="outer"/></xf:var><xf:var name="form-resources" value="instance(''fr-form-resources'')/(resource[@xml:lang = xxf:instance(''fr-language-instance'')], resource[1])[1]" as="element(resource)"/><xf:label xmlns:oxf="http://www.orbeon.com/oxf/processors" ref="$form-resources/section-1/label"/><fr:grid xmlns:oxf="http://www.orbeon.com/oxf/processors" id="grid-1-grid" bind="grid-1-bind">
                        <fr:c y="1" x="1" w="12">
                            <xf:input id="gs_name-control" bind="gs_name-bind" class="fr-summary fr-search">
                                <xf:label ref="$form-resources/gs_name/label"/>
                                <xf:hint ref="$form-resources/gs_name/hint"/>
                                <xf:alert ref="$fr-resources/detail/labels/alert"/>
                            </xf:input>
                        </fr:c>
                    </fr:grid></xf:group></xbl:template></xbl:binding></xbl:xbl>


El lun, 25 ene 2021 a las 17:15, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Alex,

Still checking this error but the problem is only on Form Builder.

The form runner correctly renders the form in the NEW url. Also the EDIT page the form is correctly rendered.
Only the Form Builder does not display the form definition.

The root of the problem is unknown yet but if I found something I would let you know.

regards,
bruno



El vie, 22 ene 2021 a las 17:40, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Hi,

I think it is a problem of Form formats.

Because I executed some old TestCases that for sure had an old format (4.0, 4.8 i think) and also created some forms online so they were stored with 2019.1.0 format.

And is not supported to have different formats in the same PL.

I think this is because if I delete the old forms and only use the one created online then all forms are displayed correctly.

When different formats are mixed then the problems start.

Is there any way to transform old formats to new one with a script ?}

regards,
bruno






El jue, 21 ene 2021 a las 16:31, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Hi,

In which situation the Form Builder will set the form source to:
<dummy xmlns:xbl="http://www.w3.org/ns/xbl" xmlns:xxf="http://orbeon.org/oxf/xml/xforms"
       xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
       xmlns:saxon="http://saxon.sf.net/"
       xmlns:fbf="java:org.orbeon.oxf.fb.FormBuilderXPathApi"
       xmlns:fr="http://orbeon.org/oxf/xml/form-runner"
       xmlns:secure="java:org.orbeon.oxf.util.SecureUtils"
       xmlns:xf="http://www.w3.org/2002/xforms"
       xmlns:xh="http://www.w3.org/1999/xhtml"
       xmlns:p="http://www.orbeon.com/oxf/pipeline"
       xmlns:ev="http://www.w3.org/2001/xml-events"
       xmlns:xi="http://www.w3.org/2001/XInclude"
       xmlns:toolboxOps="java:org.orbeon.oxf.fb.ToolboxOps"
       xmlns:xs="http://www.w3.org/2001/XMLSchema"
       xmlns:frf="java:org.orbeon.oxf.fr.FormRunner"
       xmlns:fb="http://orbeon.org/oxf/xml/form-builder"/>

There is a bug in my Persistence Layer for any form that use a section library:
1) Create the form
2) Add a section from any library
3) Publish the form
4) Goto to summary
5) Edit the form
And now the form is not displayed and if I "Edit Source" in the Form Builder it display the HTML code above (with the dummy mode).

It is also strange that only happen with Publish because if it is only Save it can be edit normaly.

regards,
bruno

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/CALjxVcTw7f12G2sR2UXWpUMgx8MOAj8CkNJPiKjLqD8ttxL%2BGg%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: PL: Dummy in Form Builder

Alessandro  Vernet
Administrator
Hi Bruno,

You are saying that 2020.1.1 behaves as expected, and that the problem only
happened with 2020.1? Then the issue is fixed, isn't it, or am I missing
something?

-Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1612833579116-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: PL: Dummy in Form Builder

Bruno
In reply to this post by Bruno
Alex,

It happens on Orbeon 2020.1.1 but only with my Persistence Layer. If i switch to MySQL it works fine.

I do not know why the <xbl:xbl>... node is being added on Publish action only (see previous post for the complete <xbl> node).
Also the XML is taken from http put request directly so at this point my PL is doing nothing only reading the XML from the request body (which already has the <xbl> node).

regards,
bruno


El vie, 5 feb 2021 a las 18:48, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Alex,

I have made a video with the problem:
1) It shows the library
2) Create a new form using a section of 1)
3) Publish it
4) With a breakpoint it show the extra XBL node that is inserted in the XML of the form (with Save this does not happend)
5) Try to edit 3) but nothing is displayed

Maybe the video gives you some clues of the cause:


El vie, 5 feb 2021 a las 16:44, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Alex,

Orbeon 2020.1.1 behave as expected.

My local installation is 2020.1, so i will upgrade and check if it is happening.

regards,
bruno

El jue, 28 ene 2021 a las 13:38, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Hi,

Let me know when you deploy Orbeon 2020.1 on https://www.orbeon.com/try

I will try it there ...

regards,
bruno

El mié, 27 ene 2021 a las 15:59, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Alex,
1) Create the form
2) Add a section from the App library
3) Publish the form
4) Goto to summary
5) Edit the form
Orbeon 2020.1

At 3) Orbeon is sending the extra node in the XML string. Then in 5) the form is not displayed because of the extra node.

It does NOT happen with Save.

regards,
bruno

El lun, 25 ene 2021 a las 18:21, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Hi Alex,

Just to confirm that is Orbeon that adds the extra <xbl:xbl> node and only does this on Publishing.
Because my services receive the XML string with that node added.

The workaround is to Save the form once after the Publishing and this action removes the extra node and the form can be edited from the Summary without problems.

regards,
bruno


El lun, 25 ene 2021 a las 18:13, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Alex,

I found the culprit but not sure yet why this is happening...
After Publishing a form an extra XML is added after <xf:model> node. Also the problems are forms with references to library forms.
(This does not happen when the form definition is Saved only after Publishing).

The node is the following (not sure if it is a bug on my PL or is an Orbeon thing):
<xbl:xbl xmlns:xbl="http://www.w3.org/ns/xbl" xmlns:fbf="java:org.orbeon.oxf.fb.FormBuilderXPathApi" xmlns:xxbl="http://orbeon.org/oxf/xml/xbl" xmlns:frf="java:org.orbeon.oxf.fr.FormRunner" xmlns:component="http://orbeon.org/oxf/xml/form-builder/component/gs/library" xmlns:p="http://www.orbeon.com/oxf/pipeline"><xbl:binding id="gs-section-1-component" element="component|section-1" class="fr-section-component"><xbl:implementation><xf:model id="section-1-model"><xf:instance id="fr-form-instance" xxbl:mirror="true" xxf:index="id"><empty/></xf:instance><xf:instance id="fr-form-template"><section-1>
                        <grid-1>
                            <gs_name/>
                        </grid-1>
                    </section-1></xf:instance><xf:bind id="fr-form-binds" ref="instance(''fr-form-instance'')"><xf:bind id="grid-1-bind" ref="grid-1" name="grid-1">
                        <xf:bind id="gs_name-bind" name="gs_name" ref="gs_name" xxf:whitespace="trim"/>
                    </xf:bind></xf:bind><xf:instance id="fr-form-resources" xxf:readonly="true"><resources><resource xml:lang="en"><section-1>
                            <label>Untitled Section</label>
                        </section-1><gs_name>
                            <label>GS Name</label>
                            <hint/>
                        </gs_name></resource></resources></xf:instance><xf:instance id="readonly"><readonly/></xf:instance><xf:var name="fr-params" value="xxf:instance(''fr-parameters-instance'')"/><xf:var name="fr-mode" value="$fr-params/mode"/><xf:bind ref="instance(''fr-form-instance'')" readonly="                             fr:is-readonly-mode()         or                             instance(''readonly'') = ''true'' or                             fr:is-design-time()"/><xf:action event="xforms-model-construct-done" class="fr-design-time-preserve"><xf:var name="is-empty" value="empty(instance()/*)"/><xf:action if="$is-empty"><xf:insert context="instance()" origin="instance(''fr-form-template'')/*"/><xf:rebuild/><xf:recalculate xxf:defaults="true"/></xf:action><xf:action if="not($is-empty)"><xf:var xmlns:migration="java:org.orbeon.oxf.fr.SimpleDataMigration" name="simply-migrated" value="                                     migration:dataMaybeWithSimpleMigration(                                         event(''xxf:absolute-targetid''),                                         instance(''fr-form-template''),                                         instance()                                     )"/><xf:action if="exists($simply-migrated)"><xf:delete ref="instance()/*"/><xf:insert context="instance()" origin="$simply-migrated/*"/><xf:rebuild/><xf:recalculate xxf:defaults="true"/></xf:action></xf:action></xf:action><xf:action event="xforms-model-construct-done"><xf:insert xmlns:migration="java:org.orbeon.oxf.fr.SimpleDataMigration" iterate="migration:iterateBinds(event(''xxf:absolute-targetid''), instance())" context="." origin="xf:attribute(''fr:relevant'', ''false'')"/></xf:action><xf:insert observer="fr-section-template-view" event="xforms-disabled" xxf:phantom="true" if="event(''xxf:binding'')/root()/* is instance(''fr-form-instance'')" context="event(''xxf:binding'')" origin="xf:attribute(''fr:relevant'', ''false'')"/><xf:delete observer="fr-section-template-view" event="xforms-enabled" xxf:phantom="true" if="event(''xxf:binding'')/root() is instance(''fr-form-instance'')/root()" ref="event(''xxf:binding'')/@fr:relevant"/></xf:model></xbl:implementation><xbl:template><xf:group appearance="xxf:internal" model="section-1-model" id="fr-section-template-view"><xf:var name="context" id="context" value="xxf:binding-context(''gs-section-1-component'')"/><xf:var name="readonly" as="xs:boolean" value="exf:readonly($context)"><xf:setvalue event="xforms-enabled xforms-value-changed" ref="instance(''readonly'')" value="exf:readonly($context)" class="fr-design-time-preserve"/></xf:var><xf:var name="fr-resources" as="element()?"><xxf:value value="$fr-resources" xxbl:scope="outer"/></xf:var><xf:var name="form-resources" value="instance(''fr-form-resources'')/(resource[@xml:lang = xxf:instance(''fr-language-instance'')], resource[1])[1]" as="element(resource)"/><xf:label xmlns:oxf="http://www.orbeon.com/oxf/processors" ref="$form-resources/section-1/label"/><fr:grid xmlns:oxf="http://www.orbeon.com/oxf/processors" id="grid-1-grid" bind="grid-1-bind">
                        <fr:c y="1" x="1" w="12">
                            <xf:input id="gs_name-control" bind="gs_name-bind" class="fr-summary fr-search">
                                <xf:label ref="$form-resources/gs_name/label"/>
                                <xf:hint ref="$form-resources/gs_name/hint"/>
                                <xf:alert ref="$fr-resources/detail/labels/alert"/>
                            </xf:input>
                        </fr:c>
                    </fr:grid></xf:group></xbl:template></xbl:binding></xbl:xbl>


El lun, 25 ene 2021 a las 17:15, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Alex,

Still checking this error but the problem is only on Form Builder.

The form runner correctly renders the form in the NEW url. Also the EDIT page the form is correctly rendered.
Only the Form Builder does not display the form definition.

The root of the problem is unknown yet but if I found something I would let you know.

regards,
bruno



El vie, 22 ene 2021 a las 17:40, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Hi,

I think it is a problem of Form formats.

Because I executed some old TestCases that for sure had an old format (4.0, 4.8 i think) and also created some forms online so they were stored with 2019.1.0 format.

And is not supported to have different formats in the same PL.

I think this is because if I delete the old forms and only use the one created online then all forms are displayed correctly.

When different formats are mixed then the problems start.

Is there any way to transform old formats to new one with a script ?}

regards,
bruno






El jue, 21 ene 2021 a las 16:31, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Hi,

In which situation the Form Builder will set the form source to:
<dummy xmlns:xbl="http://www.w3.org/ns/xbl" xmlns:xxf="http://orbeon.org/oxf/xml/xforms"
       xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
       xmlns:saxon="http://saxon.sf.net/"
       xmlns:fbf="java:org.orbeon.oxf.fb.FormBuilderXPathApi"
       xmlns:fr="http://orbeon.org/oxf/xml/form-runner"
       xmlns:secure="java:org.orbeon.oxf.util.SecureUtils"
       xmlns:xf="http://www.w3.org/2002/xforms"
       xmlns:xh="http://www.w3.org/1999/xhtml"
       xmlns:p="http://www.orbeon.com/oxf/pipeline"
       xmlns:ev="http://www.w3.org/2001/xml-events"
       xmlns:xi="http://www.w3.org/2001/XInclude"
       xmlns:toolboxOps="java:org.orbeon.oxf.fb.ToolboxOps"
       xmlns:xs="http://www.w3.org/2001/XMLSchema"
       xmlns:frf="java:org.orbeon.oxf.fr.FormRunner"
       xmlns:fb="http://orbeon.org/oxf/xml/form-builder"/>

There is a bug in my Persistence Layer for any form that use a section library:
1) Create the form
2) Add a section from any library
3) Publish the form
4) Goto to summary
5) Edit the form
And now the form is not displayed and if I "Edit Source" in the Form Builder it display the HTML code above (with the dummy mode).

It is also strange that only happen with Publish because if it is only Save it can be edit normaly.

regards,
bruno

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/CALjxVcSecU96%2B_x-6NNy7vpyBJ0sUKB85beK8B-yZO9d6APN1Q%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: PL: Dummy in Form Builder

Bruno
Alex,

This is a complete form with the XBL node added, search for "xbl:xbl".

<?xml version="1.0" encoding="UTF-8"?>
<xh:html xmlns:array="http://www.w3.org/2005/xpath-functions/array" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:exf="http://www.exforms.org/exf/1-0" xmlns:fb="http://orbeon.org/oxf/xml/form-builder" xmlns:fr="http://orbeon.org/oxf/xml/form-runner" xmlns:map="http://www.w3.org/2005/xpath-functions/map" xmlns:saxon="http://saxon.sf.net/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sql="http://orbeon.org/oxf/xml/sql" xmlns:xf="http://www.w3.org/2002/xforms" xmlns:xh="http://www.w3.org/1999/xhtml" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xxf="http://orbeon.org/oxf/xml/xforms" xmlns:xxi="http://orbeon.org/oxf/xml/xinclude">
<xh:head>
<xh:title>11</xh:title>
<xf:model xxf:analysis.calculate="true" xxf:expose-xpath-types="true" id="fr-form-model">
<!-- Main instance -->
<xf:instance xxf:exclude-result-prefixes="#all" id="fr-form-instance" xxf:index="id">
<form>
<section-2>
<grid-1>
<name/>
<surname/>
</grid-1>
</section-2>
</form>
</xf:instance>
<!-- Bindings -->
<xf:bind id="fr-form-binds" ref="instance(''fr-form-instance'')">
<xf:bind id="section-2-bind" name="section-2" ref="section-2"/>
</xf:bind>
<!-- Metadata -->
<xf:instance xxf:exclude-result-prefixes="#all" id="fr-form-metadata" xxf:readonly="true">
<metadata>
<application-name>gs</application-name>
<form-name>test11</form-name>
<title xml:lang="en">11</title>
<description xml:lang="en"/>
<created-with-version>2020.1.1.202102012142 PE</created-with-version>
<library-versions>
<app>3</app>
</library-versions>
<updated-with-version>2020.1.1.202102012142 PE</updated-with-version>
<migration version="2019.1.0">{"migrations":[{"containerPath":[{"value":"section-2"}],"newGridElem":{"value":"grid-1"},"afterElem":null,"content":[{"value":"name"},{"value":"surname"}],"topLevel":false}]}</migration>
</metadata>
</xf:instance>
<!-- Attachments -->
<xf:instance xxf:exclude-result-prefixes="#all" id="fr-form-attachments">
<attachments/>
</xf:instance>
<!-- All form resources -->
<xf:instance xxf:exclude-result-prefixes="#all" id="fr-form-resources" xxf:readonly="true">
<resources>
<resource xml:lang="en">
<section-2>
<label/>
<help/>
</section-2>
</resource>
</resources>
</xf:instance>
</xf:model>
<xbl:xbl xmlns:component="http://orbeon.org/oxf/xml/form-builder/component/gs/library" xmlns:fbf="java:org.orbeon.oxf.fb.FormBuilderXPathApi" xmlns:frf="java:org.orbeon.oxf.fr.FormRunner" xmlns:p="http://www.orbeon.com/oxf/pipeline" xmlns:xbl="http://www.w3.org/ns/xbl" xmlns:xxbl="http://orbeon.org/oxf/xml/xbl">
<xbl:binding class="fr-section-component" element="component|section-1" id="gs-section-1-component">
<xbl:implementation>
<xf:model id="section-1-model">
<xf:instance id="fr-form-instance" xxf:index="id" xxbl:mirror="true">
<empty/>
</xf:instance>
<xf:instance id="fr-form-template">
<section-1>
<grid-1>
<name/>
<surname/>
</grid-1>
</section-1>
</xf:instance>
<xf:bind id="fr-form-binds" ref="instance(''fr-form-instance'')">
<xf:bind id="grid-1-bind" name="grid-1" ref="grid-1">
<xf:bind id="name-bind" name="name" ref="name" xxf:whitespace="trim"/>
<xf:bind id="surname-bind" name="surname" ref="surname" xxf:whitespace="trim"/>
</xf:bind>
</xf:bind>
<xf:instance id="fr-form-resources" xxf:readonly="true">
<resources>
<resource xml:lang="en">
<section-1>
<label>Name</label>
</section-1>
<name>
<label>Name</label>
<hint/>
</name>
<surname>
<label>Surname</label>
<hint/>
</surname>
</resource>
</resources>
</xf:instance>
<xf:instance id="readonly">
<readonly/>
</xf:instance>
<xf:var name="fr-params" value="xxf:instance(''fr-parameters-instance'')"/>
<xf:var name="fr-mode" value="$fr-params/mode"/>
<xf:bind readonly="                             fr:is-readonly-mode()         or                             instance(''readonly'') = ''true'' or                             fr:is-design-time()" ref="instance(''fr-form-instance'')"/>
<xf:action class="fr-design-time-preserve" event="xforms-model-construct-done">
<xf:var name="is-empty" value="empty(instance()/*)"/>
<xf:action if="$is-empty">
<xf:insert context="instance()" origin="instance(''fr-form-template'')/*"/>
<xf:rebuild/>
<xf:recalculate xxf:defaults="true"/>
</xf:action>
<xf:action if="not($is-empty)">
<xf:var xmlns:migration="java:org.orbeon.oxf.fr.SimpleDataMigration" name="simply-migrated" value="                                     migration:dataMaybeWithSimpleMigration(                                         event(''xxf:absolute-targetid''),                                         instance(''fr-form-template''),                                         instance()                                     )"/>
<xf:action if="exists($simply-migrated)">
<xf:delete ref="instance()/*"/>
<xf:insert context="instance()" origin="$simply-migrated/*"/>
<xf:rebuild/>
<xf:recalculate xxf:defaults="true"/>
</xf:action>
</xf:action>
</xf:action>
<xf:action event="xforms-model-construct-done">
<xf:insert xmlns:migration="java:org.orbeon.oxf.fr.SimpleDataMigration" context="." iterate="migration:iterateBinds(event(''xxf:absolute-targetid''), instance())" origin="xf:attribute(''fr:relevant'', ''false'')"/>
</xf:action>
<xf:insert context="event(''xxf:binding'')" event="xforms-disabled" if="event(''xxf:binding'')/root()/* is instance(''fr-form-instance'')" observer="fr-section-template-view" origin="xf:attribute(''fr:relevant'', ''false'')" xxf:phantom="true"/>
<xf:delete event="xforms-enabled" if="event(''xxf:binding'')/root() is instance(''fr-form-instance'')/root()" observer="fr-section-template-view" ref="event(''xxf:binding'')/@fr:relevant" xxf:phantom="true"/>
</xf:model>
</xbl:implementation>
<xbl:template>
<xf:group appearance="xxf:internal" id="fr-section-template-view" model="section-1-model">
<xf:var id="context" name="context" value="xxf:binding-context(''gs-section-1-component'')"/>
<xf:var as="xs:boolean" name="readonly" value="exf:readonly($context)">
<xf:setvalue class="fr-design-time-preserve" event="xforms-enabled xforms-value-changed" ref="instance(''readonly'')" value="exf:readonly($context)"/>
</xf:var>
<xf:var as="element()?" name="fr-resources">
<xxf:value xxbl:scope="outer" value="$fr-resources"/>
</xf:var>
<xf:var as="element(resource)" name="form-resources" value="instance(''fr-form-resources'')/(resource[@xml:lang = xxf:instance(''fr-language-instance'')], resource[1])[1]"/>
<xf:label xmlns:oxf="http://www.orbeon.com/oxf/processors" ref="$form-resources/section-1/label"/>
<fr:grid xmlns:oxf="http://www.orbeon.com/oxf/processors" bind="grid-1-bind" id="grid-1-grid">
<fr:c w="12" x="1" y="1">
<xf:input bind="name-bind" class="fr-summary fr-search" id="name-control">
<xf:label ref="$form-resources/name/label"/>
<xf:hint ref="$form-resources/name/hint"/>
<xf:alert ref="$fr-resources/detail/labels/alert"/>
</xf:input>
</fr:c>
<fr:c w="12" x="1" y="2">
<xf:input bind="surname-bind" class="fr-summary fr-search" id="surname-control">
<xf:label ref="$form-resources/surname/label"/>
<xf:hint ref="$form-resources/surname/hint"/>
<xf:alert ref="$fr-resources/detail/labels/alert"/>
</xf:input>
</fr:c>
</fr:grid>
</xf:group>
</xbl:template>
</xbl:binding>
</xbl:xbl>
</xh:head>
<xh:body>
<fr:view>
<fr:body xmlns:oxf="http://www.orbeon.com/oxf/processors" xmlns:p="http://www.orbeon.com/oxf/pipeline" xmlns:xbl="http://www.w3.org/ns/xbl">
<fr:section bind="section-2-bind" id="section-2-section">
<xf:label ref="$form-resources/section-2/label"/>
<component:section-1 xmlns:component="http://orbeon.org/oxf/xml/form-builder/component/gs/library" xmlns:fbf="java:org.orbeon.oxf.fb.FormBuilderXPathApi" xmlns:frf="java:org.orbeon.oxf.fr.FormRunner" xmlns:xxbl="http://orbeon.org/oxf/xml/xbl" xmlns="http://orbeon.org/oxf/xml/form-builder"/>
</fr:section>
</fr:body>
</fr:view>
</xh:body>
</xh:html>

El mié, 10 feb 2021 a las 17:44, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Alex,

It happens on Orbeon 2020.1.1 but only with my Persistence Layer. If i switch to MySQL it works fine.

I do not know why the <xbl:xbl>... node is being added on Publish action only (see previous post for the complete <xbl> node).
Also the XML is taken from http put request directly so at this point my PL is doing nothing only reading the XML from the request body (which already has the <xbl> node).

regards,
bruno


El vie, 5 feb 2021 a las 18:48, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Alex,

I have made a video with the problem:
1) It shows the library
2) Create a new form using a section of 1)
3) Publish it
4) With a breakpoint it show the extra XBL node that is inserted in the XML of the form (with Save this does not happend)
5) Try to edit 3) but nothing is displayed

Maybe the video gives you some clues of the cause:


El vie, 5 feb 2021 a las 16:44, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Alex,

Orbeon 2020.1.1 behave as expected.

My local installation is 2020.1, so i will upgrade and check if it is happening.

regards,
bruno

El jue, 28 ene 2021 a las 13:38, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Hi,

Let me know when you deploy Orbeon 2020.1 on https://www.orbeon.com/try

I will try it there ...

regards,
bruno

El mié, 27 ene 2021 a las 15:59, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Alex,
1) Create the form
2) Add a section from the App library
3) Publish the form
4) Goto to summary
5) Edit the form
Orbeon 2020.1

At 3) Orbeon is sending the extra node in the XML string. Then in 5) the form is not displayed because of the extra node.

It does NOT happen with Save.

regards,
bruno

El lun, 25 ene 2021 a las 18:21, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Hi Alex,

Just to confirm that is Orbeon that adds the extra <xbl:xbl> node and only does this on Publishing.
Because my services receive the XML string with that node added.

The workaround is to Save the form once after the Publishing and this action removes the extra node and the form can be edited from the Summary without problems.

regards,
bruno


El lun, 25 ene 2021 a las 18:13, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Alex,

I found the culprit but not sure yet why this is happening...
After Publishing a form an extra XML is added after <xf:model> node. Also the problems are forms with references to library forms.
(This does not happen when the form definition is Saved only after Publishing).

The node is the following (not sure if it is a bug on my PL or is an Orbeon thing):
<xbl:xbl xmlns:xbl="http://www.w3.org/ns/xbl" xmlns:fbf="java:org.orbeon.oxf.fb.FormBuilderXPathApi" xmlns:xxbl="http://orbeon.org/oxf/xml/xbl" xmlns:frf="java:org.orbeon.oxf.fr.FormRunner" xmlns:component="http://orbeon.org/oxf/xml/form-builder/component/gs/library" xmlns:p="http://www.orbeon.com/oxf/pipeline"><xbl:binding id="gs-section-1-component" element="component|section-1" class="fr-section-component"><xbl:implementation><xf:model id="section-1-model"><xf:instance id="fr-form-instance" xxbl:mirror="true" xxf:index="id"><empty/></xf:instance><xf:instance id="fr-form-template"><section-1>
                        <grid-1>
                            <gs_name/>
                        </grid-1>
                    </section-1></xf:instance><xf:bind id="fr-form-binds" ref="instance(''fr-form-instance'')"><xf:bind id="grid-1-bind" ref="grid-1" name="grid-1">
                        <xf:bind id="gs_name-bind" name="gs_name" ref="gs_name" xxf:whitespace="trim"/>
                    </xf:bind></xf:bind><xf:instance id="fr-form-resources" xxf:readonly="true"><resources><resource xml:lang="en"><section-1>
                            <label>Untitled Section</label>
                        </section-1><gs_name>
                            <label>GS Name</label>
                            <hint/>
                        </gs_name></resource></resources></xf:instance><xf:instance id="readonly"><readonly/></xf:instance><xf:var name="fr-params" value="xxf:instance(''fr-parameters-instance'')"/><xf:var name="fr-mode" value="$fr-params/mode"/><xf:bind ref="instance(''fr-form-instance'')" readonly="                             fr:is-readonly-mode()         or                             instance(''readonly'') = ''true'' or                             fr:is-design-time()"/><xf:action event="xforms-model-construct-done" class="fr-design-time-preserve"><xf:var name="is-empty" value="empty(instance()/*)"/><xf:action if="$is-empty"><xf:insert context="instance()" origin="instance(''fr-form-template'')/*"/><xf:rebuild/><xf:recalculate xxf:defaults="true"/></xf:action><xf:action if="not($is-empty)"><xf:var xmlns:migration="java:org.orbeon.oxf.fr.SimpleDataMigration" name="simply-migrated" value="                                     migration:dataMaybeWithSimpleMigration(                                         event(''xxf:absolute-targetid''),                                         instance(''fr-form-template''),                                         instance()                                     )"/><xf:action if="exists($simply-migrated)"><xf:delete ref="instance()/*"/><xf:insert context="instance()" origin="$simply-migrated/*"/><xf:rebuild/><xf:recalculate xxf:defaults="true"/></xf:action></xf:action></xf:action><xf:action event="xforms-model-construct-done"><xf:insert xmlns:migration="java:org.orbeon.oxf.fr.SimpleDataMigration" iterate="migration:iterateBinds(event(''xxf:absolute-targetid''), instance())" context="." origin="xf:attribute(''fr:relevant'', ''false'')"/></xf:action><xf:insert observer="fr-section-template-view" event="xforms-disabled" xxf:phantom="true" if="event(''xxf:binding'')/root()/* is instance(''fr-form-instance'')" context="event(''xxf:binding'')" origin="xf:attribute(''fr:relevant'', ''false'')"/><xf:delete observer="fr-section-template-view" event="xforms-enabled" xxf:phantom="true" if="event(''xxf:binding'')/root() is instance(''fr-form-instance'')/root()" ref="event(''xxf:binding'')/@fr:relevant"/></xf:model></xbl:implementation><xbl:template><xf:group appearance="xxf:internal" model="section-1-model" id="fr-section-template-view"><xf:var name="context" id="context" value="xxf:binding-context(''gs-section-1-component'')"/><xf:var name="readonly" as="xs:boolean" value="exf:readonly($context)"><xf:setvalue event="xforms-enabled xforms-value-changed" ref="instance(''readonly'')" value="exf:readonly($context)" class="fr-design-time-preserve"/></xf:var><xf:var name="fr-resources" as="element()?"><xxf:value value="$fr-resources" xxbl:scope="outer"/></xf:var><xf:var name="form-resources" value="instance(''fr-form-resources'')/(resource[@xml:lang = xxf:instance(''fr-language-instance'')], resource[1])[1]" as="element(resource)"/><xf:label xmlns:oxf="http://www.orbeon.com/oxf/processors" ref="$form-resources/section-1/label"/><fr:grid xmlns:oxf="http://www.orbeon.com/oxf/processors" id="grid-1-grid" bind="grid-1-bind">
                        <fr:c y="1" x="1" w="12">
                            <xf:input id="gs_name-control" bind="gs_name-bind" class="fr-summary fr-search">
                                <xf:label ref="$form-resources/gs_name/label"/>
                                <xf:hint ref="$form-resources/gs_name/hint"/>
                                <xf:alert ref="$fr-resources/detail/labels/alert"/>
                            </xf:input>
                        </fr:c>
                    </fr:grid></xf:group></xbl:template></xbl:binding></xbl:xbl>


El lun, 25 ene 2021 a las 17:15, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Alex,

Still checking this error but the problem is only on Form Builder.

The form runner correctly renders the form in the NEW url. Also the EDIT page the form is correctly rendered.
Only the Form Builder does not display the form definition.

The root of the problem is unknown yet but if I found something I would let you know.

regards,
bruno



El vie, 22 ene 2021 a las 17:40, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Hi,

I think it is a problem of Form formats.

Because I executed some old TestCases that for sure had an old format (4.0, 4.8 i think) and also created some forms online so they were stored with 2019.1.0 format.

And is not supported to have different formats in the same PL.

I think this is because if I delete the old forms and only use the one created online then all forms are displayed correctly.

When different formats are mixed then the problems start.

Is there any way to transform old formats to new one with a script ?}

regards,
bruno






El jue, 21 ene 2021 a las 16:31, Bruno Buzzi Brassesco (<[hidden email]>) escribió:
Hi,

In which situation the Form Builder will set the form source to:
<dummy xmlns:xbl="http://www.w3.org/ns/xbl" xmlns:xxf="http://orbeon.org/oxf/xml/xforms"
       xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
       xmlns:saxon="http://saxon.sf.net/"
       xmlns:fbf="java:org.orbeon.oxf.fb.FormBuilderXPathApi"
       xmlns:fr="http://orbeon.org/oxf/xml/form-runner"
       xmlns:secure="java:org.orbeon.oxf.util.SecureUtils"
       xmlns:xf="http://www.w3.org/2002/xforms"
       xmlns:xh="http://www.w3.org/1999/xhtml"
       xmlns:p="http://www.orbeon.com/oxf/pipeline"
       xmlns:ev="http://www.w3.org/2001/xml-events"
       xmlns:xi="http://www.w3.org/2001/XInclude"
       xmlns:toolboxOps="java:org.orbeon.oxf.fb.ToolboxOps"
       xmlns:xs="http://www.w3.org/2001/XMLSchema"
       xmlns:frf="java:org.orbeon.oxf.fr.FormRunner"
       xmlns:fb="http://orbeon.org/oxf/xml/form-builder"/>

There is a bug in my Persistence Layer for any form that use a section library:
1) Create the form
2) Add a section from any library
3) Publish the form
4) Goto to summary
5) Edit the form
And now the form is not displayed and if I "Edit Source" in the Form Builder it display the HTML code above (with the dummy mode).

It is also strange that only happen with Publish because if it is only Save it can be edit normaly.

regards,
bruno

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/CALjxVcTbHk5baH2brMzauMNqOnCEsGKNC1oPe-EjEzBLZBGvqw%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: PL: Dummy in Form Builder

Alessandro  Vernet
Administrator
In reply to this post by Bruno
Hi Bruno,


BrunoBB wrote
> I do not know why the
> <xbl:xbl>
> ... node is being added on Publish action
> only (see previous post for the complete
> <xbl>
>  node).

On publish, the section templates used by your form are extracted from their
library form definitions, encapsulated in XBL components, and added to the
form. This is to prevent changes you might make later to the section
template forms (orbeon/library and your-app/library) from impacting your
published form. And I don't remember anything changing with this in 2020.1.

Is there a reason why your implementation of the persistence API would be
impacted by whatever is in the form definition? Doesn't it treat the form
definition as an opaque XML document?

-Alex



-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1613071351308-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
12