This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Mozilla XML > September 2005 > Re: XForms help needed - Hacked it for now!





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: XForms help needed - Hacked it for now!
Aurelian

2005-09-16, 7:48 pm

Allan Beaufour wrote:
> Hi,
>
> Tuesday 13 September 2005 19:19 skrev Aurelian:
>
>
>
> I just tried submission with two different models, including an external
> instance in the second one. Seems to work for me.
>
> Which version of Mozilla/Firefox and xforms.xpi are you using? Are you getting
> any errors on the JavaScript console?
>


Apparently adding the "optional" bind attribute to the submission solves
it. The following model declaration works:

<xf:model id="Schedule">
<xf:instance src="http://localhost:8080/XForms/XFormsData" />

<xf:bind nodeset="/schedule/provider" id="schedule" />
<xf:bind nodeset="/" id="root" />

<xf:submission bind="root" id="postRequest" method="post"
action="http://localhost:8080/XForms/Submit" />

<xf:submission bind="root" id="getRequest" method="get"
action="http://localhost:8080/XForms/Submit" />

<xf:submission bind="root" id="putRequest" method="put"
action="http://localhost:8080/XForms/Submit" />
</xf:model>

Funny enough using ref or nodeset on the submission declaration won't
help. Is this the intended behavior?

Best Regards,
Aurelian Penciu
apenciu@alpha-it.com
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews