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:-








with <xforms:bind id="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="."/>




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


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. 



Received on Wednesday, 16 August 2006 15:50:57 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:18 UTC