W3C home > Mailing lists > Public > www-forms@w3.org > August 2006

RE: Example for nested select1-controls available?

From: Kugelman, John <jkugelman@progeny.net>
Date: Wed, 2 Aug 2006 13:36:45 -0400
Message-ID: <9A0E40933DE3E548A1B8E32063CE4EE482B4C5@es3.progeny.net>
To: "Oliver Rath" <rath@mglug.de>, <www-forms@w3.org>

Oliver,

See http://www.formfaces.com/faces/Examples/Test%20Pages/vehicles.html.
(Ignore the Add button.)

Is something like that what you're imagining?

If so, we had to extend our implementation by adding the current()
function from XSLT. I'm not sure if that function is available in
Mozilla, though it's likely given the existence of this page:

http://developer.mozilla.org/en/docs/XPath:Functions:current

The XPath expressions are ugly, but they work, and I couldn't figure out
any way to do this without using current().

(Actually that's a half-truth -- you could do this by putting each
possible select control on the page and then showing/hiding them using
relevance or nested switches. That doesn't seem to me a very elegant
solution, though.)

John

-----Original Message-----
From: www-forms-request@w3.org [mailto:www-forms-request@w3.org] On
Behalf Of Oliver Rath
Sent: Wednesday, August 02, 2006 6:27 AM
To: www-forms@w3.org
Subject: Example for nested select1-controls available?


For testing some selecting case for big data volume im looking for some
running example for a nested select1-control.

Unfortunatly all my tests failed up to this moment. :-(

The idea:

My first select1-pulldown:

color
car
time


should generate a second select1-control (maybe in the same row?) with
some different items, i.e.

for color:

red
green
blue

for car:

bmw
audi
toyota

for time:

tomorrow
yesterday
today

which toggles dynamicly depending on the first select1-control.
What is the appropriate technique for this?

Nested cases with toggles?
events (how to do this)?
triggering?

Unfortunatly Im a bit confused at the moment, because _nothing_ works
really in the wanted way above.

Im running firefox 1.5.0.4 with xforms 0.6 plugin.


Thanks for help in advance!

Oliver
Received on Wednesday, 2 August 2006 17:36:53 GMT

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