Can't get setindex to work inside a dialog

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Can't get setindex to work inside a dialog

mschlossberg
I'm trying to open a dialog and select (highlight) the element of a repeat set
that corresponds to a data value in the model. But the selected element is
always the first one when the page is reloaded.

Here's my code (the relevant lines):

<xxforms:dialog id="my-dialog" appearance="full" level="modeless" close="true"
draggable="true" visible="false">
...
<xforms:repeat nodeset="my-nodes" id="my-dialog-repeat">
...
</xforms:repeat>
...
<xforms:setindex ev:event="xxforms-dialog-open" repeat="my-dialog-repeat"
index="2" /><!-- value is "2" just for testing setindex -->
...
</xxforms:dialog>

I cannot get setindex to work at all here.  I've also tried embedding it in an
<xforms:action with the xxforms-dialog-open event, also to no avail.  


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Can't get setindex to work inside a dialog

Erik Bruchez
Administrator
First thing, is your event handler for xxforms-dialog-open called at  
all?

If you enable XForms logging, you should be able to tell:

   http://www.orbeon.com/ops/doc/reference-xforms-2#xforms-logging

-Erik

On Sep 1, 2008, at 8:34 AM, <[hidden email]> <[hidden email]
 > wrote:

> I'm trying to open a dialog and select (highlight) the element of a  
> repeat set
> that corresponds to a data value in the model. But the selected  
> element is
> always the first one when the page is reloaded.
>
> Here's my code (the relevant lines):
>
> <xxforms:dialog id="my-dialog" appearance="full" level="modeless"  
> close="true"
> draggable="true" visible="false">
> ...
> <xforms:repeat nodeset="my-nodes" id="my-dialog-repeat">
> ...
> </xforms:repeat>
> ...
> <xforms:setindex ev:event="xxforms-dialog-open" repeat="my-dialog-
> repeat"
> index="2" /><!-- value is "2" just for testing setindex -->
> ...
> </xxforms:dialog>
>
> I cannot get setindex to work at all here.  I've also tried  
> embedding it in an
> <xforms:action with the xxforms-dialog-open event, also to no avail.
>
> --
> You receive this message as a subscriber of the [hidden email]  
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws