You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Leila Carvalho <le...@gmail.com> on 2006/02/17 19:00:53 UTC

Modal combobox with Struts

What is the best way to implement the logic of a second combobox that
depends
on the choice made in a first combobox in a JSP page, inside Struts
framework ??
For instance: if I choose EUA in the first combobox, the second combobox
must be
populated with EUA's states.  The same for countries X states etc.
Some people implement this with javascript, function onchange(). JSF uses
Events...
Thanks in advance!!
--------------

Re: Modal combobox with Struts

Posted by Michael Jouravlev <jm...@gmail.com>.
On 2/17/06, Leila Carvalho <le...@gmail.com> wrote:
> What is the best way to implement the logic of a second combobox that
> depends
> on the choice made in a first combobox in a JSP page, inside Struts
> framework ??
> For instance: if I choose EUA in the first combobox, the second combobox
> must be
> populated with EUA's states.  The same for countries X states etc.
> Some people implement this with javascript, function onchange(). JSF uses
> Events...

Yes, you need to use Javascript, apparently JSF has a wrapper on top
of a regular onchange.

If you need to load data from server on every change, then either use
Ajax, or reload the whole page after every onchange.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org