W3C home > Mailing lists > Public > www-forms@w3.org > October 2005

RE: reload select when selection changes in linked select

From: Kugelman, John <jkugelman@progeny.net>
Date: Mon, 17 Oct 2005 11:53:16 -0400
Message-ID: <9A0E40933DE3E548A1B8E32063CE4EE44C27D5@es3.progeny.net>
To: <www-forms@w3.org>
What a funny example to pick--to demonstrate <itemset/> in FormFaces we
made a page doing *exactly* this. <itemset/> is the element you will
want to use. <itemset/> lets the options for a select control be
populated dynamically with the choices being taken from the instance
data.

I've attached our example page, which lets you choose the type of
vehicle, the make, and the model.

Incidentally, the @nodesets for the three <itemset/>s are fairly
complex. We found that they were much simpler to write once we added
support for the current() function from XSLT. If your processor of
choice supports that function, you can significantly shorten those
binding XPaths.

John
 

> -----Original Message-----
> From: www-forms-request@w3.org [mailto:www-forms-request@w3.org] On 
> Behalf Of Steve Heron
> Sent: Sunday, October 16, 2005 12:17 PM
> To: www-forms@w3.org
> Subject: reload select when selection changes in linked select
> 
> 
> Hi, can anyone tell me how in XForms I would link two select elements 
> such that when a new selection is made in the first, the contents of 
> the second are refreshed, eg select a car Manufacturer from list 1 and

> see the corresponding car Models in list2 refreshed. What markup would

> I need to establish this dependency. The selects must be populated 
> with value/label pairs, incidentally, a space separated list value 
> won't do. Thanks in advance. Steve H
> 




Received on Tuesday, 18 October 2005 01:43:46 GMT

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