XForms help needed - Multiple form per document submission problem

Aurelian <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xml
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
Hi,

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 am including in the XHTML document several models as follows:

...
<xf:model id="Context">
   <xf:instance xmlns="ctx">
     <ctx:context>
       <ctx:provider></ctx:provider>
       <ctx:scheduleDate></ctx:scheduleDate>
     </ctx:context>
   </xf:instance>
   <xf:submission id="notUsed" method="post"
     action="http://localhost:8080/XForms/Submit" />
</xf:model>

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

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

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

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

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

... the submit button section looks like

<!-- SUBMIT BUTTON -->
<xf:submit model="Schedule" submission="getRequest">
   <xf:label>Save (GET)</xf:label>
</xf:submit>

<xf:submit model="Schedule"  submission="postRequest">
   <xf:label>Save (POST)</xf:label>
</xf:submit>

<xf:submit model="Schedule"  submission="putRequest">
   <xf:label>Save (PUT)</xf:label>
</xf:submit>

If I comment out the Context model the Schedule data submission 
(GET/POST/PUT)is fine. However for this code the form will not POST or 
PUT and will try to send a GET with no parameters.

According to section "2.4 - Multiple Forms per Document" this should be 
OK and I've seen the Novell plugin for IE6 actually posting this data 
which confuses me even further.

I would really appreciate some help regarding what am I doing wrong here!

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.