Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty buttons showing the second time the Form Submitted dialog shows #939

Closed
avernet opened this issue Apr 16, 2013 · 2 comments
Closed
Assignees
Milestone

Comments

@avernet
Copy link
Collaborator

avernet commented Apr 16, 2013

  • in FR new page, hit submit
  • click keep values and close
  • hit submit again

Screen Shot 2013-04-16 at 11 05 36 AM

@ghost ghost assigned avernet Apr 16, 2013
@avernet
Copy link
Collaborator Author

avernet commented Apr 17, 2013

  1. @ebruchez saying the server should not tell the client that an iteration is relevant/non-relevant anymore, but it does, e.g. <xxf:repeat-iteration id="xf-190" relevant="false" iteration="1" />. Fixing this may be enough to fix this problem.
  2. It is not clear why the iterations are not deleted (e.g. <xxf:delete-repeat-elements id="my-repeat" parent-indexes="" count="2" />) when the dialog is closed (this happens, as expected, with the test case below).

Seems to be a server-side problem, so reassigning to @ebruchez.

<xh:html xmlns:xh="http://www.w3.org/1999/xhtml"
      xmlns:xf="http://www.w3.org/2002/xforms"
      xmlns:xxf="http://orbeon.org/oxf/xml/xforms"
      xmlns:ev="http://www.w3.org/2001/xml-events"
      xmlns:xs="http://www.w3.org/2001/XMLSchema"
      xmlns:fr="http://orbeon.org/oxf/xml/form-runner">
    <xh:head>
        <xf:model>
            <xf:instance>
                <root>
                    <relevant/>
                    <non-relevant/>
                </root>
            </xf:instance>
            <xf:bind ref="non-relevant" relevant="false()"/>
        </xf:model>
    </xh:head>
    <xh:body>
        <xxf:dialog id="my-dialog">
            <xf:repeat ref="('relevant', 'non-relevant')" id="my-repeat">
                <xf:input ref="instance()/*[local-name() = context()]" id="input"/>
            </xf:repeat>
        </xxf:dialog>
        <xf:trigger>
            <xf:label>Show</xf:label>
            <xxf:show ev:event="DOMActivate" dialog="my-dialog"/>
        </xf:trigger>
    </xh:body>
</xh:html>

@ghost ghost assigned ebruchez Apr 17, 2013
@ebruchez
Copy link
Collaborator

Setup button with W-9 form:

<property as="xs:string"  name="oxf.fr.detail.buttons.orbeon.w9"           value="foo"/>
<property as="xs:string"  name="oxf.fr.resource.*.*.en.detail.buttons.foo" value="Foo"/>
<property as="xs:string"  name="oxf.fr.detail.process.foo.orbeon.w9"       value='result-dialog'/>

http://localhost:8080/orbeon/fr/orbeon/w9/edit/4a83b4cf2b905fbe105d7e57ddc5597b5e78c0a3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants