I'm in process of cobbling together something like this using Tiles. I've defined a generic selector widget as a jsp, then subclassed it in the tiles-defs.xml n times, with each new definition having its own controller which is responsible for populating the selector with context-specific data. These can be inserted as a Tile inside an html form. In the definitions I have an "onChange" attribute which is a string representing a Javascript function ("return document.forms[0].submit();", for example). Controller B uses the request param from selector A to populate selector B's data. Use an Action class for your form action, forward back to the input, etc. Seems promising so far.
If you want a straight jsp/Javascript approach Danny Goodman has an excellent solution in his "Javascript & DHTML Cookbook." Very clean & simple to use, and you can populate your options dynamically inside a c:forEach loop. I found it easier to implement than Matt Kruse's library, but then again I'm not the sharpest pencil in the box...;-)
HTH,
Curtis
David Erickson wrote:
Hi I was wondering if anyone knew of any taglibraries or javascript related code that is meant to handle dependent drop down boxes. IE your choice in drop down box 1 choses the options you get in drop down box 2. Ideally this would not require a refresh of the browser. An example of this is carpoint.msn.com where you chose the vehicle manufacturer and in the next box it shows you only cars made by that manufacturer. They are using javascript coded in house... I was wondering if there is an open source project or solution to work with this. Thanks! -David
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

