Re: XForms help needed - Hacked it for now!

Aurelian <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xml
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
Allan Beaufour wrote:
> Hi,
> 
> Tuesday 13 September 2005 19:19 skrev Aurelian:
> 
>>I've been experimenting with Mozilla's XForms implementation for about a
>>week and I can't seem to find the solution for the following problem:
> 
> 
> 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
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.