RE: reload select when selection changes in linked select

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 UTC