Alex,
Thanks for your reply. Where is your modified 'UBM' example ?
Searches of the Presentation Server Examples page (http://www.orbeon.com/ois/),
and of orbeon.war for files with ubm in the name or the content did not help find it.
Bill


Bill Winspur wrote:

When the submit is performed the first time, it works as
expected. A new cart-item is appended to the model, its fields
are plugged with values from the product row containing the submit
element, and a row showing the new cart-item is added to the
cart items table.


Trying to reproduce the problem you are mentionning, I modified the UBM example as follows:

1) In form.xml, I added inside <form> as the last element:

    <order>
        <item>
            <id/>
        </item>
    </order>

2) In view.xsl, after the "remove" button displayed on each line, I added an "Add To Order" button:

    <xforms:submit>
        <xforms:label>Add To Order</xforms:label>
        <xforms:insert
            nodeset="/form/order/item"
            at="last()" position="after"/>
        <xforms:setvalue
            ref="/form/order/item[last()]/id"

value="/form/order:Order/cat:OrderLine[index('lineSet')]/cat:Item/cat:SellersItemIdentification/cat:ID"/>

    </xforms:submit>

Now you can go the UBM example, click on "Add To Order" on several line, and the XForms instance get updated appropriately. I am not sure what is different in your application. Is it possible for you to share your resources with me so I can run your code locally?

When the submit is perfomed the second time, a dialog saying
'The document contains no data' pops up, and no new row is created.


This usually means that didn't send an HTML document back to the browser. Do you see any exception on the Tomcat side when this happens?

Alex


------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ orbeon-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/orbeon-user



--
Bill Winspur
Manager, Wynnon Systems Inc
Mobile: 403-519-5889



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
orbeon-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/orbeon-user

Reply via email to