Hi,

I would try something with less structure...

Use a single AjaxUpdateContainer and a single AjaxObserveField that wrap all 
the popups.

The setter of each popup selection should update the list and the current 
selection of the next popup.

You may add an action of required.

If the user change the Popup A selection, the setter is called, will update the 
popup B list and call setSelectionB(value) with the new B selection or null. 
The logic will cascade.

AjaxUpdateContainer
        AjaxObserveField
                Popup A
                Popup B
                Popup C
                Popup D

Samuel


> Le 2015-07-21 à 19:51, HOUNKPONOU Ronald <ronald.hounkpo...@gmail.com> a 
> écrit :
> 
> hi everyone.
> 
> I trying to use the dependent popup list example without success.
> I have 4 popup those content must be updated regarding the preview popup 
> selected value;
> The probles is that when the first popup change only the second is updated. 
> But i want all the three remaining get updated.
>       
> Here ares my .wo & .wod concerned section
> 
> Thank for your help.
> 
> 
> HTML
> 
> <webobject name = "DepartementV"></webobject>
>            <webobject name = "DepartementObserveFieldV"></webobject>
> 
>               <webobject name = "RegionSanitaireUpdateComponentV">
>                     <webobject name = "RegionSanitaireV"></webobject>
>                     <webobject name = 
> "RegionSanitaireObserveFieldV"></webobject>
> 
>               <webobject name = "CommuneUpdateComponentV">
>                         <webobject name = "CommuneV"></webobject>
>                         <webobject name = "CommuneObserveFieldV"></webobject>
> 
>               <webobject name = "ArrondissementUpdateComponentV">
>                         <webobject name = "ArrondissementV"></webobject>
>                       webobject name = 
> "ArrondissementObserveFieldV"></webobject>
>                         <p/>
>                         
> Currently Selected Street: <webobject name = 
> "SelectedArrondissementNameV"></webobject>
>                   </webobject>
>                   
>            </webobject>
>       </webobject>
> 
> 
> 
> 
> 
> 
> WOD
> 
> DepartementV : WOPopUpButton {
>     class = "form-control btn-lg";
>     id = "DepartementID";
>     list = listDepartement;
>     item = departement;
>     selection = selectedDepartement;
>     displayString = departement.departement_Lib;
>     noSelectionString = "--Departement--";
> }
> 
> 
> DepartementObserveFieldV : AjaxObserveField {
>     observeFieldID = "DepartementID";
>     updateContainerID = "CountyDiv1";
>     fullSubmit = false;
> }
> 
> RegionSanitaireUpdateComponentV : AjaxUpdateContainer {
>     id = "CountyDiv1";
> }
> 
> RegionSanitaireV : WOPopUpButton {
>     id = "RegionSanitaireID";
>     list          =   selectedDepartement.region_Sanitaires;
>     selection     =   selectedRegionSanitaire;
>     item          =   regionSanitaire;
>     displayString =   regionSanitaire.region_sanitaire_Lib;   
>     class = "form-control btn-lg";
>     noSelectionString = "No County Selected";
> }
> 
> RegionSanitaireObserveFieldV : AjaxObserveField {
>     observeFieldID = "RegionSanitaireID";
>     updateContainerID = "CommuneDiv1";
>     fullSubmit = false;
> }
> 
> CommuneUpdateComponentV : AjaxUpdateContainer {
>     id = "CommuneDiv1";
> }
> 
> CommuneV : WOPopUpButton {
>     id = "CommuneID";
>     list          =   selectedRegionSanitaire.communeses;
>     selection     =   selectedCommune;
>     item          =   commune;
>     displayString =   commune.commune_Lib;    
>     class = "form-control btn-lg";
>     noSelectionString = "No Street Selected";
> }
> 
> CommuneObserveFieldV : AjaxObserveField {
>     observeFieldID = "CommuneID";
>     updateContainerID = "StreetDiv1";
>     fullSubmit = false;
> }
> 
> ArrondissementV : WOPopUpButton {
>     id = "ArrondissementID";
>     list          =   selectedCommune.arrondissements;
>     selection     =   selectedArrondissement;
>     item          =   arrondissement;
>     displayString =   arrondissement.arrondissement_Lib;    
>     class = "form-control btn-lg";
>     noSelectionString = "No Street Selected";
> }
> 
> ArrondissementObserveFieldV : AjaxObserveField {
>     observeFieldID = "CommuneID";
>     updateContainerID = "StreetDiv1";
>     fullSubmit = false;
> }
> 
> ArrondissementUpdateComponentV : AjaxUpdateContainer {
>     id = "StreetDiv1";
> }
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/samuel%40samkar.com
> 
> This email sent to sam...@samkar.com

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to