You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by "Emmanouil Batsis (Manos)" <ma...@abiss.gr> on 2011/11/19 16:09:12 UTC

Component for chained/dependent drop downs? (was: Re: Chained dropdowns)

> On Fri, Nov 18, 2011 at 1:36 PM, Tito<nj...@gmail.com>  wrote:
>
>> Hi, I'm trying to connect three drowpdowns.
>>
>> For example.
>>
>> combo1: Country
>> combo2: Province
>> combo3: City
>>
>> I'm updating dropdowns by Ajax with
>> AjaxFormComponentUpdatingBehavior("onChange") and it works ok.
>> But if you choose a Country, then a Province, then a City and after that
>> you change the Country, the Province changes but not the city.
>>
>> I'm doing everything with models and adding all dropdowns to
>> AjaxRequestTarget.


I was wondering if anyone has implemented a reusable component for 
handling hierarchical/dependent dropdowns as I'm thinking of having a go 
at it... I hijacked the thread as it seems relevant.

Manos

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Tree selection form component?

Posted by "Emmanouil Batsis (Manos)" <ma...@abiss.gr>.
On 12/06/2011 02:55 PM, Emmanouil Batsis (Manos) wrote:
>
> On 11/19/2011 05:09 PM, Emmanouil Batsis (Manos) wrote:
>  > I was wondering if anyone has implemented a reusable component for
>  > handling hierarchical/dependent dropdowns as I'm thinking of having a go
>  > at it... I hijacked the thread as it seems relevant.
>
> At first I was after a component that adds an arbitrary number of
> chained selects (the example bellow was just that), but a tree makes a
> lot more sense in many cases. Any examples of a tree used to update a
> text field? I'd happily turn that to a FormComponentPanel if none is
> available.

It really needs some cleanup and improvements but in case anyone needs 
to see an example:

http://code.google.com/p/calipso/source/browse/trunk/calipso-war/src/main/java/gr/abiss/calipso/wicket/components/formfields/TreeChoice.java

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Tree selection form component? (was: Re: Component for chained/dependent drop downs?)

Posted by "Emmanouil Batsis (Manos)" <ma...@abiss.gr>.
On 11/19/2011 05:09 PM, Emmanouil Batsis (Manos) wrote:
 > I was wondering if anyone has implemented a reusable component for
 > handling hierarchical/dependent dropdowns as I'm thinking of having a go
 > at it... I hijacked the thread as it seems relevant.

At first I was after a component that adds an arbitrary number of 
chained selects (the example bellow was just that), but a tree makes a 
lot more sense in many cases. Any examples of a tree used to update a 
text field? I'd happily turn that to a FormComponentPanel if none is 
available.

Manos



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org