Query on Xforms repeat element

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 UTC