xforms:insert problem

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

xforms:insert problem

Steve Lenhart
All,

I having problems trying to do an xforms:insert ... I have 2
xforms:select boxes .... one is a list of items .... the other defaults
to blank ... I would like to be able to select an item from the populate
list and then click a button to push it to the other select and remove
from the original. The problem seems to be getting the currently
selected item to insert into the other select .. I would like to do this
....

<xforms:insert context="instance('vendors-working-set')" nodeset="vendor"
    origin="instance('vendors-all')/vendor[id =
instance('control-instance')/selected-all-vendors]" />


but it doesn't appear to work .... but if I do this ....

<xforms:insert context="instance('vendors-working-set')" nodeset="vendor"
    origin="instance('vendors-all')/vendor" />

it will do the insert .... but it will just insert the first item from
the origin and not the currently selected one.

I attached a small example of what I mean.


Steve




--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

test.xhtml (7K) Download Attachment
slenhart.vcf (299 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: xforms:insert problem

Steve Lenhart
Nevermind ........ I found it ..... I was referring to the wrong instance.

Steve



Steve Lenhart wrote:

> All,
>
> I having problems trying to do an xforms:insert ... I have 2
> xforms:select boxes .... one is a list of items .... the other
> defaults to blank ... I would like to be able to select an item from
> the populate list and then click a button to push it to the other
> select and remove from the original. The problem seems to be getting
> the currently selected item to insert into the other select .. I would
> like to do this ....
>
> <xforms:insert context="instance('vendors-working-set')" nodeset="vendor"
>    origin="instance('vendors-all')/vendor[id =
> instance('control-instance')/selected-all-vendors]" />
>
>
> but it doesn't appear to work .... but if I do this ....
>
> <xforms:insert context="instance('vendors-working-set')" nodeset="vendor"
>    origin="instance('vendors-all')/vendor" />
>
> it will do the insert .... but it will just insert the first item from
> the origin and not the currently selected one.
>
> I attached a small example of what I mean.
>
>
> Steve
>
>
> --
> 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
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>  


--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

slenhart.vcf (299 bytes) Download Attachment