Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: How to dinamically load a <select> field

Musachy Barroso

2007-03-07

Replies:

If you are using S2, the autocompleter tag does that, you can use the
"formId" attribute to specify a form which will be submitted to the action,
from which you can return the right values. If you are using S1, you will
need an ajax library.

musachy

On 3/7/07, Célio Cidral Junior <ccidral.newsbox@(protected):
>
> Well, perhaps "dinamically" is not the best way to describe it, but
> anyway what I need is to load a <select> field based on the value
> selected on another <select> field. Let's say you have a State field
> and also a City field. The user selects a state and the cities of that
> state are loaded in the City field. What's the best way to do that
> without having a page refresh?
>
> Regards,
>
> Célio.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>


--
"Hey you! Would you help me to carry the stone?" Pink Floyd
©2008 junlu.com - Jax Systems, LLC, U.S.A.