W3C home > Mailing lists > Public > www-forms@w3.org > August 2006

Query on Xforms repeat element

From: Vineeth Varghese <vineeth.varghese@tavant.com>
Date: Wed, 16 Aug 2006 15:15:25 +0530
Message-ID: <550B323AB00136408C1A314D7905CA73703AF2@BLREX01.in.corp.tavant.com>
To: <www-forms@w3.org>
Hi All,

 

I have a query in XForms 

 

I have a model instance like:-

<taskview>

  <transition>Back</transition>

  <transition>Save</transition>

  <transition>Next</transition>

  <takentransition/>

</taskview>

 

with <xforms:bind id="takentransition"
nodeset="/taskview/takentransition"/>

 

And I want to render each <transition> element value as buttons and
figure out which button was clicked. So what I do in the view is:-

<xforms:repeat id="transitions" nodeset="/taskview/transition">

  <xforms:submit submission="transition-action">

    <xforms:label ref="."/>

  </xforms:submit>             

</xforms:repeat>

 

So basically each element of the nodeset "/taskview/transition" - Back,
Save and Next is rendered as button on the UI. Now when a user clicks on
a button I want to figure out which button was clicked and set the name
of the button to the model instance element
"/taskview/taskentransition". 

 

In my server side application once I get the model I want to be able to
get the model instance element "/taskview/taskentransition", something
like avoiding passing a request parameter but this doesn't seem to work
(I haven't figured it out).

 

I tried listening for a DomActivate event and the set the value based on
the repeat index but later figured that we can't use the repeat index.

 

How could we achieve this?. Does the XForms spec support (I am on XForms
1.0) this because this seems to be a very basic requirement. 

 

TIA,

Vineeth.
Received on Wednesday, 16 August 2006 15:50:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:22:06 GMT