Revisited: Submit error/Control no longer bound to a node

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Revisited: Submit error/Control no longer bound to a node

paul.hermans
I have a small example file with two required fields.

If I fill in both fields and submit the form, everything works fine.
If I fill in one field and submit the form, submit gives an error, which is expected behavior.
But when I fill in the remaining field, the submit error is still being thrown.
Is the value of the first field lost in one way or another?

<h:head>
        <f:model>
            <f:instance>
                <test>
                    <a/>
                    <b/>
                </test>
            </f:instance>
            <f:bind nodeset="a" required="true()"/>
            <f:bind nodeset="b" required="true()"/>
            <f:submission id="print-submission"
                action="/spil-edit/test2" method="post">
                <f:action ev:event="xforms-submit-error">
                    <f:message level="modal">Not all required fields are filled in.</f:message>
                </f:action>
            </f:submission>
        </f:model>
    </h:head>
    <h:body>
        <f:input ref="a" />
        <f:input ref="b" />
        <f:trigger>
            <f:label>Print</f:label>
            <f:action ev:event="DOMActivate">
                <f:send submission="print-submission"/>
            </f:action>
        </f:trigger>
    </h:body>



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws