Re: Dependent Drop Down Boxes

2004-01-09 Thread Curtis Taylor
Hi David,

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]


RE: Dependent Drop Down Boxes

2004-01-07 Thread Guillermo Meyer
I've got a tag that works in this way:







tiposCtaMon is a collection of objects with properties descripted in
metadata attribute.

The collection may be like:
idTipoCuentatipoCuenta  idMonedamoneda
1   CC  1   $
1   CC  2   U$S
2   CA  1   $
2   CA  2   U$S

With this collection and these attributes, an internal tree is created
and javascript is generated to fill the nested combos.

I extend SelectTag from struts to notify ComboSelectTag an instance of
this select.

This is really usefull for us. If you want the code, please contact me.

Cheers.
Guillermo.



-Original Message-
From: David Erickson [mailto:[EMAIL PROTECTED] 
Sent: MiƩrcoles, 07 de Enero de 2004 03:18 p.m.
To: Struts Users Mailing List
Subject: Re: Dependent Drop Down Boxes


Thanks Paul =)
-David
- Original Message - 
From: "Paul McCulloch" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, January 07, 2004 11:07 AM
Subject: RE: Dependent Drop Down Boxes


> Have a look at http://www.mattkruse.com/javascript/dynamicoptionlist/
>
> Paul
>
> > -Original Message-
> > From: David Erickson [mailto:[EMAIL PROTECTED]
> > Sent: 07 January 2004 18:00
> > To: Struts Mailing List
> > Subject: Dependent Drop Down Boxes
> >
> >
> > 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]
> >
>
>
> **
> Axios Email Confidentiality Footer
> Privileged/Confidential Information may be contained in this message. 
> If
you are not the addressee indicated in this message (or responsible for
delivery of the message to such person), you may not copy or deliver
this message to anyone. In such case, you should destroy this message,
and notify us immediately. If you or your employer does not consent to
Internet email messages of this kind, please advise us immediately.
Opinions, conclusions and other information expressed in this message
are not given or endorsed by my Company or employer unless otherwise
indicated by an authorised representative independent of this message.
> WARNING:
> While Axios Systems Ltd takes steps to prevent computer viruses from 
> being
transmitted via electronic mail attachments we cannot guarantee that
attachments do not contain computer virus code.  You are therefore
strongly advised to undertake anti virus checks prior to accessing the
attachment to this electronic mail.  Axios Systems Ltd grants no
warranties regarding performance use or quality of any attachment and
undertakes no liability for loss or damage howsoever caused.
>
>
> -
> 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]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Dependent Drop Down Boxes

2004-01-07 Thread David Erickson
Thanks Paul =)
-David
- Original Message - 
From: "Paul McCulloch" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, January 07, 2004 11:07 AM
Subject: RE: Dependent Drop Down Boxes


> Have a look at http://www.mattkruse.com/javascript/dynamicoptionlist/
>
> Paul
>
> > -Original Message-
> > From: David Erickson [mailto:[EMAIL PROTECTED]
> > Sent: 07 January 2004 18:00
> > To: Struts Mailing List
> > Subject: Dependent Drop Down Boxes
> >
> >
> > 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]
> >
>
>
> **
> Axios Email Confidentiality Footer
> Privileged/Confidential Information may be contained in this message. If
you are not the addressee indicated in this message (or responsible for
delivery of the message to such person), you may not copy or deliver this
message to anyone. In such case, you should destroy this message, and notify
us immediately. If you or your employer does not consent to Internet email
messages of this kind, please advise us immediately. Opinions, conclusions
and other information expressed in this message are not given or endorsed by
my Company or employer unless otherwise indicated by an authorised
representative independent of this message.
> WARNING:
> While Axios Systems Ltd takes steps to prevent computer viruses from being
transmitted via electronic mail attachments we cannot guarantee that
attachments do not contain computer virus code.  You are therefore strongly
advised to undertake anti virus checks prior to accessing the attachment to
this electronic mail.  Axios Systems Ltd grants no warranties regarding
performance use or quality of any attachment and undertakes no liability for
loss or damage howsoever caused.
>
>
> -
> 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]



RE: Dependent Drop Down Boxes

2004-01-07 Thread Paul McCulloch
Have a look at http://www.mattkruse.com/javascript/dynamicoptionlist/

Paul

> -Original Message-
> From: David Erickson [mailto:[EMAIL PROTECTED]
> Sent: 07 January 2004 18:00
> To: Struts Mailing List
> Subject: Dependent Drop Down Boxes
> 
> 
> 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]
> 


**
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you are not 
the addressee indicated in this message (or responsible for delivery of the message to 
such person), you may not copy or deliver this message to anyone. In such case, you 
should destroy this message, and notify us immediately. If you or your employer does 
not consent to Internet email messages of this kind, please advise us immediately. 
Opinions, conclusions and other information expressed in this message are not given or 
endorsed by my Company or employer unless otherwise indicated by an authorised 
representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted 
via electronic mail attachments we cannot guarantee that attachments do not contain 
computer virus code.  You are therefore strongly advised to undertake anti virus 
checks prior to accessing the attachment to this electronic mail.  Axios Systems Ltd 
grants no warranties regarding performance use or quality of any attachment and 
undertakes no liability for loss or damage howsoever caused.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]