You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Skip Hollowell <sk...@skipdaddy.com> on 2007/08/13 15:02:50 UTC
[S2] 2 Select Boxes, one based on the other
I apologize profusely for what has got to be a FAQ, but I can't find
reference to this at all, either Googling or in my message archives.
I have the classic problem of 2 select boxes, and the values of the
second select will change based upon the choice in the first box. I am
using a simple theme at the present time, and have no immediate plans to
move to anything AJAX related for this release.
I have seen ComboBox and AutoComplete, but these don't seem to come
close to what is needed. IS there a Struts 2 based way to do this, or
am I back to JavaScript?
Thanks for any help, and again, I very much apologize for posting what
must be a very basic question.
Skip Hollowell
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: [S2] 2 Select Boxes, one based on the other
Posted by Rene Gielen <gi...@it-neering.net>.
Indeed there is no way without Javascript. The s2 tag Skip is searching
for is
http://cwiki.apache.org/confluence/display/WW/doubleselect
Zoran Avtarovski schrieb:
> Any solution has to be javascript based. The question is wether you want a
> server side visit or not. And that is dependant on how much data variability
> there is in your second select list.
>
> In our case if there are only a limited number of variations we download
> them all as part of the initial page and use pure javascript, but if there
> lots then we employ a simple ajax call.
>
> Z.
>
>> I apologize profusely for what has got to be a FAQ, but I can't find
>> reference to this at all, either Googling or in my message archives.
>>
>> I have the classic problem of 2 select boxes, and the values of the
>> second select will change based upon the choice in the first box. I am
>> using a simple theme at the present time, and have no immediate plans to
>> move to anything AJAX related for this release.
>>
>> I have seen ComboBox and AutoComplete, but these don't seem to come
>> close to what is needed. IS there a Struts 2 based way to do this, or
>> am I back to JavaScript?
>>
>> Thanks for any help, and again, I very much apologize for posting what
>> must be a very basic question.
>>
>> Skip Hollowell
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: [S2] 2 Select Boxes, one based on the other
Posted by Zoran Avtarovski <zo...@sparecreative.com>.
Any solution has to be javascript based. The question is wether you want a
server side visit or not. And that is dependant on how much data variability
there is in your second select list.
In our case if there are only a limited number of variations we download
them all as part of the initial page and use pure javascript, but if there
lots then we employ a simple ajax call.
Z.
> I apologize profusely for what has got to be a FAQ, but I can't find
> reference to this at all, either Googling or in my message archives.
>
> I have the classic problem of 2 select boxes, and the values of the
> second select will change based upon the choice in the first box. I am
> using a simple theme at the present time, and have no immediate plans to
> move to anything AJAX related for this release.
>
> I have seen ComboBox and AutoComplete, but these don't seem to come
> close to what is needed. IS there a Struts 2 based way to do this, or
> am I back to JavaScript?
>
> Thanks for any help, and again, I very much apologize for posting what
> must be a very basic question.
>
> Skip Hollowell
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org