thanks for the info.  the tip about using the ElementName is very helpful.

On 2015-03-09, at 8:01 PM, Samuel Pelletier wrote:

> You can enlarge your update container to the entire form and use it for many 
> update trigger. I usually use them like this.
> 
> When an AjaxUpdateContainer refresh it's content, the appendToResponse of the 
> component containing the AjaxUpdateContainer is not called but all the 
> refreshed sub component behave normally including the call to 
> appendToResponse.
> 
> Keep in mind the update container create a div by default (it need a 
> container element), this is probably why it did not worked the first time you 
> tried. You can create another element type by specifying the elementName 
> binding to create a TR for example.
> 
> Samuel
> 
> 
>> Le 2015-03-09 à 15:55, Calven Eggert <[email protected]> a écrit :
>> 
>> that worked!  Thanks!  
>> 
>> However, how can I deal with this when I have a field that is only shown 
>> based on a woconditional?  Like so...(BTW, this gives the same original 
>> problem with the phantom field at the top of the page)
>> 
>>>> <WEBOBJECT NAME=UpdateComponent>
>>>> <WEBOBJECT NAME=ShowConditional><WEBOBJECT 
>>>> NAME=SiteOfDiseasePopUpButton></WEBOBJECT></WEBOBJECT>
>>> 
>> 
>>>> </WEBOBJECT>
>>> 
>> 
>> 
>> 
>> If I put the UpdateComponent in the ShowConditional then obviously if the 
>> ShowConditional is false then the UpdateComponent does not exist on the page.
>> 
>>>> <WEBOBJECT NAME=ShowConditional>
>>>> <WEBOBJECT NAME=UpdateComponent><WEBOBJECT 
>>>> NAME=SiteOfDiseasePopUpButton></WEBOBJECT></WEBOBJECT>
>>> 
>> 
>>>> </WEBOBJECT>
>>> 
>> 
>> 
>> 
>> Calven
>> 
>> 
>> On 2015-03-09, at 12:54 PM, Theodore Petrosky wrote:
>> 
>>> You are wrapping the row with the updateContainer. Try wrapping the 
>>> contents:
>>> 
>>>> <tr>
>>>>     <td class="maincontentbold">Malignant Disease:</td>
>>>>     <td><WEBOBJECT NAME=UpdateComponent><WEBOBJECT 
>>>> NAME=SiteOfDiseasePopUpButton></WEBOBJECT></WEBOBJECT></td>
>>>> </tr>
>>> 
>>> 
>>> I was trying to see if I could find an example in anything I did in the 
>>> past (I have been working with D2W this past year)
>>> 
>>> 
>>> On Mar 9, 2015, at 11:59 AM, Calven Eggert <[email protected]> wrote:
>>> 
>>>> Hi,
>>>> 
>>>> I'm learning AJAX and I'm following the Dependent List Example but am 
>>>> having weird results.  The result is the observed field is duplicated at 
>>>> the top of the webpage.  When I view source in Chrome, the observed field 
>>>> is only found once in the HTML at the proper place.  Here is my code:
>>>> ...
>>>> <tr>
>>>>     <td class="maincontentbold">Site Group:</td>
>>>>     <td><WEBOBJECT NAME=SiteGroupPopUpButton></WEBOBJECT><WEBOBJECT 
>>>> NAME=SiteObserveField></WEBOBJECT></td>
>>>> </tr>
>>>> <WEBOBJECT NAME=UpdateComponent>
>>>> <tr>
>>>>     <td class="maincontentbold">Malignant Disease:</td>
>>>>     <td><WEBOBJECT NAME=SiteOfDiseasePopUpButton></WEBOBJECT></td>
>>>> </tr>
>>>> </WEBOBJECT>
>>>> ...
>>>> 
>>>> SiteGroupPopUpButton: WOPopUpButton {
>>>>     id = "groupPopupID";
>>>>     displayString = currentItem.displayName;
>>>>     item = currentItem;
>>>>     list = siteGroupArray;
>>>>     noSelectionString = kNoneSelected;
>>>>     selection = siteGroupSelection;
>>>> }
>>>> SiteObserveField: AjaxObserveField {
>>>>     observeFieldID = "groupPopupID";
>>>>     updateContainerID = "observerID";
>>>>     fullSubmit = false;
>>>> }
>>>> UpdateComponent: AjaxUpdateContainer {
>>>>     id = "observerID";
>>>> }
>>>> SiteOfDiseasePopUpButton: WOPopUpButton {
>>>>     displayString = currentItem.displayName;
>>>>     item = currentItem;
>>>>     list = siteGroupSelectionSites;
>>>>     noSelectionString = kNoneSelected;
>>>>     selection = currentCase.siteOfDiseaseLookup;
>>>> }
>>>> 
>>>> SiteGroupPopUpButton is the field that the user will change (observed 
>>>> field) and SiteOfDiseasePopUpButton (Malignant Disease) is the popup that 
>>>> should change accordingly.  When the Site Group popup is changed the 
>>>> phantom popup at the top of the page does change appropriately but the 
>>>> real popup does not. (not sure if images are allowed in this email list 
>>>> but one is included just in case, so you can see the phantom popup at the 
>>>> top of the page)
>>>> 
>>>> What am I doing wrong?
>>>> 
>>>> Calven
>>>> 
>>>> <screenshot.png>
>>>> 
>>>> _______________________________________________
>>>> Do not post admin requests to the list. They will be ignored.
>>>> Webobjects-dev mailing list      ([email protected])
>>>> Help/Unsubscribe/Update your Subscription:
>>>> https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com
>>>> 
>>>> This email sent to [email protected]
>>> 
>> 
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list      ([email protected])
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/samuel%40samkar.com
>> 
>> This email sent to [email protected]
> 

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

This email sent to [email protected]

Reply via email to